It is recommended to use lsblk(8)
command to get information about block devices, or lsblk --fs
to get an overview of filesystems, or findmnt(8)
to search in already mounted filesystems.
# List block devices without partitions
lsblk -d
# List block devices and partitions
lsblk
# List filesystem types and UUID
lsblk --fs
# List mountpoints, filesystem type and mount options
findmnt