Mailinglist Archive: opensuse (2212 mails)

< Previous Next >
Re: [opensuse] Bad Sector remapping?
  • From: Erwin Lam <erwin.lam@xxxxxxx>
  • Date: Fri, 28 Sep 2007 08:55:45 +0200
  • Message-id: <200709280855.45744.erwin.lam@xxxxxxx>
On Friday 28 September 2007, Greg Freemyer wrote:
> All,
> 
> Having an issue I thought I knew how to address, but it is not
> working.  OpenSUSE 10.2 is booting into a maintenance mode due to a
> bad sector read on the hard disk.  I'm not worried about the data on
> the drive and so far it is just one bad sector.
> 
> So I would like to cause the drive to map the sector to one of its
> spares, then do a fsck on the partiion, then some kind of installation
> verification step, or if truly necessary I can reinstall.
> 
> I'm stuck on the first step.  I thought writing data to the sector
> would cause the drive to remap it, but that is not happening.
> 
> dd if=/dev/sda of=/dev/null skip=312518818 count=1
> 
> Is very slow to return and triggers the bad sector error messages.
> 
> dd if=/dev/zero of=/dev/sda skip=312518818 count=1
> 
> returns very fast and and reports success, but redoing the above read
> again still returns errors.
> 
> Is there a different way to get that sector remapped?

Maybe you will find the link below useful.

http://smartmontools.sourceforge.net/BadBlockHowTo.txt

Regards,
Erwin Lam

-- 
Erwin Lam (erwin.lam@xxxxxxx)
-- 
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
References