Subject: Re: any way to restore a "broken" directory?
To: henry nelson <netb@irm.nara.kindai.ac.jp>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 10/20/2003 23:48:35
On Mon, Oct 20, 2003 at 10:25:41AM +0900, henry nelson wrote:
> Logged in this morning and found my mail in a shambles.  Seems that the
> directory where I had procmail delivering my mail to was somehow "broken."
> (All worked fine Saturday evening.)
> 
> Can't do anything in the directory like "ls" -- just a "click-click-click"
> twice as if it's attempting a seek, and then a message "Input/output error."
> If there's no sound, then no message.
> 	% ls .mail
> 	% ls .mail/spam
> 	ls: .mail/spam: Input/output error
> 	% cd .mail
> 	% ls
> 	ls: .: Input/output error
> 	% cd ..
> 	..: Input/output error.
> 	% cd
> 
> Time to replace the disk, but is there anything that can be done to salvage
> this one directory?  (All the other directories seem fine.)

I would try a dd conf=noerror,sync of that partition to a known good disk,
and the fsck to hopefully get the files in /lost+found

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--