How to Retrieve a Volume ID From a Drive

The Volume ID of a drive, also known as the Volume Serial Number, is a unique identifier assigned to a storage medium by the operating system during the format process. To retrieve the Volume ID from a drive in Windows, you can use the Command Prompt. Here’s how to do it:

For Windows:

  1. Press Win + R to open the Run dialog box.
  2. Type cmd and press Enter to open the Command Prompt.
  3. In the Command Prompt, type the following command and press Enter:
    vol C:

    Replace “C:” with the letter of the drive you want to get the Volume ID for.

The command will display something similar to this:

Volume in drive C is System
Volume Serial Number is XXXX-XXXX

The string “XXXX-XXXX” is the Volume ID of the drive.

For Linux and macOS:

On Linux and macOS, the concept of a Volume ID isn’t the same as in Windows. However, you can retrieve the universally unique identifier (UUID) for the filesystem, which serves a similar purpose.

For Linux:

  1. Open a terminal.
  2. You can use the blkid command:
    sudo blkid

    This will list all the block devices and their UUIDs, among other information. You’ll see output like:


For macOS:

  1. Open Terminal from the Applications > Utilities folder.
  2. Use the diskutil command:
    diskutil info /Volumes/DriveName

    Replace DriveName with the name of your drive. Look for the Volume UUID field in the output.

Remember, you may need administrative privileges to execute these commands, especially on Linux.

The UUID or Volume ID is often used in scripts and other administrative tasks to reliably reference a volume, since drive letters or mount points can change, whereas the UUID or Volume ID remains constant unless the volume is reformatted.

Leave a Reply

Your email address will not be published. Required fields are marked *