Bugzilla – Bug 146047
df and mount do not show all filesystems
Last modified: 2006-01-31 09:23:03 UTC
/local and /windows/C are not show, even if mounted. linux:~ # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 22G 6.7G 16G 31% / udev 760M 128K 760M 1% /dev linux:~ # mount /dev/sda1 on / type reiserfs (rw,acl,user_xattr) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) udev on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5) none on /sys/kernel/security type securityfs (rw) linux:~ # cat /etc/fstab /dev/sda1 / reiserfs acl,user_xattr 1 1 /dev/sda2 /local reiserfs acl,user_xattr 1 2 /dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0 /dev/hda5 swap swap defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs noauto 0 0 usbfs /proc/bus/usb usbfs noauto 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 /dev/hda6 /data1 auto noauto,user 0 0 /dev/hda7 /data2 auto noauto,user 0 0 linux:~ # cat /proc/mounts rootfs / rootfs rw 0 0 udev /dev tmpfs rw 0 0 /dev/sda1 / reiserfs rw 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 devpts /dev/pts devpts rw 0 0 /dev/hda1 /windows/C ntfs ro,nosuid,nodev,noexec,uid=0,gid=100,umask=02,nls=utf8,errors=continue,mft_zone_multiplier=1 0 0 /dev/sda2 /local reiserfs rw 0 0 none /sys/kernel/security securityfs rw 0 0
What is the content of /etc/mtab?
linux:~ # cat /etc/mtab /dev/sda1 / reiserfs rw,acl,user_xattr 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 udev /dev tmpfs rw 0 0 devpts /dev/pts devpts rw,mode=0620,gid=5 0 0 none /sys/kernel/security securityfs rw 0 0 You have mail in /var/mail/root
IMHO also the actual mounted devices would be help therefore please provide the content of /proc/mounts.
Se initial comment for cat /proc/mounts output. The devices are listed there.
Only /etc/mtab matters.
(In reply to comment #5) > Only /etc/mtab matters. Why should a mounted filesystem not show up in the output of df? Running du -sh is not really an option to find out how full the filesystem is.
Because /etc/mtab is the authoritative database.
Then the /etc/mtab is not correct and this should be fixed. The filesystem is really mounted as you can see from the /proc/mounts output. So it should show up in /etc/mtab, and if it does not, this is bug, isn't it?
Maybe this bug is related to bug #146192
This sounds reasonable. Whereas df only reads /etc/mtab and does its job, the mount program also writes /etc/mtab. Maybe there is a bug in mount its selfs or the behaviour is caused by an `-n' option in one of the boot scripts (-n for not updateing /etc/mtab). *** This bug has been marked as a duplicate of 146192 ***