I have a 1TB hard drive and power management disk enclosure connected to a linux box(2.
6.19) via USB. The enclosure can turn off by itself if no access to the drive for 5 min.
But data access to powered off enclosure can be failed and the linux box senses I/O error like this (dmesg);
Code:
sd 2:0:0:0: Device not ready: <6>: Current: sense key=0x2
ASC=0x4 ASCQ=0x2
end_request: I/O error, dev sda, sector 0
Buffer I/O error on device sda, logical block 0
Buffer I/O error on device sda, logical block 1
Buffer I/O error on device sda, logical block 2
Buffer I/O error on device sda, logical block 3
And then if the disk enclosure wakes up properly I can access data on the drive.
Though sometimes data access is delayed or failed continuously.
Is there any way to wake up the enclosure without I/O error?
Or is there any way to handle the enclosure?
I found topics about hdparm and sdparm command to spin down hard drive, it might be helpful, but I could not find good way to handle it with the commands.
Thanks in advance.
nac.zero.