Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Feb 2007 19:17:09 -0400
From:      "Marc G. Fournier" <scrappy@freebsd.org>
To:        John Nielsen <lists@jnielsen.net>, freebsd-questions@freebsd.org
Cc:        "Marc G. Fournier" <scrappy@freebsd.org>, Dan Nelson <dnelson@allantgroup.com>
Subject:   Re: Bad sector on drive ...
Message-ID:  <1CEB5BF1B5111F6CAA3843A9@ganymede.hub.org>
In-Reply-To: <200702101105.36039.lists@jnielsen.net>
References:  <5D4377994F77F6A6C215D198@ganymede.hub.org> <20070210070020.GP37689@dan.emsphone.com> <0121884CDA5AC278CD6A7D52@ganymede.hub.org> <200702101105.36039.lists@jnielsen.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Didn't work, ended up newfs'ng the file system, since the data on the drive is 
recreatable, and seems to have worked fine ...

the error I was getting was when fsck'ng, so suspect that a file got written 
over top of the bad sector and was causng the problem ...

- --On Saturday, February 10, 2007 11:05:35 -0500 John Nielsen 
<lists@jnielsen.net> wrote:

> On Saturday 10 February 2007 09:47, Marc G. Fournier wrote:
>> --On Saturday, February 10, 2007 01:00:21 -0600 Dan Nelson
>>
>> <dnelson@allantgroup.com> wrote:
>> > In the last episode (Feb 10), Marc G. Fournier said:
>> >> Short of a reformat, any way of marking the following as bad? :(
>> >>
>> >> Feb 10 02:27:20 ganymede kernel: ad4: FAILURE - READ_DMA
>> >> status=51<READY,DSC,ERROR> error=40<UNCORRECTABLE> LBA=176887263 Feb
>> >> 10 02:27:25 ganymede kernel: ad4: TIMEOUT - READ_DMA retrying (1 retry
>> >>  left) LBA=176887324 Feb 10 02:27:30 ganymede kernel: ad4: TIMEOUT -
>> >> READ_DMA retrying (0 retries  left) LBA=176887324 Feb 10 02:27:35
>> >> ganymede kernel: ad4: FAILURE - READ_DMA timed out LBA=176887324
>> >
>> > Try writing to the block causing the error, using dd and the seek=
>> > option; if the write succeeds, you're done (and the drive will have
>> > either reused the block or reassigned it to a spare). 176887324 If it
>> > doesn't succeed, copy what you can off the drive and toss it, since all
>> > its spares are used up.
>> >
>> > I think LBA numbers map directly to seek= values assuming you keep
>> > bs=512 and access /dev/ad4 .  I'd try reading the bad block with dd to
>> > verify it's the right one before doing a write, though.
>>
>> 'k, how do you use dd to write to a specific sector?
>>
>> 	dd of=/dev/ad4 seek=176887324 bs=512 if=/dev/null
>
> dd of=/dev/ad4 seek=176887324 bs=512 count=1 if=/dev/zero
>
> JN
>



- ----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email . scrappy@hub.org                              MSN . scrappy@hub.org
Yahoo . yscrappy               Skype: hub.org        ICQ . 7615664
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFzlJ14QvfyHIvDvMRAicNAJ9Fvx3B7p8ibsne3lV+HSd6rnkLEwCgmKBz
IsS5cm2DUlwcC3fKbnyiT9c=
=G+Wn
-----END PGP SIGNATURE-----




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1CEB5BF1B5111F6CAA3843A9>