All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Need help recovering lost partitions
@ 2004-01-28 22:38 dan
  2004-01-28 23:22 ` Matt Stegman
  2004-01-28 23:35 ` Carl-Daniel Hailfinger
  0 siblings, 2 replies; 6+ messages in thread
From: dan @ 2004-01-28 22:38 UTC (permalink / raw)
  To: matts; +Cc: reiserfs-list

On Wed, 28 Jan 2004 16:10:48 -0600 (CST), Matt Stegman
wrote:

> 
> You know, I think that unless you remember the
original
> partition
> boundaries, it may be too late now.  I'm sure the
> reason your files
> don't have the right data is that all your data block
> numbers are
> scrambled.
> 
> See, when you created one big partition, that means
> that, for example, the
> data block #45 from /dev/hda2 is now block #23456 in
> your all-disk
> /dev/hda1.  Another data block #45 from /dev/hda3
could
> be now block
> #67890 (or whatever; I'm just throwing out numbers to
> make a point).
> Fsck wouldn't know how to translate block numbers from
> old partitions to
> new ones.
> 
> So you have some file from /dev/hda2 that has data in
> block #45.  Fsck
> picks this up, and recreates the tree, except that
> block #45 is not the
> same block that inode meant.
> 
> If you haven't overwritten the superblocks (or
whatever
> you call the first
> block in the filesystem, the one that contains the
> magic that ideally


So how can I scan the partition for the old
superblocks?  gpart and parted weren't picking them up,
but I know they were there.  And the 6GB of data it
found is much less then the size of the partition
(50GB), which makes me think that some data might still
be there (i.e. only 100 * (6/50) % of the data could
have been overwritten).

-Dan


Dan Anderson
Manager
nGen, LLC.
Phone: (914) 466-8526
Fax: (775)562-2622
Email: dan@ngenllc.com

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Need help recovering lost partitions
@ 2004-01-28 20:35 dan
  2004-01-28 22:10 ` Matt Stegman
  2004-01-28 22:36 ` Phil Frost
  0 siblings, 2 replies; 6+ messages in thread
From: dan @ 2004-01-28 20:35 UTC (permalink / raw)
  To: reiserfs-list

I have a hard drive which had about 5 ReiserFs 3.6
logical partitions on it until last night.  After
booting up my computer (running Mandrake 9.2) I got
some error messages saying that it needed to fsck the
drive.  It went in a loop for quite a bit of time --
fscking all the partitions and then rebooting, finding
errors again, and rebooting.  I figured out how to get
in manually, and tried backing up my data.  In the
process though my partition table was lost.  (I tried
deleting an ext2 partition I didn't need using fdisk
and when I wrote teh new partition table to disk the
partition was empty).

At some point I decided that enough is enough and
installed Mandrake on another hard drive, and tried
finding partitions using parted and gpart.  Neither
utility managed to detect my partitions.

So I took a big jump.  I put one giant partition on the
hard drive (ReiserFS) and ran reiserfsck --rebuild-tree
-scan-whole-partition.

I was overjoyed to find that the files were there --
6,000+ files and numberous directoies were found. 
However, every file I opened was either filled with
nulls or gobblygook.  

I know the data is on the drive.  However reiserfsck
found them proves this.  However, I figured that
(perhaps) the --rebuild-tree is reading all files from
the start of the giant partition.

How can I go about recovering my data?

Many many thanks in advance,

-Dan


Dan Anderson
Manager
nGen, LLC.
Phone: (914) 466-8526
Fax: (775)562-2622
Email: dan@ngenllc.com

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

end of thread, other threads:[~2004-01-28 23:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-28 22:38 Need help recovering lost partitions dan
2004-01-28 23:22 ` Matt Stegman
2004-01-28 23:35 ` Carl-Daniel Hailfinger
  -- strict thread matches above, loose matches on Subject: below --
2004-01-28 20:35 dan
2004-01-28 22:10 ` Matt Stegman
2004-01-28 22:36 ` Phil Frost

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.