How Do I View the Serial Number of a Block Storage Device?
In cloud environments, you often need to manage multiple block storage devices. As the number of devices increases, identifying them by name or ID alone can become difficult. To manage and operate these devices more efficiently, you can use the serial number to uniquely identify each block storage device. This section describes how to view the serial number of a block storage device in Linux and Windows, and how to use the serial number to identify the device ID to help locate issues.
Viewing the Serial Number of a Block Storage Device in Linux
The following example uses CentOS. The procedure may vary depending on the OS version.
- Log in to the server as user root.
For how to log in to an ECS, see How Do I Log In to My ECS?
For how to log in to a BMS, see Linux BMS Login Methods.
- Query the block storage device names:
fdisk -lu

The command output shows two block storage devices: /dev/vda (system disk) and /dev/vdb (data disk).
- Query the serial number of a block storage device:
udevadm info --query=all --name= <block-storage-device-name> | grep ID_SERIAL
Example command:
udevadm info --query=all --name=/dev/vdb | grep ID_SERIAL

The value of ID_SERIAL is the serial number of the data disk /dev/vdb.
Viewing the Serial Number of a Block Storage Device in Windows
The following example uses Windows 2019. The procedure may vary depending on the OS version.
The initialization may vary depending on the server OS.
- Log in to the server.
For how to log in to an ECS, see How Do I Log In to My ECS?
For how to log in to a BMS, see Windows BMS Login Methods.
- Open Windows PowerShell.
In the search box on the taskbar, type PowerShell and click Windows PowerShell.
- View the association between logical disks (such as C: and D:) and physical partitions:
Get-CimInstance -ClassName Win32_LogicalDiskToPartition |select Antecedent, Dependent |fl

From the command output:
Drive C: corresponds to disk 0.
Drive D: corresponds to disk 1.
- Query the serial numbers of the block storage devices:
Get-Disk | Select-Object Number, SerialNumber, BusType

From the command output:
The serial number of disk 0 is 027edalb-b066-4ed1-9.
The serial number of disk 1 is c737bf11-c146-4ed3-9.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot