There is one file system in Linux. What you are talking about is mounted points. You can't read a disk partition before mount it. Actual reading not with tools like dd for example.
fstab is a file and you have to open it in order to read its content.
See psutil module.
An example:
fstab is a file and you have to open it in order to read its content.
See psutil module.
An example:
import psutil devs = psutil.disk_partitions() for dev in devs: print(dev.device, psutil.disk_usage(dev.mountpoint).percent, dev.mountpoint)
Output:/dev/sda7 96.1 /
/dev/sda8 96.2 /home
/dev/sda5 99.2 /media/storage
/dev/sda7 96.1 /var/lib/docker/btrfs
As you can see I have more partitions but they are not mounted.