From: "Danny Norging" <norging@gmx.de>
To: reiserfs-list@namesys.com
Subject: Re: 2.4.21 -> 2.4.25 cryptoloop mess
Date: Sun, 9 Jan 2005 11:08:54 +0100 (MET) [thread overview]
Message-ID: <8944.1105265334@www26.gmx.net> (raw)
In-Reply-To: 20050108144309.GA27949@favonius
Hi,
> Danny Norging wrote (ao):
> > since Vitaly seems not to take notice of my mail and I cant afford
> > another money-order (being just a student), I wonder if somebody else
> > out there has *any* hint on what to try next. Please have a look at
> > this
>
> First of all I would like to tell you and others (on the list or reading
> the archive/google) that you should always make a raw copy of the image
> you want to fsck. Do this with dd for example. Then perform all the
> actions on the copy so you can have a fresh try again later with
> different (or newer) tools and options.
>
> >From your mail it seems you only made a copy after you already fsck'ed
> (pun intended) the original image. Now this is your second mistake. The
> first one: you didn't have (or seem to have had) backups.
>
Sad thing is when you even know all this, and it still happens to you...
just didnt get to make a big backup (no dvd-burner at the time), it was
planed, though :(
>
> > Date: Mon, 13 Dec 2004 08:13:08 +0100 (MET)
> > From: "Danny Norging" <norging@gmx.de>
> >
> > needed to buy a bigger hd so this took some time, but now i am done
> > with your instructions (*thanks a lot for them, i have hope*). Still a
> > lot of work to do, i guess... so this is what i have done:
> >
> > # losetup -e aes /dev/loop0 /dev/hdc1
> > # dd if=/dev/loop0 of=hdc1decrypted.dump
> > # losetup /dev/loop1 hdc1decrypted.dump
> > # reiserfsck --rebuild-tree -S /dev/loop1 -l reiserfsck.log
> >
> > where reiserfsck.log shows the following:
> > # cat reiserfsck.log
> > ####### Pass 0 #######
> > 28 directory entries were hashed with "r5" hash.
> > ####### Pass 1 #######
> > ####### Pass 2 #######
> > ####### Pass 3 #########
> > vpf-10680: The directory [2 3] has the wrong block count in the StatData
> (2)
> > - corrected to (1)
> > vpf-10650: The directory [2 3] has the wrong size in the StatData (720)
> -
> > corrected to (48)
> > ####### Pass 3a (lost+found pass) #########
> > #
>
> Did you mount the fs afterwards? Did you find any new content? What
> reiserfscs version did you use?
>
No new content in the lost+found dir after the reiserfsck, which was version
3.6.17. I am just running a reiserfsck version 3.6.19 and will report on
those results.
>
> > > > From: "Danny Norging" <norging@gmx.de>
> > > > To: support@namesys.com
>
> > > > All worked without any problems until a power failure somehow
> > > > corrupted the fs :-( Unfortunately, I did a complete system update
> > > > to a 2.4.25 kernel trying to repair the reiserfs from this new
> > > > system, and as there seems to be a incompatibilty between the
> > > > cryptoloop versions, this is where all really got mixed up :-( I
> > > > cant remember all the steps i took using reiserfsck (at least once
> > > > with the --rebuild-tree option) with the 2.4.25 kernel and later
> > > > with a downgraded 2.4.21 kernel maybe on a wrongly decrypted fs...
> > >
> > > if you run reiserfsck --rebuild-tree on the device with the wrong
> > > decryption
> > > you probably erase all the data on it.
>
> Isn't it more likely that reiserfsck in that case doesn't recognize the
> filesystem at all and just exits with an error? (I'm just a user
> though).
Well, it was running for about a day, so it did something.
>
> > > > End of the story is that i am now able to losetup/decrypt the
> > > > partition correctly (using 2.4.21 kernel again), as #hexdump -C
> > > > /dev/loop0 shows me lots of file-contents,
> > >
> > > do you mean that you see a lot of _correct_ file contents?
> > > of files that are currently not reachable on the mounted fs?
> >
> > Exactly (this is why i still have hope ;-)
>
>
> > > > A reiserfsck on the crypoloop-device gives no errors:
> > >
> > > ok, the root directory was lost and everething what was found on the
> > > fs was connected to the lost+found.
>
>
> > > > As I am afraid of doing any more harm to the fs (not sure if this
> > > > is even possible ;-) I would like to know if its possible to
> > > > recover the files. If you would like to have more debugging
> > > > output, I can send you that, or even give you a ssh-connection to
> > > > the machine.
> > >
> > > if you do not have a raw backup of the original device before
> > > rebuilding the tree, let's do the following:
> > > * make it, the raw backup, with the dd. probably even the copy of
> > > already decrypted device to make it all simplier and faster;
> > > * reiserfsck --rebuild-tree -S the_copy -l logfile
> > >
> > > if this will not recover files which content you see with hexdump,
> > > we will try to get them manually later.
>
> Maybe newest reiserfsck can help you out.
> --
> Humilis IT Services and Solutions
> http://www.humilis.net
>
Thanks
Danny
--
+++ GMX - die erste Adresse für Mail, Message, More +++
1 GB Mailbox bereits in GMX FreeMail http://www.gmx.net/de/go/mail
next prev parent reply other threads:[~2005-01-09 10:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <30550.1102921988@www5.gmx.net>
2005-01-08 14:06 ` 2.4.21 -> 2.4.25 cryptoloop mess Danny Norging
2005-01-08 14:43 ` Sander
2005-01-09 10:08 ` Danny Norging [this message]
2005-01-09 11:44 ` Danny Norging
2005-01-09 12:57 ` Sander
2005-01-10 15:23 ` Vitaly Fertman
2005-01-09 12:42 ` Sander
2005-01-08 20:59 ` Hans Reiser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8944.1105265334@www26.gmx.net \
--to=norging@gmx.de \
--cc=reiserfs-list@namesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.