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: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.2-STABLE
Hardware: i386 Any
: --- Affects Some People
Assignee: Fedor Uporov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-17 03:00 UTC by Douglas Winslow
Modified: 2026-06-08 18:49 UTC (History)
2 users (show)

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:
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2026-05-21 15:30:22 UTC
^Triage: is this still a problem on recent versions of FreeBSD?
Comment 2 Douglas Winslow 2026-06-08 00:05:04 UTC
(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.
Comment 3 Fedor Uporov freebsd_committer freebsd_triage 2026-06-08 18:48:54 UTC
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.