Thursday 4 March 2010

Mounting Filesystems by UUID - Ubuntu

Ubuntu 9.10 automatically mounts hard drives by UUID when it's installed. This means that if you insert a new hard drive, which changes all the /dev/sdxx numbers, your system will still function normally. Linux by examples has a good tutorial on common fstab commands for uuid.

To find all UUIDs:

ls -l /dev/disk/by-uuid/

To check the UUID for a known device:


sudo vol_id /dev/sda1

or this:

blkid /dev/sda1

No comments: