MS-DOS Volume Label and Serial Number Command
In MS-DOS 6.22, checking drive identification is a fundamental task
for disk management and routine system administration. This article
explains how to use the built-in VOL command to quickly
display the volume label and volume serial number of any active drive,
covering standard syntax, usage across different drives, and sample
output.
The primary command used to display the active volume label and
serial number in MS-DOS 6.22 is VOL. It is an internal
command, meaning it is loaded directly into memory with
COMMAND.COM and can be executed at any prompt without
requiring access to an external DOS utility file.
Basic Syntax
To view the volume label and serial number for the drive you are currently working in, enter the command with no additional parameters:
VOL
If you need to view the information for a specific drive without changing your current directory or drive letter, specify the drive letter followed by a colon:
VOL [drive:]
For example, to check the status of a floppy disk in drive A while working from the C drive, enter:
VOL A:
Command Output
When executed, MS-DOS returns the assigned volume label along with the 32-bit hexadecimal serial number that was generated when the disk was formatted.
A standard output for a labeled drive appears as follows:
Volume in drive C is MS-DOS_622
Volume Serial Number is 1E2C-4B7F
If the drive was formatted without a label, the system reports:
Volume in drive C has no label
Volume Serial Number is 1E2C-4B7F
While other commands such as DIR also display this
information at the very top of a directory listing, the VOL
command is the fastest and most direct method to retrieve disk identity
in MS-DOS 6.22 without listing file contents.