Open pghpete opened 1 year ago
mount(8) output is maintained for backward compatibility only. If you want a better overview of the mounted filesystem then use findmnt(8), or if you prefer a devices-based view then use lsblk(8).
I was aware of lsblk but not findmnt. Thank you for pointing me to it @karelzak
With the addition of a number of different "mounted' file systems and devices, it is getting harder and harder to make out physical disk devices on a system using the mount command. (yes 'df -h' is an option but it does not provide the same information as the 'mount' command)
On a newly installed Fedora 39 system using the default disk layout provided by the installer, there are 10 devices shown by '
df -h
'However, the '
mount
' command shows 29 devices.Picking out the devices you are interested in in a list of that size continues to get more difficult. I am aware that you can use the mount command with the
'-t|--type'
command line options, however, it would be nice if there was something like...'-e|--exclude'
to exclude file system types like cgroup2, devpts, sysfs, securityfs, etc'-d|--disk'
(or'--df'
? ) to list mounts of physical disk devices or provide mount information on those mounts displayed in 'df'This would allow users to be able to identify devices they are interested in far quicker than looking through the current full output the mount command provides.
Here is what is currently needed to see the mount points in question that the
'df'
command reports on.I do not know if my suggestions are the best route forward or if there might be a better way to achieve the same results. For instance maybe it is as simple as adding colorized output for various file system types?
I am interested to see what others think about this issue.