Labeling partitions y is very useful to identify volumes by naming rather than by partition number.
To add the label "root" to the root partition, /dev/sda2, you should run:
# tune2fs -Lroot /dev/sda2
# tune2fs -Lvar /dev/sda3
labeling swap partitions can be done with
# mkswap -L label /dev/sda4
Once you've got a label you can check it running
# cfdisk /dev/sda
Now, some file must be updated to use this new naming.
/etc/fstab - this file lists the partitions/file-systems which should Read more...