To find out the serial number of a disk I mostly use one of the following commands:
/sbin/udevadm info --query=property --name=sdb | grep ID_SERIAL
## or
hdparm -i /dev/sdb | grep SerialNo
FUN WITH LINUX
11 October 2016
To find out the serial number of a disk I mostly use one of the following commands:
/sbin/udevadm info --query=property --name=sdb | grep ID_SERIAL
## or
hdparm -i /dev/sdb | grep SerialNo
Linux
Sysadmin
Tricks
Shell
]
Copyright 2015-present Hoti