Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Wiped UFS home directory, any hope?
@ 2000-10-23  4:00 Craig Markwardt
  2000-10-23  4:00 ` Ric Werme
  0 siblings, 1 reply; 3+ messages in thread
From: Craig Markwardt @ 2000-10-23  4:00 UTC (permalink / raw)



I have a poor user who wiped their entire home directory.  I know,
"ouch."  Some lessons are learned the very hard way.

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.

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.

Yes, you may be asking, was there a backup.  The short answer is no.
This is a small installation, a few people, and I have since graduated
and moved over 1500 miles away.  No physical access means no backups.
My users were aware of the risks, and now one of them is paying the
price.  Any help or pointers would be appreciated however.

Thanks,
Craig

-- 
--------------------------------------------------------------------------
Craig B. Markwardt, Ph.D.         EMAIL:    craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
--------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Wiped UFS home directory, any hope?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Ric Werme @ 2000-10-23  4:00 UTC (permalink / raw)


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!



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Wiped UFS home directory, any hope?
  2000-10-23  4:00 ` Ric Werme
@ 2000-10-25  4:00   ` Craig Markwardt
  0 siblings, 0 replies; 3+ messages in thread
From: Craig Markwardt @ 2000-10-25  4:00 UTC (permalink / raw)



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
--------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-10-25  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox