Posted Mar 3, 2011 18:26 UTC (Thu) by ebiederm (subscriber, #35028)
Parent article: Quotes of the week
/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.