Label a disk in Linux

Linux Logo

Label a disk in Linux

Linux Logo
sudo e2label /dev/mapper/mydisk my-label

This will make the disk accessible via ls /dev/disk/by-label/

e2label is applicable to ext2/3/4 file systems only, other file systems have different utilities