From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,79cfae51c4f9231 X-Google-Attributes: gidfa528,public From: Ric Werme Subject: Re: Wiped UFS home directory, any hope? Date: 2000/10/23 Message-ID: #1/1 X-Deja-AN: 685035930 References: X-Complaints-To: abuse@mediaone.net X-Trace: typhoon.ne.mediaone.net 972345195 24.91.12.32 (Mon, 23 Oct 2000 19:53:15 EDT) Organization: Road Runner NNTP-Posting-Date: Mon, 23 Oct 2000 19:53:15 EDT Newsgroups: comp.unix.tru64 Craig Markwardt writes: >This was a directory on a UFS file system. After I discovered the >problem I immediately unmounted it, and made a "dd" copy of the file >system, hopeful that there are recovery tools. That was the very best thing you could do, but I imagine you already knew that. :-) >While there seem to be some pretty nice "undelete" tools for Linux >ext2, I couldn't find anything for UFS in a (fairly extensive) search. >Is there any hope? I found "recover" but that's far too piecemail >(block-by-block!) for a multi-hundred-megabyte home directory. Back in my PDP-10 days I could help you, but now, I don't have any good pointers. UFS is pretty close to UFS from BSD, etc. You might be able juryrig a hack to figure out where inodes live, find all the ones marked for that uid and have a zero link count, then set the link count to 1. Running fsck will complain mightily, but it ought to get everything into a lost+found directory. Big shortcoming - I think it will lose all the file names. It might not be too hard to find directories and recover filename to inode mapping, I forget exactly what happens to directory entries as they get deleted. It may not be good, unless files are deleted in the opposite order they were entered into the directory. Good luck, I hope someone has better suggestions. -- Ric Werme | werme@nospam.mediaone.net http://people.ne.mediaone.net/werme | ^^^^^^^ delete Vote www.harrybrowne.com for President!