On Tue, 7 Jan 2003, Jan Grant wrote:

> On Mon, 23 Dec 2002, Goedeke Michels wrote:
> > Hello,
> >
> > First of all, if this is the wrong group, please redirect me to a more
> > appropiate place.
> >
> > I am trying to recover some files I have accidentally deleted. However,
> > ffsrecov continuously complains about a corrupt super block and misssing
> > magic. The filesystems are ok, however (as long as you trust fsck) and
> > mount without problems.
> > I've also come across undelete(2), but since I have no clue about C, I
> > did not get very far with this (just put a main() { ... } around the
> > example. Compiled, but did not do anything).
> > I am running 4.7 stable (~week old) with soft-updates enabled
> > filesystems on an intel box.
> >
> > Most info I found on the web said "no chance", but have been quite old
> > and the appearance of an undelete function raised some hope.
> >
> > Is there any way of getting those files back ? There has been no write
> > activity on that partition since and now its mounted read-only. I do
> > have the inode of the parent folder (which contents I am missing) and
> > the names of the top level files and directories.
> >
> > Thanks for any help
> You might try using the fsdb command "ln" to create a new link to the
> missing inode; then copy the file contents to a separate filesystem
> before fixing everything with fsck.
> Note that if disk blocks from the original file have been reallocated
> then you're close to being out of luck.

Incidentally this trick works a hell of a lot better if some process
still has the deleted file open.

jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/
Goedel would be proud - I'm both inconsistent _and_ incomplete.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to