Skip site navigation (1)Skip section navigation (2)
Date:      12 Nov 2003 09:08:29 -0500
From:      Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>
To:        Jim Hatfield <subscriber@insignia.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Any way to lock down disk errors?
Message-ID:  <44d6bxfzmq.fsf@be-well.ilk.org>
In-Reply-To: <3le1rv85dgvlb689e76shkqabf5bn4ecok@4ax.com>
References:  <3le1rv85dgvlb689e76shkqabf5bn4ecok@4ax.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jim Hatfield <subscriber@insignia.com> writes:

> Strictly speaking OT but the machine is running FreeBSD.
> 
> While copying a file I got I/O errors. The console shows:
> 
> >ad0: hard error cmd=read fsbn 31891359 of 31891359-31891486 status=59 error=40
> >ad0: hard error cmd=read fsbn 31891231 of 31891231-31891486 status=59 error=40
> 
> Given that the disk is just under three months old, is it worth doing
> anything other than getting it replaced? I have no other disk big
> enough to old the data on it so unless the supplier sends me a
> replacement ahead of me returning the faulty one it will be a pain.
> 
> I have enough space to empty the partition with the error in, but I
> couldn't find anything in newfs or fsck which would let me map out
> selected blocks or to do a full write test of each block and map out
> bad ones. Is there such a beast?

Unfortunately, this doesn't really do any good any more.  Disks will
do this internally before even reporting errors back to you, so if
you're getting a lot of problems, then it's possible (but rare) that a
manufacturer's maintenance tool will straighten out the trouble, but
even then you'd need to backup everything off of it first...

If you want to try badsect(8), you can, but it isn't for the
faint-hearted.  



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