Fedora Linux Support Community & Resources Center
  #1  
Old 14th August 2007, 08:58 PM
latinos2005 Offline
Registered User
 
Join Date: Aug 2007
Posts: 5
Recover data from LVM partition

Hello,

My Dell laptop broke and I've taken out my hard drive and put it into another dell laptop to recover the information. I had dual boot with Windows XP and FC5.
Unfortunately, I can't seem to mount the drive or do anything to boot the linux partitions.
I can see the Linux and Windows options to boot from and I choose linux, but it tells me:
Can't file system /dev/root

I tried using the discs to reinstall but I can't since it won't mound.
The linux partition is LVM.

Please tell me any more information you might need.
I'd appreciate any help.

Thank you

Last edited by latinos2005; 14th August 2007 at 09:41 PM.
Reply With Quote
  #2  
Old 14th August 2007, 09:04 PM
latinos2005 Offline
Registered User
 
Join Date: Aug 2007
Posts: 5
Forgot to say that I would like to be able to use the Linux on that other Dell (which is different from the one the original HD was in) long enough so I can move my files over the network.

This is what FC tells me when I select it:

Uncompressing Linux...Ok, booting the kernel.
Red Hat nash versopm 5.0.32 starting
Reading all physical volumes. This may take a while...
Found Volume group "VolGroup00" using metadata type lvm2
2 logical volume(s) in volume group "VolGroup00" now active
mount: could not find file system '/dev/root'
setuproot: moving /dev failed: No such file or directory
Setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!

Last edited by latinos2005; 14th August 2007 at 09:13 PM.
Reply With Quote
  #3  
Old 14th August 2007, 09:23 PM
ryptyde Offline
Registered User
 
Join Date: May 2005
Location: Tragic City, Michigan USA
Posts: 1,647
You could put the drive in a USB enclosure and use another linux computer to access windows and then use a Windows computer to access linux using "explore2fs". I have done it more than once to recover data from non-booting Linux or Windows machines.

You could try a liveCD like Knoppix to mount the Windows drive and recover data. Not sure but there may be a possibility to fix the master bootrecord with a recovery disc or SuperGrubDisc to get Linux to boot from the new laptop.

Last edited by ryptyde; 14th August 2007 at 09:30 PM.
Reply With Quote
  #4  
Old 14th August 2007, 09:35 PM
latinos2005 Offline
Registered User
 
Join Date: Aug 2007
Posts: 5
I tried explore2fs but I get the same thing. I can only see one folder when I do it, the boot directory.

For reference, I ran some commands:

lvm> lvmdisscan
/dev/loop0 [ 77.65 MB]
/dev/hdc1 [ 14.65 GB]
/dev/hdc2 [ 19.63 GB]
/dev/hdc3 [ 101.97 MB]
/dev/hdc5 [ 21.51 GB] LVM physical volume
0 disks
4 partitions
0 LVM physical volume whole disks
1 LVM physical volume

lvm>pvscan
PV /dev/hdc5 VG VolGroup00 lvm2[21.50GB /32.00 MB free]
Total: 1[21.50 GB] / in use: 1 [21.50 GB] / in no VG: 0 [0 ]

lvm> vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2

lvm> vgchange -ay
2 logical volume(s) in volume grou "VolGroup00" now active

I do exit on lvm> which takes me to:

sh-3.00#

I type mount and get the following
/proc on /proc type proc(rw,nodiratime)
/dev on /dev tpe tmpfs (rw)
/dev/pts on /dev/pts type devpts (rw)
/sys on /sys type sysfs (rw)
none on /tmp type ramfs (rw)
none on /tmp/ramfs type ramfs (rw)
/proc/bus/usb on /proc/bus/usb type usbfs (rw)
/tmp/loop0 on /mnt/runtime type cramfs (ro)
/selinux on /selinux type selinuxfs (rw)
/dev/VolGroup00/LogVol00 on /mntsysimage type ext3 (rw_
/dev/hdc3 on /mnt/sysimage/boot type ext3 (rw)
Reply With Quote
  #5  
Old 14th August 2007, 09:43 PM
gioto Offline
Registered User
 
Join Date: Dec 2004
Location: Italy
Posts: 14
I would use a knoppix live.
To access the lvm you have to digit into the terminal
Quote:
#lvm vgscan
#lvm vgchange -ay
#lvm lvs
this will display your volume group and logical volume names
than you can make a dir with mkdir to mount your LogVol and copy your data
Quote:
#mkdir /mnt/rescue
#mount /mnt/rescue /dev/VolGroup00/LogVol00
using the correct volgroup and logvol number
I just recovered my data this way. Hope this helps
Reply With Quote
  #6  
Old 14th August 2007, 09:52 PM
latinos2005 Offline
Registered User
 
Join Date: Aug 2007
Posts: 5
Do I need the knoppinx live CD? I have the FC CDs and I'm going into linux rescue using them.

I tried :
#mkdir /mnt/rescue
#mount /mnt/rescue /dev/VolGroup00/LogVol00

and it said:
mount: Mounting /mnt/rescue on /dev/VolGroup00/LogVol00 failed: Block device required.

When I run the commands you told me:

#lvm vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2

#lvm vgchange -ay
2 logical volume(s) in volume grou "VolGroup00" now active

#lvm lvs
LV VG Attr LSize

LogVol00 VolGroup00
LogVol01 VolGroup00
Reply With Quote
  #7  
Old 14th August 2007, 10:13 PM
SlowJet Offline
Registered User
 
Join Date: Jan 2005
Posts: 5,048
#mount /mnt/rescue /dev/VolGroup00/LogVol00
s/b

#mount /dev/mapper/VolGroup00/LogVol00 /mnt/rescue
or
#mount /dev/VolGroup00/LogVol00 /mnt/rescue
__________________
Do the Math
Reply With Quote
  #8  
Old 14th August 2007, 10:17 PM
latinos2005 Offline
Registered User
 
Join Date: Aug 2007
Posts: 5
Ok. #mount /dev/VolGroup00/LogVol00 /mnt/rescue

Thank you so much!!!
Reply With Quote
  #9  
Old 14th August 2007, 10:23 PM
gioto Offline
Registered User
 
Join Date: Dec 2004
Location: Italy
Posts: 14
I wasn't able to mount the partition under FC dvd in rescue mode and I got it working with Knoppix live.
I made an error in the mount command
after the code about lvm you should try
Quote:
#mount /dev/VolGroup00/LogVol00 /mnt/rescue
Reply With Quote
Reply

Tags
data, lva, partition, recover

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GPT disk cant be mounted; how to recover the data from unmounted partition? Izham Hardware & Laptops 11 7th September 2009 02:42 PM
Recover Data... mugs Using Fedora 12 24th November 2005 05:40 PM
Recover data from the spoilt partition mnguyen Installation, Upgrades and Live Media 1 30th May 2005 04:43 AM
How can i recover data from a screwed up partition? haniball Using Fedora 4 11th December 2004 05:49 PM


Current GMT-time: 10:21 (Tuesday, 23-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat