Changing the Label of your linux partition with e2label

Changing the Label of your linux partition with e2label

- If your partition is ext2,ext3 or ext4, you can use the e2label command to set the label:e2label - Change the label on an ext2/ext3/ext4 filesystem

# e2label /pathto/device "new-label"

- After you have set the label to, say, "data" you can add a line in /etc/fstab like this oneLABEL=data /mnt/data ext4 noauto,users,rw 0 0then you just need to say mount /mnt/data. If you don't want to modify fstab you can use mount's -L option to specify the label:mount -L data /mnt/data

- There's no need to adjust fstab with an external drive or flash drive just refresh the file explorer if in use

0 comments:

Post a Comment