Need help recovering files from old hard drive with Fedora Core installation
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Need help recovering files from old hard drive with Fedora Core installation
Hello everyone,
I have an internal SATA hard drive that I'm attempting to recover files from (mp3's, jpeg's, etc) and I'm wondering if it has been corrupted? Here is how I'm attempting to recover:
- I have a Linux Live CD running on a Windows 7 laptop and my SATA drive is connected to the laptop via USB to SATA adapter. When I list the contents of the HD, here is what I see:
Partition 2: 279.3 GiB (299877258240 bytes, 585697770 sectors from 401625)
Type 0x8E (Linux LVM)
Linux LVM2 volume, version 001
As root try 'pvscan; vgscan; vgchange -ay'. After that run 'lvscan; dmsetup status'. You now should see the regular partitions to mount else post these commands output.
Does Puppy Linux have support for Logical Volume Management (LVM2)? Looking around on the Web, I can't find anything to suggest that it does, and that's what you're going to need to look inside that sdb2 partition, which is where everything except the boot files resides.
You mount them somewhere:
mkdir /media/LogVol00; mount /dev/VolGroup00/LogVol00 -t auto /media/LogVol00
mkdir /media/LogVol01; mount /dev/VolGroup00/LogVol01 -t auto /media/LogVol01
Unfortunately I receive the following error when attempting to mount:
[root@localhost ~]# mkdir /media/LogVol00
[root@localhost ~]# mount /dev/VolGroup00/LogVol00 -t auto /media/LogVol00/
mount: wrong fs type, bad option, bad superblock on /dev/mapper/VolGroup00-LogVol00,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Did you try the dmesg | tail command as suggested?
I've just used System Rescue CD to access the LVM volumes on a disk from a CentOS system (which is RHEL based). I did the following:
Connected the hard drive and booted the system from the CD
Ran pvscan, vgscan, vgchange -ay and lvscan
Created an empty directory (mkdir /mnt/tempdir)
Mounted the volume with mount /dev/VolGroup00/LogVol00 /mnt/tempdir (the -t option was not required as "auto" is the default)
I could then view and access the files in /mnt/tempdir.
In order for this to work, the live CD you're using must support both LVM and the file system on the logical volume. My preference for System Rescue CD stems from the fact that it contains a lot of useful software, has a very feature-complete kernel, and is frequently updated.
Thanks everyone for all the help... I was able to figure this out.
The best way to reward for getting help instead of saying "thanks" would be you posting the actual commands you used.
That way you can help others that find this thread. This is called reciprosity and it's one of the things LQ thrives on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.