Re: No longer single-user on unclean fs?
Date: Sun, 24 Aug 2025 16:37:26 UTC
On Sunday, August 24th, 2025 at 2:46 PM, Warner Losh <imp@bsdimp.com> wrote: > On Sun, Aug 24, 2025 at 8:32 AM Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.net> wrote: > >> Hi, >> >> I just updated a bhyve file system and forgot to unmount it on the host; >> starting the guest I am surprised to see Login: and not press enter for >> /bin/sh from init ... > > There's two issues. First, /etc/rc output only goes to the primary console. It wouldn't have prompted you or shown you a single user shell here anyway. > > Second, we've never dropped to single user mode solely for unclean shutdown. Only for filesystems that couldn't be fixed. These could be fixed with fsck, so no single user. > > i agree with bz, there have been numerous times where i was dropped to single user for unclean shutdown which could be fixed with fsck > > Unclean shutdown only prevents read-write mounting of a filesystem. It's cleared when the filesystem checks out a good with fsck (or fsck is able to fix safe to fix things). You'll only drop to single user if fsck can't fix it in 'preen' mode. > > Warner > >> ... >> isa_probe_children: disabling PnP devices >> atkbdc: atkbdc0 already exists; skipping it >> atrtc: atrtc0 already exists; skipping it >> attimer: attimer0 already exists; skipping it >> sc: sc0 already exists; skipping it >> isa_probe_children: probing non-PnP devices >> sc0 failed to probe on isa0 >> vga0: <Generic ISA VGA> at port 0x3b0-0x3bb iomem 0xb0000-0xb7fff pnpid PNP0900 on isa0 >> pcib0: allocated type 4 (0x3b0-0x3bb) for rid 0 of vga0 >> isa_probe_children: probing PnP devices >> Device configuration finished. >> procfs registered >> Statistical TSC calibration took 18310 us and 4437 data points >> Timecounter "TSC" frequency 1895998951 Hz quality 1000 >> Statistical lapic calibration took 11276 us and 699 data points >> lapic: Divisor 2, Frequency 67108868 Hz >> Timecounters tick every 10.000 msec >> lo0: bpf attached >> vlan: initialized, using hash tables with chaining >> IPsec: Initialized Security Association Processing. >> tcp_init: net.inet.tcp.tcbhashsize auto tuned to 131072 >> usb_needs_explore_all: no devclass >> ahcich0: AHCI reset... >> pci0: driver added >> found-> vendor=0x8086, dev=0x2725, revid=0x1a >> domain=0, bus=0, slot=5, func=0 >> class=02-80-00, hdrtype=0x00, mfdev=0 >> cmdreg=0x0007, statreg=0x0010, cachelnsz=0 (dwords) >> lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) >> powerspec 3 supports D0 D3 current D0 >> MSI supports 1 message, 64 bit >> MSI-X supports 16 messages in map 0x10 >> pci0:0:5:0: reprobing on driver added >> ahcich0: SATA connect time=0us status=00000133 >> ahcich0: AHCI reset: device found >> ahcich0: AHCI reset: device ready after 0ms >> ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 >> ada0: <BHYVE SATA DISK 001> ACS-2 ATA SATA 3.x device >> ada0: Serial Number BHYVE-DEEE-91F5-8E77 >> ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) >> ada0: Command Queueing enabled >> ada0: 16384MB (33554432 512 byte sectors) >> pass0 at ahcich0 bus 0 scbus0 target 0 lun 0 >> pass0: <BHYVE SATA DISK 001> ACS-2 ATA SATA 3.x device >> pass0: Serial Number BHYVE-GEOM: new disk ada0 >> DEEE-91F5-8E77 >> pass0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) >> pass0: Command Queueing enabled >> Trying to mount root from ufs:/dev/ada0p4 [rw]... >> WARNING: WITNESS option enabled, expect reduced performance. >> WARNING: / was not properly dismounted >> WARNING: /: mount pending error: blocks 177952 files 3815 >> efirtc0: providing initial system time >> Dual Console: Serial Primary, Video Secondary >> start_init: trying /sbin/init >> >> FreeBSD/amd64 (Amnesiac) (ttyu0) >> >> login: >> >> -- >> Bjoern A. Zeeb r15:7