Modify Linux
You can use e2label for the volume label of the partition. For example, you can change the/dev/sda1 volume label to/boot.
$ E2label/dev/sda1/boot
View Linux
Partition file system volume label
$ E2label/dev/sda1
/Boot
In Linux
In Windows partition, how does one modify the volume label? We need to use two tools:
For vfat file systems, you can use dosfslabel from the dosfstools package; For NTFS file systems, you can use ntfslabel from the ntfsprogs package
Dosfslabel (if not installed, fedora users can directly install Yum install-y dosfstools)
Used for vfat partitioning. command usage:
Dosfslabel device [label]
For example, modify the volume label of a vfat partition (both fat16 and FAT32 can ).
$ Dosfslabel/dev/sda5/Windows
View the vfat partition volume label
$ Dosfslabel/dev/sda5
Ntfsprogs (if not installed, fedora users can directly install-y ntfsprogs)
Used for NTFS partition. command usage:
Ntfslabel device [label]
For example, modify the volume label of an NTFS partition.
$ Ntfslabel/dev/sda6/XP
View NTFS partition volume labels
$ Ntfslabel/dev/sda6
/XP