[Discuss] unreadable sector

Matthew Gillen me at mattgillen.net
Sat Oct 12 09:00:20 EDT 2013


On 10/12/2013 8:06 AM, Jerry Feldman wrote:
> I've brought this up before. One of the drives in my RAID reports an
> unreadable sector. I'm not worried about thisas this otherwise seems to
> be a serviceable driveand I take frequent backups. One question I might
> have is would I be better served by removing this from the RAID pair,
> and run a full destructive bad block scan 'badblocks -wsv /dev/sda | tee
> <some log file>'
> The bad blocks scan should (1) reallocate the bad blocks and also give
> me more detailed information on whether to replace the drive or not.

Might be quicker to take the drive out of your RAID, attempt to write
just to that block that you know is bad (with 'dd if=/dev/zero ...'),
and then put the drive back into the RAID.  This should help you figure
out how to write to the correct place:
 http://smartmontools.sourceforge.net/badblockhowto.html

HTH,
Matt



More information about the Discuss mailing list