Description of problem:
The df command does not show all mounted partitions
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. On command line give the df command
2. Observe the result
Not all mounted partitions are shown
Information of all mounted partitions
In fstab I have two nfs mounts defined
<host>:/mnt/raid/media /mnt/media nfs defaults 0 0
<host>:/mnt/raid/backup /mnt/backup nfs defaults 0 0
At boot these both get mounted, but only the first one shows up in the output provided by df. The mount command provides information for both nfs mounts. If I manually umount it and then mount it again it will also show up in df.
Due to the change in the /etc/mtab (instead of simple tab of mounted partitions it is now symlink to /proc/mounts), there is a lot of duplicates in this tab. Therefore, df is trying to reduce the duplicates based on some mechanism - you can get all of the mountpoints using df -a .
Can you please check: 1) Do they appear in df -a?
2) Provide strace of both df -a and df , if the mountpoint is available in df -a ?
Created attachment 849888 [details]
Created attachment 849889 [details]
strace df -a
1) both appear with df -a
2) attached strace output
Thanks, based on the same 1K-blocks size for both mounts, it looks like they have the same device id, right? This is probably the reason for filtering.
I'll close it as duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=920806 - as the issue is already there and you are hitting the same issue. The best way would probably be not suppressing duplicates for remote filesystems. It is on our todo list, but will take some time.
*** This bug has been marked as a duplicate of bug 920806 ***