- Documentation
Elastic Compute Service
Elastic Compute Service
User Guide
Elastic Block Storage
Basic volume operations
Viewing device serial numbers
Basic volume operations
Viewing device serial numbers
Viewing device serial numbers
A serial number is a unique identifier for a device that distinguishes it from other devices. This topic describes how to view the serial number of a device on a Linux or Windows instance.
Constraints and limitations
The operations described in this guide apply only to ESSD volumes and do not apply to PTSSD volumes or local disks.
Viewing device serial numbers on Linux instances
- Run this command to get information about the device.
- You will see output similar to the following:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
├─vda1 253:1 0 200M 0 part /boot/efi
└─vda2 253:2 0 39.8G 0 part /
└─vdb1 253:17 0 9.8G 0 part
- Obtain the device name from the output.
- Run this command to obtain the serial number of the device.
udevadm info --query=all --name=<device name> | grep SERIAL
udevadm info --query=all --name=vdb | grep SERIAL
- You will see output similar to the following:
E: ID_SERIAL=lq7n6xu2rdh8mjj9****
Viewing device serial numbers on Windows instances
- In the search bar next to the "Start" button, type PowerShell.
- Click "Windows PowerShell".
- Run this command to get information about the device.
Get-CimInstance -ClassName Win32_LogicalDiskToPartition |select Antecedent, Dependent |fl
- You will see output similar to the following:
Antecedent : Win32_DiskPartition (DeviceID = "Disk #0, Partition #1")
Dependent : Win32_LogicalDisk (DeviceID = "C:")
Antecedent : Win32_DiskPartition (DeviceID = "Disk #1, Partition #0")
Dependent : Win32_LogicalDisk (DeviceID = "D:")
- Obtain the device ID from the output.
- Run this command to obtain the serial number of the device.
Get-Disk |select Number, SerialNumber
- You will see output similar to the following:
- Obtain the serial number based on the device ID.
Last updated: 2026.04.29 14:25:49