Monday, June 14, 2010

Fstab and Device UUID on Fedora

When I added a Hard Disk on my Fedora box, I noticed that the /etc/fstab are already using UUID to mount disk.

Knowing UUID is quite essential if you wish to mount the drives using /etc/fstab especially for more current version of Linux. The advantage of using UUID is really identify the disk correctly and mitigate mounting issues caused by reordering of HDD

First thing first, you may want to list all the detected devices by UUID
# ls -l /dev/disk/by-uuid/

To list the UUID of a particular disk For example /dev/sdb1, you can use blkid command
# blkid /dev/sdb1

Much thanks to fstab with uuid by Linux by Example

No comments: