Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-15-2007, 10:06 AM   #1
LQ Newbie
Registered: Nov 2006
Posts: 8

Rep: Reputation: 0
Lost my lvm partition


I had an lvm-type partition which had a lot of unallocated space in front of it.
So using fdisk I deleted the partition and recreated it starting from the start of the unallocated space.
It was kind of an experiment to see if I could still use the lvm pv. I had created an mbr backup but was so stupid to put it in my home directory, which is held in the lvm pv.

So now I lost my pv. It's somewhere in between cylinder xx and the end cylinder of my disk. I still have the backup files in /etc/lvm/backup. I tried lots of beginning cylinders (using fdisk, delete part. and recreate starting from cylinder xx) and then recreated the pv and vg using those files. However I can't mount any of the lv's in the restored vg, because the filesystem is corrupt. (The wrong starting cylinder)

Now, is there a way to know where my old lvm partition which held the pv is.

Thx in advance
Old 05-15-2007, 11:30 AM   #2
Registered: Aug 2004
Location: Palo Alto, CA
Distribution: Fedora 8/9, Ubuntu
Posts: 38

Rep: Reputation: 17
At this point, probably not.

If you had the fdisk listing before you deleted the partition, you could recreate the partition table so that the pv would be in the right place. Or, if you know how big the deleted partition was, as well as the size of the pv, then you could repartition the disk so that it is back in the same format as before. I've done this when I deleted a partition by accident.

But you need to be sure not to make changes to the drive when the partition table is incorrect. Chances are that after recreating the pv and vg you have overwritten whatever had been on the disk and even if you were able to have the partition table restored exactly as before, the data would be corrupt.

Like you say, this was an experiment. In science, most experiments fail; only a few succeed. :-)


lvm, recover

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM, lost partition table and kernel IS in panic pulassa_aina Fedora 2 06-29-2006 08:00 AM
mount a LVM partition pavi Linux - General 1 10-29-2005 11:56 AM
Can't mount LVM-directories (lost /-directory) JZL240I-U Linux - Newbie 1 07-12-2004 08:03 AM
I lost my LVM and 11 databases Basher52 Fedora 1 03-25-2004 02:10 AM
How to convert partition to LVM? TheOther1 Linux - General 0 01-04-2004 01:29 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration