Re: /proc/mounts "stuff"

From: Chris Meadors
Date: Tue Feb 24 2004 - 16:47:21 EST


On Tue, 2004-02-24 at 16:34, Richard B. Johnson wrote:
> Linux version 2.2.24 (actually since pivot-root), have a
> problem with what's in /proc/mounts vs. what's written
> to /etc/mtab when mounting file-systems.

[file contents snipped]

> On that system /dev/root doesn't even exist!
> Neither does rootfs in any accessible way. Therefore,
> the shutdown routine(s) that read /proc/mounts will
> fail, leaving improperly dismounted volumes. Basically,
> if I execute `init 0` from the console, everything's
> fine, but executing 'reboot' from a network connection
> will result in a long fsucking startup.
>
> I think the two unusable entries should not show in
> /proc/mounts,
> rootfs / rootfs rw 0 0
> /dev/root / ext2 rw 0 0
> That would fix the problem because there is no way to
> umount either of them. Try it, `umount rootfs` returns
> ENOENT as does `umount /dev/root'`.

I have been considering making this same post for a while.

I do have a /dev/root (a symlink to my actual root device), and it is no
better. At shutdown/reboot time rootfs is still tried to be umounted
and fails leaving me with a dirty root at the next boot.


--
Chris

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/