Bug 275147 - ext2fs mounted at the root of the system does not unmount
Summary: ext2fs mounted at the root of the system does not unmount
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.2-STABLE
Hardware: i386 Any
: --- Affects Some People
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-17 03:00 UTC by Douglas Winslow
Modified: 2023-11-17 04:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Winslow 2023-11-17 03:00:35 UTC
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: