System will not boot to single user mode
Doug Denault
doug at safeport.com
Fri Aug 14 19:56:59 UTC 2020
First, this is almost certainly self-induced. I can easily reinstall 12.1
using a USB image. My goal is to learn a bit more about zfs and booting. So
the question will be what did I break? I had some things I did not
understand about the differences going from 11.1 --> 12.1 so I ran
freebsd-update going forward and rolling back 2-3 times. The problem in
hand is, I think, at the point I should get the "hit enter to use sh"
message the system hangs. The boot matches so the point shown below:
:
uhub5 on uhub1
uhub5: <vendor 0x0557 product 0x7000, class 9/0, rev 2.00/0.00, addr 2> on usbus0
uhub5: 4 ports with 3 removable, self powered
Root mount waiting for: usbus0
ugen0.4: <vendor 0x0557 product 0x2419> at usbus0
ukbd1 on uhub5
ukbd1: <vendor 0x0557 product 0x2419, class 0/0, rev 1.10/1.00, addr 3> on usbus0
kbd3 at ukbd1
--- single user boot hangs here ---
lo0: link state changed to UP
igb0: link state changed to UP
:
Because I have not figured out a way to log the single user boot and that
scroll lock does not work on the IPMI I do not have the entire single user
boot. I look "normal" the messages I can match all do althougth the order
is not the same.
gpart show
=> 63 1953525105 ada0 MBR (932G)
63 1 - free - (512B)
64 1953525096 1 freebsd [active] (932G)
1953525160 8 - free - (4.0K)
=> 0 1953525096 ada0s1 BSD (932G)
0 4194304 1 freebsd-zfs (2.0G)
4194304 4194304 2 freebsd-swap (2.0G)
8388608 1945136480 4 freebsd-zfs (928G)
1953525088 8 - free - (4.0K)
=> 63 1953525105 ada1 MBR (932G)
63 1 - free - (512B)
64 1953525096 1 freebsd [active] (932G)
1953525160 8 - free - (4.0K)
=> 0 1953525096 ada1s1 BSD (932G)
0 4194304 1 freebsd-zfs (2.0G)
4194304 4194304 2 freebsd-swap (2.0G)
8388608 1945136480 4 freebsd-zfs (928G)
1953525088 8 - free - (4.0K)
zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
bootpool 1.98G 183M 1.81G - - 11% 9% 1.00x ONLINE -
zroot 920G 8.12G 912G - - 0% 0% 1.00x ONLINE -
zfs list
NAME USED AVAIL REFER MOUNTPOINT
bootpool 183M 1.68G 180M /bootpool
zroot 8.12G 883G 96K /zroot
zroot/ROOT 5.34G 883G 96K none
zroot/ROOT/default 5.34G 883G 5.34G /
zroot/tmp 168K 883G 168K /tmp
zroot/usr 2.75G 883G 96K /usr
zroot/usr/home 827M 883G 827M /usr/home
zroot/usr/ports 742M 883G 742M /usr/ports
zroot/usr/src 1.22G 883G 1.22G /usr/src
zroot/var 12.6M 883G 96K /var
zroot/var/audit 96K 883G 96K /var/audit
zroot/var/crash 96K 883G 96K /var/crash
zroot/var/log 660K 883G 660K /var/log
zroot/var/mail 11.5M 883G 11.5M /var/mail
zroot/var/tmp 96K 883G 96K /var/tmp
Following advise I got here and some testing:
ls -l /boot
lrwxr-xr-x 1 root wheel 14 Aug 2 02:07 /boot@ -> bootpool/boot/
At the end of all my updating I think I did not have /boot, The system
would boot but freebsd-update said /boot was missing. I would really like
to know what I broke. I am not sure what else to show.
_____
Douglas Denault
http://www.safeport.com
doug at safeport.com
Voice: 301-217-9220
Fax: 301-217-9277
More information about the freebsd-questions
mailing list