Please excuse my brevity. I hope this is helpful. I'm attempting to use a FreeBSD system I installed onto a root device formatted in Linux using its ext2 file system standard, however this bug is also showing after zeroing the device and using ext3 and ext4. Disk does not automatically remount at boot due to the file system being flagged for checking. This happens with or without a partition table leading the disk. System bootstrap is via CD-ROM with load of kernel and ext2fs.ko and 'boot -a'. VM session is via QEMU 5.2.0. Workaround is 'mount -f /' in single-user mode or file system check while disk is off-line. The following information is transcribed via hand from the on-screen log: Waiting (max 60 seconds) for system process `vnlru' to stop... done Waiting (max 60 seconds) for system process `syncer' to stop... Syncing disks, vnodes remaining... 0 0 0 0 0 0 0 0 0 done All buffers synced. unmount of / failed (22) WARNING: Filesystem was not properly dismounted Starting file system checks: WARNING: R/W mount of / denied. Filesystem is not clean - run fsck mount: /dev/ada0: Operation not permitted Mounting root filesystem rw failed, startup aborted ERROR: ABORTING BOOT (sending SIGTERM to parent)! 2023-11-16T21:27:56.51196-05:00 - init 1 - - /bin/sh on /etc/rc terminated abnormally, going to single user mode Enter full pathname of shell or RETURN for /bin/sh:
^Triage: is this still a problem on recent versions of FreeBSD?
(In reply to Mark Linimon from comment #1) The same error is still occurring with ext2fs.ko under FreeBSD 15.0-RELEASE via amd64 whether the ext2 filesystem is mounted read-only or read-write as the root of the system at the time of halt.
Hi, Douglas. I had not consider the scenario, when FreeBSD uses ext2fs as a root filesystem.(If I got issue description correctly). Also, I'm not familiar with the bootstrap process, which you explained. I always had used ufs or zfs (couple of times) as a root filesystem. Could you please provide more detailed description of FeeBSD bootstrap process which you explained. Mean, steps, what I need to do, if I have QEMU with FreeBSD installation *.iso, to reproduce this issue. If it could be simple fixed, I will try to do it.