how to recover deleted partition?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi *,

a few days ago I added a new 120G disk to my older machine and
partitioned it with cfdisk.  But later on (after moving all data to
the new disk) I saw, that the partition-table wasn't really
consistent: 

,---- [ sfdisk-dump before repartitioning ]
| Disk /dev/hde: 14946 cylinders, 255 heads, 63 sectors/track
| Warning: The first partition looks like it was made
|   for C/H/S=*/225/63 (instead of 14946/255/63).
| For this listing I'll assume that geometry.
| Units = cylinders of 7257600 bytes, blocks of 1024 bytes, counting from 0
|    Device Boot Start     End   #cyls   #blocks   Id  System
| /dev/hde1   *      0+    165-    166-  1171768+  83  Linux
|                 end: (c,h,s) expected (165,74,63) found (145,224,63)
| /dev/hde2          0       -       0         0    0  Leer
| /dev/hde3          0       -       0         0    0  Leer
| /dev/hde4        200+  16939-  16740- 118639080    f  Win95 Erw. (LBA)
|                 start: (c,h,s) expected (200,136,1) found (177,1,1)
|                 end: (c,h,s) expected (1023,224,63) found (1023,225,63)
| /dev/hde5   *   1159+   1751-    593-  4199296+  8e  Linux LVM
                  ^^^^^
|                 start: (c,h,s) expected (1023,224,63) found (1023,15,63)
|                 end: (c,h,s) expected (1023,224,63) found (1023,216,62)
| /dev/hde6   *   1159+   2556-   1398-  9903064+  83  Linux
                  ^^^^
|                 start: (c,h,s) expected (1023,224,63) found (1023,15,63)
|                 end: (c,h,s) expected (1023,224,63) found (1023,238,62)
| /dev/hde7   *   2190+   3568-   1378-  9765472+  8e  Linux LVM
|                 start: (c,h,s) expected (1023,224,63) found (1023,173,1)
|                 end: (c,h,s) expected (1023,224,63) found (1023,107,63)
| /dev/hde8   *   3568+   6062-   2495- 17678776+  8e  Linux LVM
`----

Apart from the fact that I still don't know, how this could happen, I
hopefully used only hde7 and up for my data.  So this should be no
problem: just a fast (stupid) 'fdisk /dev/hde d 5 d 6 w'... and my
data was gone...:(

Sadly my attempts to restore hde7 with sfdisk didn't lead in the
wanted result.

,----
| Disk /dev/hde: 14946 cylinders, 255 heads, 63 sectors/track
|   for C/H/S=*/225/63 (instead of 14946/255/63).
| /dev/hde7       2190+   3568-   1378-  9765472+  8e  Linux LVM
|                 start: (c,h,s) expected (1023,224,63) found (1023,173,1)
|                 end: (c,h,s) expected (1023,224,63) found (1023,107,63)
`----

It's the same as before, but still hde7 can't be recognised as part of
my "vol1":(

At this point came my second fault(?):  In my desperation, I tried to create
hde7 again with pvcreate...  

How can I restore this partition?  With hexedit I've seen, that there
still exist some copies(?) of the "superblock"(?).  But sadly I don't
know, what exactly I need to copy...

thanks
Heiner

p.s.: I'm not sure, if any more information could be helpful.  So
please tell me, what I should post...

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux