Label a disk in Linux
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
Related
- Linux Essentials
- LUKS: Linux Unified Key Setup Essentials
- Setup Encrypted Disk on Raspberry Pi
- Create USB Disk from ISO
- What is Filling up my Disk Space
- How to make a Virtual Box Virtual Disk Read Only
- How to Backup a Hard Disk Drive Independent of Filesystem
- Extend Volume in Windows