List all mounted or unmounted partitions with their file system types
I have a headless Ubuntu server and I have just realized that Ubuntu does not automount external drives if you are not logged on using Nautilus.
So I wanted a command to list all mounted and unmounted partitions.
Here’s the command I used:
sudo fdisk -l|more
In addition, you can use the following command to list unmounted external cd/dvd units