Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 2003 12:03:59 +0000 (GMT)
From:      Jan Grant <Jan.Grant@bristol.ac.uk>
To:        Goedeke Michels <likedeeler@nebelschwaden.de>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: undelete or ffsrecover
Message-ID:  <Pine.GSO.4.44.0301071201320.28405-100000@mail.ilrt.bris.ac.uk>
In-Reply-To: <3E0764E2.5000702@nebelschwaden.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

jan

-- 
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/
Bolstered by my success with vi, I proceeded to learn C with 'learn c'.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.44.0301071201320.28405-100000>