Finding the UUID of a drive to mount on Linux

Tags:

$ <strong>tune2fs -l /dev/sdc2</strong>
tune2fs 1.35 (28-Feb-2004)
Filesystem volume name: root
Last mounted on:
Filesystem UUID: 7d99ac7d-9fc5-42ea-8f47-f2fb92b6b8de

...

and then in /etc/fstab you can specify a mount-point, for example:

UUID=7d99ac7d-9fc5-42ea-8f47-f2fb92b6b8de /home           ext4    defaults        0       2