Question: I have a Linux box with five disk drives, one of which I want to replace. ?The offending drive is /dev/sdc, but that doesn’t tell me how to distinguish the hardware. ?The drive is SATA and the assignment of drives to devices sometimes changes after a boot.
I’d like to be able to use the model names printed on the disk. ?I know these names are machine-readable because they are the names the BIOS uses.
Is there a way, using Linux, to find out the model number of /dev/sdc, or even the model numbers of all the drives in the system? ?
Answer: Try the hdparm program:
# hdparm -i /dev/sdc/dev/sda: Model=INTEL SSDSA2CW080G3, FwRev=4PC10362, SerialNo=CVPR112003RA080BGN…
The -i option of hdparm can be used to retrieve identification information.