Bug 146047

Summary: df and mount do not show all filesystems
Product: [openSUSE] SUSE Linux 10.1 Reporter: Andreas Klein <asklein>
Component: BasesystemAssignee: Dr. Werner Fink <werner>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: aj, suse-beta, vetter
Version: Beta 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andreas Klein 2006-01-26 23:29:24 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
Comment 1 Thorsten Kukuk 2006-01-27 09:44:05 UTC
What is the content of /etc/mtab?
Comment 2 Andreas Klein 2006-01-27 17:13:35 UTC
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
Comment 3 Dr. Werner Fink 2006-01-30 09:45:20 UTC
IMHO also the actual mounted devices would be
help therefore please provide the content of
/proc/mounts.
Comment 4 Andreas Klein 2006-01-30 09:49:52 UTC
Se initial comment for cat /proc/mounts output. The devices are listed there.
Comment 5 Andreas Schwab 2006-01-30 10:09:40 UTC
Only /etc/mtab matters.
Comment 6 Andreas Klein 2006-01-30 13:13:00 UTC
(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.
Comment 7 Andreas Schwab 2006-01-30 13:33:23 UTC
Because /etc/mtab is the authoritative database.
Comment 8 Andreas Klein 2006-01-30 16:22:38 UTC
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?
Comment 9 Christian Boltz 2006-01-30 20:57:38 UTC
Maybe this bug is related to bug #146192
Comment 10 Dr. Werner Fink 2006-01-31 09:23:03 UTC
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 ***