Get a list of partitions

To get a list of your currently mounted partitions:

$> sudo blkid -o list -w /dev/null

Result

device                                                 fs_type         label            mount point                                                UUID
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/dev/sda1                                              ext4                             /                                                          79012107-aeb7-4f72-95ca-a9ffaa9f502b
/dev/sda5                                              swap                             <swap>                                                     34e355d7-dd93-45f7-9696-02c6d4ebb8e8
/dev/sdb1                                              ntfs                             /media/7EEFE87C38D4D6CF                                    7EEFE87C38D4D6CF

 

3 thoughts on “Get a list of partitions

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.