External disk problem.

Ed Greshko Ed.Greshko at greshko.com
Mon Jul 30 10:04:29 UTC 2012


On 07/30/2012 05:59 PM, Bryn M. Reeves wrote:
> On Mon, 2012-07-30 at 17:47 +0800, Ed Greshko wrote:
>> On 07/30/2012 04:44 PM, Bryn M. Reeves wrote:
>>> What state is the device in following a resume?
>>> (/sys/block/sd*/device/state).
>> I am not so sure that is a "good" indication of anything.  I have 2 drives on my system /dev/sda and /dev/sdb.
> It's a fine indication of the state the kernel thinks the device is in
> (that's what it's there for). If that file indicates the device is
> running but in fact you can't issue I/O to it you'd suspect a problem in
> the driver. If it's blocked or offlined you can look into what caused
> that to happen.
>
>> [egreshko at meimei block]$ cat /sys/block/sdd/device/state
>> running
> Are they working? What are you trying to prove? For an active, working
> device this is the normal state.
>
>

There is no disk plugged into the SATA port.   As I said....  I only have 2 sda and sdb.   There is no sdD.
So, what is "running"? 

-- 
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -- Rick Cook, The Wizardry Compiled


More information about the users mailing list