Results 1 to 1 of 1
Hi!
We are testing a utility which reads from a hard drive by issuing direct ATA commands. One of the tests involves reading bad sectors. After the attempt to read ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 12-03-2007 #1Just Joined!
- Join Date
- Nov 2007
- Posts
- 7
direct ATA access locks after reading a bad sector
Hi!
We are testing a utility which reads from a hard drive by issuing direct ATA commands. One of the tests involves reading bad sectors. After the attempt to read a bad sector, Linux seems to disable direct ATA access and further, any utilities which try to access hard drive directly, fail. For example:
hparm -I /dev/hda returns
HDIO_DRIVE_CMD(identify) failed: Input/output error
and dmesg log is:
Direct ATA access can only be regained after disk is reset with hdparm -w commandCode:hda: drive not ready for command hda: status error: status=0x59 { DriveReady SeekComplete DataRequest Error } hda: status error: error=0x40 { UncorrectableError }, LBAsect=550, high=0, low=550, sector=0
Is it possible to set up the kernel not to disable direct ATA access after reading a bad sector? Or may problem is not in the kernel?
Linux kernel is 2.6.22
--
Alexei


Reply With Quote
