To list UUID for all your storage devices, run ”’blkid -c /dev/null”’
blkid - locate/print block device attributes
Example
boby@bizhat ~ $ sudo blkid -c /dev/null [sudo] password for boby: /dev/sda1: UUID="c17be3a7-dd65-448a-8930-b9d0369c6575" TYPE="ext4" /dev/sda2: UUID="c72e257f-b210-4f81-b1de-e5130d61454e" TYPE="ext4" /dev/sda3: UUID="ab289ee4-fa14-4da0-af60-a9c4360327b2" TYPE="swap" /dev/sda5: UUID="b1ebdc91-64a8-46b0-a9ee-8e71c659bba0" TYPE="ext4" /dev/sda8: LABEL="Drive J" UUID="01CE4B5BC914BE10" TYPE="ntfs" /dev/sdb1: UUID="67fd4ee7-1123-433c-aab4-ed877051976d" TYPE="ext4" /dev/sdb5: UUID="28f4e904-ecfa-4a9f-b632-60c58c826cfc" TYPE="swap" /dev/sdb6: UUID="19ca47a8-d894-44ff-a7af-77fa16635e98" TYPE="ext4" /dev/sdc1: LABEL="Drive E" UUID="709409F99409C298" TYPE="ntfs" /dev/sdc2: LABEL="Drive C" UUID="BC108B2C108AECA8" TYPE="ntfs" /dev/sdc5: LABEL="Drive D" UUID="2ED4A94DD4A917DB" TYPE="ntfs" /dev/sdc6: LABEL="New Volume" UUID="FEA6945FA69419EB" TYPE="ntfs" /dev/sdc7: LABEL="Drive G" UUID="A4A08A44A08A1CC4" TYPE="ntfs" /dev/sr1: LABEL="Idea Net Setter" TYPE="iso9660" boby@bizhat ~ $
To mount /dev/sda5, i added following to /etc/fstab
UUID=b1ebdc91-64a8-46b0-a9ee-8e71c659bba0 /home/boby/store ext4 defaults 0 2
It is same as
/dev/sda5 /home/boby/store ext4 defaults 0 2
Leave a Reply