Timeline for Harddisk serial number from terminal?
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 16, 2021 at 21:10 | comment | added | Brian Thomas | something hosed on my end, reports this for all 9 drives.. $ hdparm -I /dev/sda | grep 'Serial\ Number' SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 16 00 00 00 00 20 00 00 00 00 00 80 0a 11 01 00 00 00 00 00 00 00 00 00 00 SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 16 00 00 00 00 20 00 00 00 00 00 80 0a 11 01 00 00 00 00 00 00 00 00 00 00 HDIO_DRIVE_CMD(identify) failed: Input/output error | |
| Sep 25, 2020 at 20:16 | comment | added | DustWolf | lshw returns all disks. You can filter the output conveniently using jq, like this: lshw -C disk -json | jq 'select(.logicalname="/dev/sda")'. | |
| May 28, 2019 at 15:09 | comment | added | s.co.tt | Use hdparm -I /dev/sd? | grep --before-context=4 'Serial\ Number' to correlate the serial number with the device. It looks like the original question requests that result. | |
| S Jul 26, 2017 at 11:48 | history | suggested | CommunityBot | CC BY-SA 3.0 | also: apt-get install hdparm |
| Jul 26, 2017 at 11:20 | review | Suggested edits | |||
| S Jul 26, 2017 at 11:48 | |||||
| Dec 13, 2016 at 10:07 | comment | added | EthernetCable | I had to install the (apt-ly named) hdparm package on ARM (Raspbian on Raspberry Pi). | |
| Mar 30, 2016 at 16:40 | comment | added | niieani | Does not work if your hard disk has died completely and you're looking for the serial number of the faulty unit. Use @Johann's method instead. | |
| Jan 20, 2016 at 13:46 | comment | added | Loopo | if you take out the 'grep' part, you will get the full info as in hdparm -I /dev/sd? | |
| Mar 27, 2014 at 13:59 | history | edited | Robert Jonczy | CC BY-SA 3.0 | added 266 characters in body |
| Mar 27, 2014 at 12:49 | comment | added | Raja G | Thanks for the answer I have tested it. But its not giving the dev/sdXX . Please try to fix it. unless its good | |
| Mar 27, 2014 at 12:13 | review | Low quality posts | |||
| Mar 27, 2014 at 12:22 | |||||
| Mar 27, 2014 at 11:58 | history | answered | Robert Jonczy | CC BY-SA 3.0 |