Label (command)
Encyclopedia
In computing, label is a command
Command (computing)
In computing, a command is a directive to a computer program acting as an interpreter of some kind, in order to perform a specific task. Most commonly a command is a directive to some kind of command line interface, such as a shell....

 included with some operating systems (e.g., DOS
DOS
DOS, short for "Disk Operating System", is an acronym for several closely related operating systems that dominated the IBM PC compatible market between 1981 and 1995, or until about 2000 if one includes the partially DOS-based Microsoft Windows versions 95, 98, and Millennium Edition.Related...

, OS/2
OS/2
OS/2 is a computer operating system, initially created by Microsoft and IBM, then later developed by IBM exclusively. The name stands for "Operating System/2," because it was introduced as part of the same generation change release as IBM's "Personal System/2 " line of second-generation personal...

 and Microsoft Windows
Microsoft Windows
Microsoft Windows is a series of operating systems produced by Microsoft.Microsoft introduced an operating environment named Windows on November 20, 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces . Microsoft Windows came to dominate the world's personal...

). It is used to create, change, or delete a volume label on a logical drive, such as a hard disk partition or a floppy disk
Floppy disk
A floppy disk is a disk storage medium composed of a disk of thin and flexible magnetic storage medium, sealed in a rectangular plastic carrier lined with fabric that removes dust particles...

. Used without parameters, label changes the current volume label or deletes the existing label.

In Unix
Unix
Unix is a multitasking, multi-user computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs, including Ken Thompson, Dennis Ritchie, Brian Kernighan, Douglas McIlroy, and Joe Ossanna...

 and other Unix-like
Unix-like
A Unix-like operating system is one that behaves in a manner similar to a Unix system, while not necessarily conforming to or being certified to any version of the Single UNIX Specification....

 operating systems, the name of the equivalent command differs from file system
File system
A file system is a means to organize data expected to be retained after a program terminates by providing procedures to store, retrieve and update data, as well as manage the available space on the device which contain it. A file system organizes data in an efficient manner and is tuned to the...

 to file system. For instance, the command e2label can be used for ext2
Ext2
The ext2 or second extended filesystem is a file system for the Linux kernel. It was initially designed by Rémy Card as a replacement for the extended file system ....

 partitions.

Syntax

LABEL [drive:][label]
LABEL [/MP] [volume] [label]

Arguments:
  • drive: This command-line argument specifies the drive letter of a drive.
  • label Specifies the label of the volume.
  • volume Specifies the drive 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.

Supported file systems

  • FAT12
  • FAT16
  • FAT32
  • exFAT
    ExFAT
    exFAT is a proprietary, patent-pending file system designed especially for USB flash drives. Developed by Microsoft, it is supported in Windows XP and Windows Server 2003 with update KB955704, Windows Embedded CE 6.0, Windows Vista with Service Pack 1, Windows Server 2008, Windows 7, Windows...

  • NTFS
    NTFS
    NTFS is the standard file system of Windows NT, including its later versions Windows 2000, Windows XP, Windows Server 2003, Windows Server 2008, Windows Vista, and Windows 7....


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.

See also

  • Vol (command)
    Vol (command)
    In some operating systems vol is a command within the command line interpreters such as COMMAND.COM and cmd.exe...

     — Displays the disk volume label and serial number.
  • List of DOS commands
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK