Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Craig Markwardt <craigmnet@cow.physics.wisc.edu>
Subject: Re: Wiped UFS home directory, any hope?
Date: 2000/10/25	[thread overview]
Message-ID: <onhf608sun.fsf@cow.physics.wisc.edu> (raw)
In-Reply-To: Lb4J5.47757$pu4.5597569@typhoon.ne.mediaone.net


Ric Werme <werme@nospam.mediaone.net> writes:
> Craig Markwardt <craigmnet@cow.physics.wisc.edu> 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
--------------------------------------------------------------------------



      reply	other threads:[~2000-10-25  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-23  4:00 Wiped UFS home directory, any hope? Craig Markwardt
2000-10-23  4:00 ` Ric Werme
2000-10-25  4:00   ` Craig Markwardt [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox