如何给不同的文件系统指定卷标

摘自:https://wiki.archlinux.org/index.php/persistent_block_device_naming
swap
swaplabel -L <label> /dev/XXX using util-linux
ext2/3/4
e2label /dev/XXX <label> using e2fsprogs
btrfs
btrfs filesystem label /dev/XXX <label> using btrfs-progs
reiserfs
reiserfstune -l <label> /dev/XXX using reiserfsprogs
jfs
jfs_tune -L <label> /dev/XXX using jfsutils
xfs
xfs_admin -L <label> /dev/XXX using xfsprogs
fat/vfat
dosfslabel /dev/XXX <label> using dosfstools
fat/vfat
mlabel -i /dev/XXX ::<label> using mtools
ntfs
ntfslabel /dev/XXX <label> using ntfs-3g

Note:
Changing the filesystem label of the root partition has to be done from a "live" GNU/Linux distribution because the partition

needs to be unmounted first.
Labels have to be unambiguous to prevent any possible conflicts;
Labels can be up to 16 characters long

你可能感兴趣的:(卷标)