编辑ext2 / ext3 / FAT32 / NTFS磁盘分区卷标签;根据磁盘分区类型的不同,共有3种程序可供选择。
Mtools 适用于 FAT32 格式分区.
ntfsprogs 适用于 NTFS 格式分区.
e2label适用于 ext2 和 ext3 型格式分区.如果需要,可以去查看详细的,相对简单的我的具体步骤(我的是ntfs分区):
1.查看所有当前分区

fdisk -l
显示的结果类似于:
Device Boot Start End Blocks Id System /dev/sda1 * 63 275659334 137829636 7 HPFS/NTFS/exFAT Partition 1 does not start on physical sector boundary. /dev/sda2 275659396 1953523711 838932158 f W95 Ext'd (LBA) Partition 2 does not start on physical sector boundary. /dev/sda5 275659398 695116484 209728543+ 7 HPFS/NTFS/exFAT Partition 5 does not start on physical sector boundary. /dev/sda6 695116548 1114573634 209728543+ 7 HPFS/NTFS/exFAT Partition 6 does not start on physical sector boundary. /dev/sda7 1114573698 1534030784 209728543+ 7 HPFS/NTFS/exFAT Partition 7 does not start on physical sector boundary. /dev/sda8 1534030848 1848662464 157315808+ 7 HPFS/NTFS/exFAT /dev/sda9 1848663216 1852663215 2000000 82 Linux swap / Solaris /dev/sda10 1852663808 1953523711 50429952 83 Linux

2.首先卸载要修改名称的分区:
3.编辑名称:
ntfslabel /dev/sda5 music
注意:ntfslabel更改名称后将自动重新加载,因此无需执行mount命令来激活它。 。
在Linux下修改卷标(磁盘名称)
如果分区格式为ext2 / ext3类型,请使用以下命令:
e2label /dev/yourpartition newdiskname
e2label /dev/sda1 sda1
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/sanxing/article-372729-1.html
么么哒
三大无才
对中国大部分地区来说问题不是环保