From: Ric Werme <werme@nospam.mediaone.net>
Subject: Re: Wiped UFS home directory, any hope?
Date: 2000/10/23 [thread overview]
Message-ID: <Lb4J5.47757$pu4.5597569@typhoon.ne.mediaone.net> (raw)
In-Reply-To: on7l6ze3c4.fsf@cow.physics.wisc.edu
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.
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!
next prev parent reply other threads:[~2000-10-23 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 [this message]
2000-10-25 4:00 ` Craig Markwardt
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