How to get the serial number of a badly failed disk

Posted on Thu 08 December 2011 in Sysadmin • Tagged with bash, smartctl

One of my server disks has failed - so badly that smartctl cannot even read basic disk information from it! But to replace the disk I need its serial number, because I have been clever enough to print the serial number of each disk onto its bay door. Ironic, huh?

So …


Continue reading

A convoluted way to list controllers per block device in Linux

Posted on Thu 08 December 2011 in Sysadmin • Tagged with bash, controller, device

One of my SATA drives has failed and needs to be replaced. I have tried to find out if I can hot swap it instead of having to turn off the computer (which isn’t a big deal, but it’s nice if I don’t have to), and the …


Continue reading