How to retrieve and change partition's UUID Universally Unique Identifier on linux -

On some unix systems a hard drives partition is referred by to as Universally Unique Identifier( UUID ) instead of the location of the it relevant block device file for example like in /etc/fstab:
This is a companion discussion topic for the original entry at



It’s even simpler to use “tune2fs /dev/sda1 -U random”, you won’t even need to install the uuid utility.



Great tutorial. I didn’t realize there were so many ways to look up the UUID.