What terminal command will return data that includes the file systems that are currently available for mounting on my system?
Specifically, I am using Ubuntu 15.04, though I would prefer an answer that is valid for all *nix users.
NOTES: I don't want to know what IS mounted, I want to know what is available. I don't want to check the type of file system (ext2, ext4, ntsf, etc.), I want to know which file systems are available to be mounted (sda2, fd1, etc.).
The command findmnt lists all mount points. To do this the findmnt reads files /etc/fstab, /etc/fstab. d, /etc/mtab or /proc/self/mountinfo.
Use the lsfs command to display information about mount points, permissions, file system size and so on.
The mount -l command (or just mount) is often used to list all mounted partitions on a system, while fdisk -l is often used to list all partitions from any device which contains a partition table (a hard disk being the most common example).
On Ubuntu you can use to show discs:
sudo lshw -class disk
or to check all partitions on your system
sudo blkid -o list | grep "not mounted"
or if you just want the device:
sudo blkid -o list | grep "not mounted" | awk '{print $1}'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With