Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Mar 2002 13:34:58 -0500 (EST)
From:      <joeo@cracktown.com>
To:        Randy Bush <randy@psg.com>
Cc:        <freebsd-hardware@FreeBSD.ORG>
Subject:   Re: how to map out ide disk errors
Message-ID:  <Pine.LNX.4.30.0203101321510.488-100000@asmodean-ssn.nks.net>
In-Reply-To: <E16k6vM-0003Nj-00@rip.psg.com>

next in thread | previous in thread | raw e-mail | index | archive | help

I don't believe bad sector remapping (wih bad144) is supported anymore
(with the newer ata framework).

Newer ide drives (less that 3-4 years old) should have "perfect media"
capabilities by default, where the drive will remap bad sectors on its
own.  The way you trigger that, if the drive is capable of doing it, is to
use "dd" to read and write from the raw partiotion.  I remember seeing
commits to /etc/periodic/weekly in current that have a dd read the raw
partitions in order to force the drive to preen itself.

And yes, it looks like you'll need to backup that partition and either end
the partion around that bad area or see if you can trigger the bad sector
remapping.

And before anyone rants about bad144 disapearing remember that you can buy
20 gig hard drives retail for about $100 US and most of the drive
manufacturers let you RMA drives for a very long time after date of
purchase.

On Sun, 10 Mar 2002, Randy Bush wrote:

> how do i map out two bad ide tracks, or parts thereof, in bsd?
>
> ad0s3g: hard error reading fsbn 30938923 of 6749312-6749567 (ad0s3 bn 30938923; cn 1925 tn 219 sn 1)ad0: DMA problem fallback to PIO mode
> ad0: DMA problem fallback to PIO mode
> ad0s3g: hard error reading fsbn 30939163 of 6749312-6749567 (ad0s3 bn 30939163; cn 1925 tn 222 sn 52) status=59 error=01
> ad0: DMA problem fallback to PIO mode
> ad0s3g: hard error reading fsbn 30939179 of 6749328-6749567 (ad0s3 bn 30939179; cn 1925 tn 223 sn 5) status=59 error=01
> ad0s3g: hard error reading fsbn 30939195 of 6749344-6749567 (ad0s3 bn 30939195; cn 1925 tn 223 sn 21) status=59 error=01
> ad0s3g: hard error reading fsbn 30939211 of 6749360-6749567 (ad0s3 bn 30939211; cn 1925 tn 223 sn 37) status=59 error=01
> ad0s3g: hard error reading fsbn 30939227 of 6749376-6749567 (ad0s3 bn 30939227; cn 1925 tn 223 sn 53) status=59 error=01
> ad0s3g: hard error reading fsbn 30939243 of 6749392-6749567 (ad0s3 bn 30939243; cn 1925 tn 224 sn 6) status=59 error=01
> ad0s3g: hard error reading fsbn 30939259 of 6749408-6749567 (ad0s3 bn 30939259; cn 1925 tn 224 sn 22) status=59 error=01
> ad0s3g: hard error reading fsbn 30939275 of 6749424-6749567 (ad0s3 bn 30939275; cn 1925 tn 224 sn 38) status=59 error=01
> ad0s3g: hard error reading fsbn 30939291 of 6749440-6749567 (ad0s3 bn 30939291; cn 1925 tn 224 sn 54) status=59 error=01
> ad0s3g: hard error reading fsbn 30939307 of 6749456-6749567 (ad0s3 bn 30939307; cn 1925 tn 225 sn 7) status=59 error=01
> ad0s3g: hard error reading fsbn 30939323 of 6749472-6749567 (ad0s3 bn 30939323; cn 1925 tn 225 sn 23) status=59 error=01
> ad0s3g: hard error reading fsbn 30939339 of 6749488-6749567 (ad0s3 bn 30939339; cn 1925 tn 225 sn 39) status=59 error=01
> ad0s3g: hard error reading fsbn 30939355 of 6749504-6749567 (ad0s3 bn 30939355; cn 1925 tn 225 sn 55) status=59 error=01
> ad0s3g: hard error reading fsbn 30939371 of 6749520-6749567 (ad0s3 bn 30939371; cn 1925 tn 226 sn 8) status=59 error=01
> ad0s3g: hard error reading fsbn 30939387 of 6749536-6749567 (ad0s3 bn 30939387; cn 1925 tn 226 sn 24) status=59 error=01
> ad0s3g: hard error reading fsbn 30939403 of 6749552-6749567 (ad0s3 bn 30939403; cn 1925 tn 226 sn 40) status=59 error=01
> ad0s3g: hard error reading fsbn 30939403 of 6749552-6749567 (ad0s3 bn 30939403; cn 1925 tn 226 sn 40) status=59 error=01
>
> or must i dump, format the drive, and then restore?
>
> randy
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hardware" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hardware" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.30.0203101321510.488-100000>