Skip to content

Instantly share code, notes, and snippets.

@twwlogin
Last active August 26, 2020 15:10
Show Gist options
  • Save twwlogin/7b16f86d4e19e366879213323ad71705 to your computer and use it in GitHub Desktop.
Save twwlogin/7b16f86d4e19e366879213323ad71705 to your computer and use it in GitHub Desktop.
# sg_vpd /dev/sdc
Supported VPD pages VPD page:
Supported VPD pages [sv]
Unit serial number [sn]
Device identification [di]
Extended inquiry data [ei]
Block limits (SBC) [bl]
Logical block provisioning (SBC) [lbpv]
# sg_vpd --page=sn /dev/sdc
Unit serial number VPD page:
Unit serial number:
# udevadm info -q all --path=/sys/block/sdc | grep ID_SERIAL
E: ID_SERIAL=3600144f0f4e106e711ff54b6b7820049
E: ID_SERIAL_SHORT=600144f0f4e106e711ff54b6b7820049
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment