LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-23-2011, 04:11 PM   #1
jant90
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
Windows install screwed up my LVM's VG


Hello everybody,

I have 2x 2TB drives for data storage in my system. I placed both drives in a volume group and made 1 big 4TB partition on it. I made it ext4 and mounted it in my Ubuntu Server environment and used it for a while without any problems.

Just now I wanted to work a little with Windows 7 and I installed it on a separate hard drive (a 500GB one). This went fine but the (f***ing!) Windows 7 installer automatically made a 100MB system reserved partition on one of the 2TB drives (because the freaking MS OS saw them as unallocated space). That basically scewed up the volume group.

Running vgchange -ay gives an error that device with UUID (..) couln't be found. Running vgchange -ay --partial works and activates my volume group as read only.

When I try to mount my logical volume inside that volume group mount gives the error that I need to specify the file system. When I do so with mount -t ext4 it returns the error that it's the wrong file system.

Is there a way for me to fully restore my volume group? Or a way to mount what's left of it so that I can backup as much data as possible?

Thanks in advance!

[Edit]
I found a data restore guide over here:
http://www.novell.com/coolsolutions/...tedLVMMetaData

And I think that solution 2 might be it for me. The only problem is that windows created the 100MB partition and I can't decide whether or not to delete it before proceeding. And if I should delete it what tool I best use for it, because I can imagine one tool just deleting the partition and another tool to completely delete everything that's left on that drive in the 'unallocated space' (in which the remains of my VG are).

What do you guys think?

Last edited by jant90; 08-23-2011 at 04:33 PM.
 
Old 08-23-2011, 08:01 PM   #2
gentisle
Member
 
Registered: May 2005
Location: Wisconsin, USA
Distribution: LinuxMint, OpenBSD
Posts: 263

Rep: Reputation: 9
Have you tried gpart from the command line? Just boot a live linux disc such as Knoppix or SystemRescueCD, and run it. If you're lucky, and you haven't done anything harmful to it, it will restore it. Next time, disconnect the non Windows HDDs before installing, or install Windows first and disconnect the other HDDs.

gpart /dev/xxx

Where xxx is your HDD that you want to restore. I've never used it on an LVM, so you better read the man page, and look online to find out about running gpart on an LVM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recover LVM after Fed11 repair screwed me up!!! ericcarlson Fedora 3 09-01-2009 03:37 AM
ext2 partition screwed up after windows install stzein Linux - Software 3 03-08-2008 11:08 AM
Trying to install windows xp after FC3 install , SCREWED UP!!! Occulum Linux - Software 3 08-10-2005 09:41 PM
Fedora Core 3 install screwed up my Windows XP install MichaelD Fedora - Installation 6 06-10-2005 02:54 PM
Install (fresh) FC2 screwed Windows parttions tho_x_tran Fedora - Installation 1 08-10-2004 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:45 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration