label
秃噜豆儿 发表于 2020-06-23 13:56浏览次数:
The label command is used to view or change the label of a computer's drives.
如果您的硬盘驱动器标签包含ASCII或其他扩展字符,并且您正在运行MS-DOS 6.0或更低版本,则运行磁盘扫描程序可能会损坏硬盘驱动器。
因为磁盘扫描程序正在寻找损坏或不正确的数据,所以如果硬盘驱动器标签上有ASCII或任何无法识别的字符,它将尝试修复这些字符。如果磁盘扫描程序试图修复您的标签,它可能会删除所有信息并将其放入CHK文件中。
如果硬盘驱动器具有无法识别的字符,则无法使用fdisk删除分区。
创建标签后,请使用label重新创建标签,然后使用fdisk删除分区。
If your hard drive label contains ASCII or other extended characters and you are running MS-DOS 6.0 or lower, running ScanDisk may corrupt the hard drive.
Because ScanDisk is looking for corrupt or incorrect data, if the hard drive label has ASCII or any unrecognized characters it will attempt to fix those characters. If ScanDisk attempts to fix your label, it may remove all information and place it into a CHK file.
If the hard drive has unrecognizable characters, unable to delete the partition using fdisk.
Use label to recreate the label and then use fdisk to delete the partition after label created.
目录:
1 label 运行系统环境
2 label 语法
3 label 示例
label 运行系统环境
Windows 95
Windows 98
Windows xp
Windows vista
Windows 2000
Windows 7
Windows 8
Windows 10
Windows NT
Windows ME
All Versions of MS-DOS
label 语法
Windows Vista和更高版本的语法
LABEL [drive:][label]
LABEL [/MP] [volume] [label]
drive:
|
指定驱动器的驱动器号。
|
label
|
指定卷的标签。
|
/MP
|
指定将卷视为安装点或卷名。
|
volume
|
指定驱动器号(后跟冒号),安装点或卷名。如果指定了卷名,则不需要/ MP标志。
|
Windows XP和更早的语法
LABEL [drive:][label]
drive:
|
指定驱动器的驱动器号。
|
label
|
指定卷的标签。
|
Windows Vista and later syntax
LABEL [drive:][label]
LABEL [/MP] [volume] [label]
drive:
|
Specifies the drive letter of a drive.
|
label
|
Specifies the label of the volume.
|
/MP
|
Specifies that the volume should be treated as a mount point or volume name.
|
volume
|
Specifies the drive letter (followed by a colon), mount point, or volume name. If volume name is specified, the /MP flag is unnecessary.
|
Windows XP and earlier syntax
LABEL [drive:][label]
drive:
|
Specifies the drive letter of a drive.
|
label
|
Specifies the label of the volume.
|
label 示例
label a: hope
上面的示例将驱动器A:中的软盘标记为“hope”,但如果磁盘有写保护,则不会标记。
label a: hope
The example above would label the floppy diskette in drive A: to "hope," but will not label if your disk is write-protected.