USB-drive serial number under linux C++
Is there any way to determine s/n of usb-drive in linux using C++ ? If not C++ is there any other way different from hwinfo -disk and hdparm -i ? clyfe I'll try to summarize my experience regarding storage drive serial number retrieval on linux. I assume you want the serial number of the storage device identity (as per SCSI specification) not the serial number of the USB device (as per USB specification under Device Descriptor ), these two are different entities. NOTICE! Most devices tend to implement a serial number in the USB-Controller and leave the serial number of the inner SCSI-disk