Red Hat Bugzilla – Bug 53597
mount prepends current working directory to nfs mounts in mtab
Last modified: 2007-04-18 12:37:04 EDT
Description of Problem:
When mounting a filesystem from a remote node via NFS, mount corrupts
/etc/mtab by prepending the current working directory (from which the mount
command was run). This corrupt entry is then reported by df and mount when
displaying information on the mounted filesystem.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
[root@newt /root]# mount -r decatl:/usr/dec /mnt
[root@newt /root]# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda3 8325288 1349872 6552508 18% /
/dev/sda1 101093 6875 88997 8% /boot
/root/decatl:/usr/dec 4000000 2610040 1389960 66% /mnt
Notice the leading "/root/".
The corruption is in /etc/mtab, which shows the following entry for decatl:
/root/decatl:/usr/dec /mnt nfs ro,addr=22.214.171.124 0 0
/proc/mounts is fine, showing the following:
decatl:/usr/dec /mnt nfs
/etc/mtab should have:
decatl:/usr/dec /mnt nfs rw,addr=126.96.36.199 0 0
This is fixed in util-linux 2.11f-9 (current rawhide for alpha), mount
version 2.11g. Perhaps this RPM should be pushed as errata for alpha?
Workaround fix: Use util-linux 2.11f-9 from rawhide.
Note: This bug was sent through Compaq Support instead of being filed
directly, and was filed by Red Hat Support. Compaq would like to see this
pushed as an official errata.
Newer util-linux packages have since (coincidentally) been pushed as errata.