LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-27-2008, 05:51 PM   #1
Dagwyn
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Rep: Reputation: 0
Question LVM partition lost after power outage


Hi folks.

Once upon a time I had created an encrypted lvm partition on my /dev/sdb disk following the guide at goohackle.com using one primary partition using the whole disk.
Everything was running smoothly until just an hour ago when the power disappeared for a while.
After reboot system can't find ANY partition info on sdb.

Also, after viewing some other threads here I looked in /etc/lvm/archive but didn't find any referene to my lost partition.

Question: is all lost?

Last edited by Dagwyn; 10-27-2008 at 05:56 PM.
 
Old 10-28-2008, 07:52 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,655

Rep: Reputation: Disabled
Quote:
Originally Posted by Dagwyn View Post
...
Question: is all lost?
Good question .

No, seriously, it depends from what happened during power going down. From what you describe something has overwritten the MBR / partition table.

I'd suggest the following:
Code:
dd if=/dev/sdb of=/some/place/on/a/different/disk/sdb.mbr count=1 bs=512
That will preserve the original MBR of /dev/sdb.

Then call "fdisk /dev/sdb" and create a partition of the type "linux LVM" on the whole disk (fdisk will propose the appropriate cylinder numbers). Write the new partition table and cross your fingers during reboot.

The validity of the data on the disk will depend from how far the process of overwriting things had run during that crash.

Need I stress the point that you best clone the entire drive if it contains valuable data before you start experimenting? Good luck...

Last edited by JZL240I-U; 10-28-2008 at 07:54 AM.
 
Old 10-28-2008, 04:32 PM   #3
Dagwyn
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Worked like a charm.
You're my hero
 
Old 10-30-2008, 06:09 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,655

Rep: Reputation: Disabled
Glad to hear it. And thanks for coming back and telling us the result .
 
  


Reply

Tags
lvm2


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
Urgent! Computer lost power while the / partition was being resized. BenMJ Linux - Software 8 09-09-2008 01:13 AM
power outage blackmamba11 Linux - Server 1 12-03-2007 11:51 AM
Lost my lvm partition timonvo Linux - Software 1 05-15-2007 10:30 AM
LVM, lost partition table and kernel IS in panic pulassa_aina Fedora 2 06-29-2006 07:00 AM
eth0 configuration lost after power outage gvaught Linux - Networking 6 06-15-2006 07:54 PM


All times are GMT -5. The time now is 03:05 AM.

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