Lost partition table, how can I find the start of the PV?
Yes, in a most stupid error, I trashed my partition table, but I know the disk was partitioned into 3 partitions as follows:
/dev/hda1:/boot with ext2/3 on it
/dev/hda2:swap
/dev/hda3:lvm PV with ext3 on it
Where th partition boundaries are, I am not sure. :-(
While I may have lost /boot I am hopeful the destructive operation did not get to /dev/hda3, which had the only PV on the system.
I am hoping somebody can suggest a tool/operation to try to recover at least enough of a partition table to try to get /dev/hda3 (and hda1 and hda2 if possible. bit hda3 is most important) back in order, get the VG up and get the data off it.
Any ideas at all on how to proceed? Just for reference in versions of filesystems, LVM, etc. this was a Debian Woody system.
b.
Signature · 3 lines
My other computer is your Microsoft Windows server. Brian J. Murrell
Quoted 3 lines · Brian J. Murrell
I am hoping somebody can suggest a tool/operation to try to recover at least enough of a partition table to try to get
/dev/hda3(and hda1 and hda2 if possible.
You can try gpart: http://www.stud.uni-hannover.de/user/76201/gpart/
/ Rickard Olsson,IT-Konsult/
/ Telefon: +46 70 635 01 42/
/ http://www.webhackande.se/
Quoted 1 line · Rickard Olsson
You can try gpart: http://www.stud.uni-hannover.de/user/76201/gpart/
Ahhhh. Good ol' gpart. From the initial webpage, this looks like it will be what I am looking for. I wonder how good it is and if a manual inspection could be any more accurate if gpart fails to determine the previous partition table layout.
Much thanks for the pointer Rickard!
b.
Just wanted to give a big shout out to Rickard...
Quoted 7 lines · Rickard Olsson
Quoted 3 lines · Brian J. Murrell
I am hoping somebody can suggest a tool/operation to try to recover at least enough of a partition table to try to get
/dev/hda3(and hda1 and hda2 if possible.You can try gpart: http://www.stud.uni-hannover.de/user/76201/gpart/
This did the trick! Got all my data back, system is back in running order and I am doing a backup as we speak.
Always answer that little voice that nags you every now and then. :-)
b.
Signature · 3 lines
My other computer is your Microsoft Windows server. Brian J. Murrell
Quoted 8 lines · Brian J. Murrell
Yes, in a most stupid error, I trashed my partition table, but I know
I am hoping somebody can suggest a tool/operation to try to recover at least enough of a partition table to try to get
/dev/hda3(and hda1 and hda2 if possible. bit hda3 is most important) back in order, get the VG up and get the data off it.
Quoted 4 lines
Any ideas at all on how to proceed? Just for reference in versions of filesystems, LVM, etc. this was a Debian Woody system.
b.
How about booting from the installation cd that you used to build the system. I've done something similar on Gentoo.BTW, what about the rescue disk that you created or should have created after the install?
Qv6
Quoted 3 lines · On Tue, 2003-11-25 at 10:14, qv6 wrote:
How about booting from the installation cd that you used to build the system.
To be clear, I don't have a problem booting the system or even putting the disk into a situation/configuration where I can play doctor on it. That is not the nature of my query.
What I want to know is if there is any way I can use LVM, and the way it writes metadata into the partition (if indeed it does do that) to help me determine where that given PV started so that I can put the partition boundaries (i.e. the partition table) back and try to further recover the PV.
b.