[ Why the Reply-To header? ] On Friday 29 June 2007 04:20, Ricardo Sánchez wrote:
Hello all:
I have been observing for some time a strange behavior in my mounted partitions.
Here's my fstab:
...
But if I want to see the disk space usage on my computer, df just shows part of what's (supposed to be) mounted:
linux:/home/rleal # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda7 21G 1.5G 19G 8% / udev 990M 132K 990M 1% /dev
linux:/home/rleal # mount /dev/sda7 on / type reiserfs (rw,acl,user_xattr) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) debugfs on /sys/kernel/debug type debugfs (rw) udev on /dev type tmpfs (rw) devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
linux:/home/rleal # cat /etc/mtab /dev/sda7 / reiserfs rw,acl,user_xattr 0 0 proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 debugfs /sys/kernel/debug debugfs rw 0 0 udev /dev tmpfs rw 0 0 devpts /dev/pts devpts rw,mode=0620,gid=5 0 0
...
Is this a bug, as suggested in the opensuse-es list?
I don't know the answer to that, but the man page for "mount" mentions that /etc/mtab can either be a plain file that records the result of issuing the mount command or it can be a symbolic link to /proc/mounts. I find that on my system, I see more output from the "df" command when /etc/mtab is the symbolic link to /proc/mounts than I do when it's the original file. The difference is all pseudo- (non-disk) file systems and a duplication of the root file system listed under both its label and its device name in /proc/mounts. Perhaps for some reason (the ordering of your /etc/init.d run-level scripts, perhaps?) your mounts all happen while the root file system is read-only and hence not recorded in /etc/mtab. In this case, perhaps you should do what it suggests in the man page for mount and replace /etc/mtab with a symbolic link to /proc/mounts. It does list some other disadvantages to doing that, however, so you should read that man page before trying this. Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org