System won't boot after successful installation

Questions about the installation of FreeBSD
Post Reply
5555624
Posts: 7
Joined: Thu May 02, 2013 1:03 pm

System won't boot after successful installation

Post by 5555624 »

I'm trying to install GhostBSD on a Lenovo ThinkPad T420. The Live image boots fine from a DVD. (Everything seems to work fine, including Wi-Fi.) The installer runs and I get the "Installation is complete" dialog box. I select "Restart."

When the laptop reboots, it will only boot from the DVD. Whether from a restart or complete shutdown, instead of booting, it brings up the Boot Menu. I select the HDD, the screen goes blank for a moment, and returns to the Boot Menu. (With or without the DVD in the drive.) If I select the DVD, it boots up into the Live version of Ghost BSD.

The drive is an SSD. On the off chance the drive had died, I tried a brand new SSD -- with the same results.

Under "Boot Option" the only choice I can select is the FreeBSD BIOS loader only. (I had chosen to use the whole disk.)

Once upon a time, the original SSD had been running OpenBSD. I was able to successfully install OpenBSD 7.0 on the new SSD. So it appears the issue is selecting the whole disk. Do I need to partition the drive? Select a format other than ZFS?

Thanks for any insight.
wb7odyfred
Posts: 204
Joined: Sat Nov 12, 2016 5:44 pm

Re: System won't boot after successful installation

Post by wb7odyfred »

Hello need a few more details. Yet , issue is probably UFS file system versus Zeta File System ZFS. Other issue is your BIOS setup: MBR or GPT UEFI ?
Use the Live BOOT from USB Flash drive to examine the created file system on the SSD. I am very interested in your details of SSD. On a Raspberry Pi booting from FreeBSD 14.0-CURRENT USB Flash drive, I installed FreeBSD from over the internet using "bsdinstll". You might use "bsdconfig" to view your GhostBSD / FreeBSD configuration setup on the SSD.

URL links to read:
https://klarasystems.com/articles/the-f ... t-process/ Klara Systems article on FreeBSD boot process
https://docs.freebsd.org/en/books/handbook/boot/ FreeBSD Handbook Chapter 13 boot process
https://nsrc.org/wrc/data/2006/14649147 ... ercise.pdf Helpful notes from 2006 about recovery exercise
https://forums.freebsd.org/threads/uefi ... isk.75734/ UEFI GPT Dual Boot How To Install Freebsd with ZFS
https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot Root On ZFS, GPT ZFS Boot Read this setup
https://www.freebsd.org/cgi/man.cgi?que ... ormat=html Gpt ZFS Boot for FreeBSD
https://illumos.org/man/7/gptzfsboot Manual page for gptzfsboot illumos.org

Terminal Commands open Applications --> System Tools --> MATE Terminal

Code: Select all

gpart status
gpart show
gpart list
geom disk list
camcontrol devlist


Example:



Code: Select all

gpart status
Name Status Components
da0p1 OK da0
da0p2 OK da0
da0p3 OK da0

Code: Select all

gpart show
=> 40 468862055 da0 GPT (224G)
40 532480 1 efi (260M)
532520 459218944 2 freebsd-zfs (219G)
459751464 9099264 3 freebsd-swap (4.3G)
468850728 11367 - free - (5.5M)

Code: Select all

 gpart list
Geom name: da0
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 468862094
first: 40
entries: 128
scheme: GPT
Providers:
1. Name: da0p1
Mediasize: 272629760 (260M)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
efimedia: HD(1,GPT,7d0e6dcf-7926-11ec-b6e6-0021ccd45dec,0x28,0x82000)
rawuuid: 7d0e6dcf-7926-11ec-b6e6-0021ccd45dec
rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
label: Ghostbsd_bootfs
length: 272629760
offset: 20480
type: efi
index: 1
end: 532519
start: 40
2. Name: da0p2
Mediasize: 235120099328 (219G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e1
efimedia: HD(2,GPT,7eafc01f-7926-11ec-b6e6-0021ccd45dec,0x82028,0x1b5f2000)
rawuuid: 7eafc01f-7926-11ec-b6e6-0021ccd45dec
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: Ghostbsd_rootfs
length: 235120099328
offset: 272650240
type: freebsd-zfs
index: 2
end: 459751463
start: 532520
3. Name: da0p3
Mediasize: 4658823168 (4.3G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r1w1e1
efimedia: HD(3,GPT,801fd8c2-7926-11ec-b6e6-0021ccd45dec,0x1b674028,0x8ad800)
rawuuid: 801fd8c2-7926-11ec-b6e6-0021ccd45dec
rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
label: swap-unirex-224
length: 4658823168
offset: 235392749568
type: freebsd-swap
index: 3
end: 468850727
start: 459751464
Consumers:
1. Name: da0
Mediasize: 240057409536 (224G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r2w2e4

Code: Select all

geom disk list
Geom name: da0
Providers:
1. Name: da0
Mediasize: 240057409536 (224G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r2w2e4
descr: SATA SSD
lunname: SATA SSD 333457EBD0F2
lunid: 3033345752406200
ident: 333457EBD0F2
rotationrate: unknown
fwsectors: 63
fwheads: 255

Code: Select all

camcontrol devlist
<AHCI SGPIO Enclosure 2.00 0001> at scbus1 target 0 lun 0 (ses0,pass0)
<SATA SSD 4103> at scbus2 target 0 lun 0 (pass1,da0)
5555624
Posts: 7
Joined: Thu May 02, 2013 1:03 pm

Re: System won't boot after successful installation

Post by 5555624 »

I have not yet read all of the links, but, regarding the other information:

Code: Select all

gpart status
Name Status Components
ada0p1 OK ada0
ada0p2 OK ada0
ada0p3 OK ada0
diskid/DISK-22320Y801469p1 OK diskid/DISK-22320Y801469
diskid/DISK-22320Y801469p2 OK diskid/DISK-22320Y801469
diskid/DISK-22320Y801469p3 OK diskid/DISK-22320Y801469

Code: Select all

gpart show
=> 9 1393479 cd0 MBR (2.7G)
9 1393479 - free - (2.7G)

=> 9 1393479 iso9660/GHOSTBSD MBR (2.7G)
9 1393479 - free - (2.7G)

=> 40 976773088 ada0 GPT (466G)
40 512 1 freebsd-boot (256K)
552 971528192 2 freebsd-zfs (463G)
971528744 5234688 3 freebsd-swap (2.5G)
976763432 9696 - free - (4.7M)

=> 40 976773088 diskid/DISK-22320Y801469 GPT (466G)
40 512 1 freebsd-boot (256K)
552 971528192 2 freebsd-zfs (463G)
971528744 5234688 3 freebsd-swap (2.5G)
976763432 9696 - free - (4.7M)

Code: Select all

 gpart list
Geom name: ada0
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 976773127
first: 40
entries: 128
scheme: GPT
Providers:
1. Name: ada0p1
   Mediasize: 262144 (256K)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 20480
   Mode: r0w0e0
   efimedia: HD(1,GPT,cedb2cc5-48d2-11ed-bb29-0021cccbd634,0x28,0x200)
   rawuuid: cedb2cc5-48d2-11ed-bb29-0021cccbd634
   rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
   label: (null)
   length: 262144
   offset: 20480
   type: freebsd-boot
   index: 1
   end: 551
   start: 40
2. Name: ada0p2
   Mediasize: 497422434304 (463G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 282624
   Mode: r0w0e0
   efimedia: HD(2,GPT,d05d0973-48d2-11ed-bb29-0021cccbd634,0x228,0x39e85800)
   rawuuid: d05d0973-48d2-11ed-bb29-0021cccbd634
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 497422434304
   offset: 282624
   type: freebsd-zfs
   index: 2
   end: 971528743
   start: 552
3. Name: ada0p3
   Mediasize: 2680160256 (2.5G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 497422716928
   Mode: r0w0e0
   efimedia: HD(3,GPT,d1b693a6-48d2-11ed-bb29-0021cccbd634,0x39e85a28,0x4fe000)
   rawuuid: d1b693a6-48d2-11ed-bb29-0021cccbd634
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2680160256
   offset: 497422716928
   type: freebsd-swap
   index: 3
   end: 976763431
   start: 971528744
Consumers:
1. Name: ada0
   Mediasize: 500107862016 (466G)
   Sectorsize: 512
   Mode: r0w0e0

Geom name: diskid/DISK-22320Y801469
modified: false
state: OK
fwheads: 16
fwsectors: 63
last: 976773127
first: 40
entries: 128
scheme: GPT
Providers:
1. Name: diskid/DISK-22320Y801469p1
   Mediasize: 262144 (256K)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 20480
   Mode: r0w0e0
   efimedia: HD(1,GPT,cedb2cc5-48d2-11ed-bb29-0021cccbd634,0x28,0x200)
   rawuuid: cedb2cc5-48d2-11ed-bb29-0021cccbd634
   rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
   label: (null)
   length: 262144
   offset: 20480
   type: freebsd-boot
   index: 1
   end: 551
   start: 40
2. Name: diskid/DISK-22320Y801469p2
   Mediasize: 497422434304 (463G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 282624
   Mode: r0w0e0
   efimedia: HD(2,GPT,d05d0973-48d2-11ed-bb29-0021cccbd634,0x228,0x39e85800)
   rawuuid: d05d0973-48d2-11ed-bb29-0021cccbd634
   rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 497422434304
   offset: 282624
   type: freebsd-zfs
   index: 2
   end: 971528743
   start: 552
3. Name: diskid/DISK-22320Y801469p3
   Mediasize: 2680160256 (2.5G)
   Sectorsize: 512
   Stripesize: 0
   Stripeoffset: 497422716928
   Mode: r0w0e0
   efimedia: HD(3,GPT,d1b693a6-48d2-11ed-bb29-0021cccbd634,0x39e85a28,0x4fe000)
   rawuuid: d1b693a6-48d2-11ed-bb29-0021cccbd634
   rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
   label: (null)
   length: 2680160256
   offset: 497422716928
   type: freebsd-swap
   index: 3
   end: 976763431
   start: 971528744
Consumers:
1. Name: diskid/DISK-22320Y801469
   Mediasize: 500107862016 (466G)
   Sectorsize: 512
   Mode: r0w0e0

Code: Select all

geom disk list
Geom name: cd0
Providers:
1. Name: cd0
   Mediasize: 2853863424 (2.7G)
   Sectorsize: 2048
   Mode: r0w0e0
   descr: HL-DT-ST DVDRAM GT50N
   ident: (null)
   rotationrate: unknown
   fwsectors: 0
   fwheads: 0

Geom name: ada0
Providers:
1. Name: ada0
   Mediasize: 500107862016 (466G)
   Sectorsize: 512
   Mode: r0w0e0
   descr: WD Blue SA510 2.5 500GB
   lunid: 5001b448b0358a2b
   ident: 22320Y801469
   rotationrate: 0
   fwsectors: 63
   fwheads: 16

Code: Select all

camcontrol devlist
<WD Blue SA510 2.5 500GB 52015100>  at scbus0 target 0 lun 0 (pass0,ada0)
<HL-DT-ST DVDRAM GT50N LT20>       at scbus1 target 0 lun 0 (pass1,cd0)
<AHCI SGPIO Enclosure 2.00 0001>   at scbus4 target 0 lun 0 (pass2,ses0)
wb7odyfred
Posts: 204
Joined: Sat Nov 12, 2016 5:44 pm

Re: System won't boot after successful installation

Post by wb7odyfred »

Are you setup in MBR BIOS mode? Is CSM compatible support mode enabled in the BIOS? You need to have GPT UEFI mode enable for the BIOS, Safe Mode off. FAST boot off.
Post Reply