Linux - How to flash the HDD usage LED?

drizzt81

[H]F Junkie
Joined
Jan 21, 2004
Messages
12,361
Hi guys,

assuming that a HDD in my Linux software raid array goes bad (R-5), I am thinking that the easiest way to figure out which drive is /dev/sdx would be to flash the usage LED. Does anyone know how to do this?
 
I'm not at home to test it, but I would think simply reading the drive info would flash the led. Try hitting it with hdparm -I /dev/sdx and see what happens.
 
Good idea, but that did not work. I guess I could try something like
Code:
dd if=/dev/sdX of=/dev/null

yep that works
 
Wonder if that would work on a failed drive? I am guessing that is one reason you'd want to flash the activity LED?
 
It may be easier to record the serial number of the drive and then use the process of elimination.
 
Back
Top