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: Craig Markwardt Subject: Re: Wiped UFS home directory, any hope? Date: 2000/10/25 Message-ID: #1/1 X-Deja-AN: 685868442 References: X-Complaints-To: abuse@doit.wisc.edu X-Trace: news.doit.wisc.edu 972512496 23082 128.104.220.128 (25 Oct 2000 22:21:36 GMT) Organization: U. Wisc. Madison Physics -- Compact Objects Reply-To: craigmnet@cow.physics.wisc.edu NNTP-Posting-Date: 25 Oct 2000 22:21:36 GMT Newsgroups: comp.unix.tru64 Ric Werme writes: > 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. After conferring with Alan Rollow, and examining a deleted inode myself, it seems that the block addresses are zeroed out when the file is deleted. Thus, it won't help to reset the link count since there are no links to restore. Thanks for your help! Craig -- -------------------------------------------------------------------------- Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response --------------------------------------------------------------------------