Re: SATA hdd refuses to reallocate a sector?
From: Mark Lord
Date: Sun Jun 23 2013 - 18:35:52 EST
On 13-06-23 05:51 PM, Pavel Machek wrote:
> On Sun 2013-06-23 17:27:52, Mark Lord wrote:
>
>> For all existing drives out there, that's a 512 byte unit.
>
> I guessed so. (It would be good to actually document it, as well as
> documenting exactly why it is dangerous. Is it okay to send patches?)
Absolutely. Please, even!
> Well, I definitely have more than one bad sector, but I did try to
> read exactly the same sector and it failed. See below.
..
read failed.
write works.
read failed.
write works.
read works.
dd failed.
read works.
read works.
read failed.
Odd. The drive must be furiously reshuffling sectors or something,
or more likely pushing a piece of dirt around scuffing up more bits.
hdparm generally talks directly to a drive, not through the block
or filesystem layers. So the block, filesystem, and page-cache stuff
don't know anything about --read-sector and --write-sector.
Cheers
--
Mark Lord
Real-Time Remedies Inc.
mlord@xxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/