How to Find a Drive UUID (Linux)

My drives seem to change their bios location at will after each boot

so rather than mount them using their device names

 eg. /dev/sdc1

I have specified their UUID in /etc/fstab

#Data Disks

UUID=9e058272-98f0-441b-be73-1c60d3154501 /mnt/data1 auto defaults 0 0

UUID=332b3329-2111-4654-b968-7b3b421cdf95 /mnt/data2 auto defaults 0 0

UUID=4e203f8f-2c30-4783-a9e2-eea5339546a5 /mnt/stuff auto defaults 0 0

To find all these UUID keys i used

vol_id /dev/sda1

This gave me the UUID of the disk so my mounts are bolted down no matter where the disks try to hide

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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