Date: Sun, 26 May 2002 12:51:20 +0200 From: Axel Scheepers <axel@axel.truedestiny.net> To: "Philip J. Koenig" <pjklist@ekahuna.com> Cc: questions@FreeBSD.ORG, Axel Scheepers <axel@axel.truedestiny.net> Subject: Re: Disk bad sector question Message-ID: <20020526125120.B43810@mars.thuis> In-Reply-To: <20020519122229533.AAA405@empty1.ekahuna.com@pc02.ekahuna.com>; from pjklist@ekahuna.com on Sun, May 19, 2002 at 05:22:30AM -0700 References: <20020519030538086.AAA385@empty1.ekahuna.com@pc02.ekahuna.com>; <20020519125727.B64761@mars.thuis> <20020519122229533.AAA405@empty1.ekahuna.com@pc02.ekahuna.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, May 19, 2002 at 05:22:30AM -0700, Philip J. Koenig wrote: > Yep, I already used camcontrol to view the original and grown defect > lists after seeing these errors. > > And I know I can try copying data to the sectors in question and > force them to be remapped, etc. But I want to take a look at the > affected files first and recover as much as I can from them, before I > do that. I didn't see how camcontrol would help in that respect. > > I guess I'd be rather surprised if there is no way to figure out > which sectors are assigned to which inodes or files.. > > > > -- > Philip J. Koenig pjklist@ekahuna.com > Electric Kahuna Systems -- Computers & Communications for the New Millenium My bad, I read your post to quickly, sorry. You might find the information in /usr/src/sys/ufs/ufs interesting, mostly dinode.h I think. That contains the layout of an inode as it's present on an ufs filesystem and contains an array of the disk blocks it's using. Then you could try to read those sectors with dd, I hear there's a modified version which handles i/o errors a bit better but retrieving it will be a hard job. Gr, -- Axel Scheepers UNIX System Administrator email: axel@axel.truedestiny.net a.scheepers@iae.nl http://axel.truedestiny.net/~axel ------------------------------------------ Good advice is something a man gives when he is too old to set a bad example. -- La Rouchefoucauld ------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020526125120.B43810>