All of lore.kernel.org
 help / color / mirror / Atom feed
From: Craig Shelley <craig@microtron.org.uk>
To: reiserfs-list@namesys.com
Subject: Re: lost partition table
Date: Sun, 26 Mar 2006 12:07:32 +0100	[thread overview]
Message-ID: <1143371252.9216.20.camel@teratron.lan.etheus.net> (raw)
In-Reply-To: <20060324135549.GB13979@raven.londonmet.ac.uk>

[-- Attachment #1: Type: text/plain, Size: 1447 bytes --]

On Fri, 2006-03-24 at 13:55 +0000, ild0012@raven.londonmet.ac.uk wrote:
> Hello folks.
> 
> i am using slackware linux(2.6.14 with reiser4 patch) on x86_64 and was trying to install free_bsd on a separate partition.
> well, during that instalation , accedentualy i have pressed a wrong key , so my partition table is owerriten by something else , but i realized this streight away and stopped the instalation process .


I once did this by running fsck.reiser4 on the whole disk, instead of on
the first partition.

luckily, I wrote down what was in /proc/partitions, and reconstructed
the partition table with help from hexedit to check the exact alignment
of the partitions.

As for the first partition on the disk, I had let fsck.reiser4 run to
completion, fixing thousands of errors, with the various rebuild options
turned on. Obviously this had caused a lot of damage to the file system,
with it being off-set from the beginning of the disk. Amazingly
re-running fsck.reiser4 on the actual partition seemed to do the trick,
leaving only a few libraries corrupt.

Quick tip: I found that about 0x11044 bytes in from the beginning of a
Reiser4 partition, you find the string "ReIsEr40FoRmAt". I am sure other
file systems have similar magic strings which can be searched for using
hexedit, enabling the partition table to be fixed.


-- 
Craig Shelley
EMail: craig@microtron.org.uk
Jabber: shell@jabber.earth.li

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      parent reply	other threads:[~2006-03-26 11:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1142439481.27675.ezmlm@namesys.com>
2006-03-24 13:55 ` lost partition table ild0012
2006-03-24 14:45   ` Vladimir V. Saveliev
2006-03-24 15:05   ` Christian Iversen
2006-03-24 15:28   ` Andreas Schäfer
2006-03-24 15:59   ` Toby Thain
2006-03-26 11:07   ` Craig Shelley [this message]

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=1143371252.9216.20.camel@teratron.lan.etheus.net \
    --to=craig@microtron.org.uk \
    --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.