Ubuntu: Mount disk by UUID

It is a good idea in Ubuntu to mount a disk by UUID instead of the device since devices (/dev/sd*) are known to change.  Here is how…

root@drvault:~# ls -la /dev/disk/by-uuid/ | grep data
lrwxrwxrwx 1 root root  24 2011-02-22 09:46 4596e922-5863-409e-ba9a-ddefcc7bc604 -> ../../mapper/data-backup

Add line to /etc/fstab

UUID=4596e922-5863-409e-ba9a-ddefcc7bc604 /data         ext4    defaults 0 0

Test mount…

mount -av