If you need to see a list of the available partitions, (whether they’re mounted or not), in a Linux machine use the following command:
sudo fdisk -l
the ‘l’ parameter is used to ‘list’ the available partitions. If you need to see a list of the available ‘mounted’ partitions then use this command:
df -h
The ‘h’ parameter changes the output from the ‘df’ command so that it is ‘human’ readable.
Advertisement