LinuxQuestions.org
Visit Jeremy's Blog.
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 06-22-2007, 10:15 AM   #1
jalmod
LQ Newbie
 
Registered: Jun 2007
Posts: 5

Rep: Reputation: 0
Unhappy Help needed with LVM


Is there any tools to access linux LVM drive from Windows XP?

OR

What is the best method to recover data from linux LVM drive?

Thank you,
 
Old 06-22-2007, 12:10 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Best method most likely would probably be with a Linux rescue disk or cd, etc. Not sure of any Windows native tools to read/write LVM with.
 
Old 06-22-2007, 12:26 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
I don't know of any Windows tool that allow access to LV data.

If you can boot in rescue mode and can activate the LV, you can use the standard tools on /dev/mapper/<VG name>_<LV name> or, sometimes, /dev/<LV name>

Caution: The standard recovery tools applied to the physical device(s) containing the LV and VG will, in almost all cases, completely destroy any hope of data recovery. E.g, a fsck /dev/hdb2 where the LV is on the second partition of hdb will, if you allow fsck to write to the partition, almost always destroy any hope of recovering anything.

I've read that the Formost tool can, sometimes, deal with a logical volume, but I've never had occasion to try it on one.
 
Old 06-22-2007, 12:59 PM   #4
jalmod
LQ Newbie
 
Registered: Jun 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Unhappy

Thank you trickykid and PTrenholme for you replys.

Yes, I did performed fsck -f -y /dev/hda2.

Does this mean that there is no way to recover the data.
 
Old 06-23-2007, 09:17 AM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by jalmod
<snip>Does this mean that there is no way to recover the data.
Yes, almost certainly. You could try foremost or ddrescue but, when I did that (ran fsck on it) to one of my VGs, it was less work to just recreate the VG than it would have been to try to piece together blocks from random files. (Of course I had no valuable data in the VG that was not backed up on other media or systems -- or both for really valuable data.)

The fundamental problem is that a VG is its own partition type, and contains data that can be formatted, inside the VG partition, by different partition conventions. For example, the standard Fedora VG contains both an ext3 "partition" and a swap "partition." This ability to support pseudo partitions in the same physical partition is, of course, quite powerful. Unfortunately, if also powerfully confuses data recovery tools.

For future reference, you should read about the tools in the LVM package for backup, restore and RAID support.
 
  


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
Possible to change non-LVM to LVM? darthfoolish Linux - Software 2 08-01-2008 03:47 AM
Errors installing Q, which is needed for Lex, which is needed for PHP Virtuality Linux - Software 1 05-29-2007 04:47 PM
LXer: Back Up (And Restore) LVM Partitions With LVM Snapshots LXer Syndicated Linux News 0 04-17-2007 11:16 AM
Lvm inescapeableus Linux - Software 8 09-13-2006 01:28 PM
lvm Ammad Linux - General 2 02-22-2005 08:19 PM

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

All times are GMT -5. The time now is 05:13 PM.

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