Posted Mar 3, 2011 18:26 UTC (Thu) by ebiederm (subscriber, #35028)
Parent article: Quotes of the week
Blink.
/etc/mtab as a symlink to /proc/mounts only works in the simple cases.
I recently had to change /etc/mtab from a symlink back to a file, on my systems fedora 14 systems because things don't work if /etc/mtab is a symlink to /proc/mounts.
In particular I have bind mount /home from another partition and on top of that I have nfs mounts for a few users directories, and without out /etc/mtab being a file the directories were mounted in the wrong order.
When /etc/mtab is a symlink df shows my mounted filesystems multiple times (because of my bind mounts) but when /etc/mtab is a file I see each mounted filesystem only once.
Posted Mar 3, 2011 19:41 UTC (Thu) by mezcalero (subscriber, #45103)
[Link]
Please file bugs against util-linux regarding issues like this. mount has been modified to store the meta information it needs on top of what the kernel stores anway in /dev/.mount/. If there's something missing then please report this on bugzilla, not on LWN. Thanks!
/etc/mtab as a file not supported?
Posted Oct 5, 2012 12:34 UTC (Fri) by rleigh (subscriber, #14622)
[Link]
It should be under /run/mount along with utab, surely? We moved all use of dotfiles in /dev to /run; is this an exception which needs addressing?