- Label (command)
In some
operating systems (e.g.,DOS ,OS/2 andMicrosoft Windows )label
is a command within thecommand line interpreter s (shells) such as
andCOMMAND.COM
. It is used to create, change, or delete acmd.exe volume label on alogical drive , such as a hard disk partition or afloppy disk . Used without parameters,label
changes the current volume label or deletes the existing label.In
Unix and otherUnix-like operating systems, the name of the equivalent command differs fromfile system to file system. For instance, the command
can be used fore2label ext2 partitions.yntax
LABEL [drive:] [label] LABEL [/MP] [volume] [label]
Arguments:
*drive:
Thiscommand-line argument specifies the drive letter of a drive.
*label
Specifies the label of the volume.
*volume
Specifies thedrive letter (followed by a colon), mount point, or volume name.Flags:
*/MP
Specifies that the volume should be treated as a mount point or volume name.Note: If
volume
name is specified, the/MP
flag is unnecessary.Example
upported file systems
*FAT12
*FAT16
*FAT32
*exFAT
*NTFS Limitations
FAT volume labels
*Volume labels can contain as many as 11 characters and can include spaces but no tabs.
*Volume labels cannot contain the following characters: ? / | . , ; : + = [ ] < > "
*Volume labels are stored as uppercase regardless of whether they contain lowercase letters.NTFS volume labels
*Volume labels can contain as many as 32 characters.
ee also
*
Vol (command) — Displays the disk volume label and serial number.
*List of DOS commands References
* [http://technet.microsoft.com/en-us/library/bb490925.aspx Microsoft TechNet Label article]
Wikimedia Foundation. 2010.