Re: Cannot mount old drive with LVM partition - help!



On Mon, 02 Oct 2006 02:43:29 +0200, J.O. Aho wrote this:

Ohmster wrote:
noi <noi@xxxxxxxx> wrote in news:EeXTg.6607$TV3.5327
@newssvr21.news.prodigy.com:

Second do not panic.
With FC3 as the primary system, boot from the FC5 DVD

boot: linux rescue
# you get the prompt

$ chroot /mnt/sysimage

$ ls ~

# you should still see your data

If you can see your data then you can disconnect the FC3 and reinstall
FC5 without the LVM.

No can do. When I try that, the rescue disc scans for Fedora
installations and does not find any, therefore it does not mount any.
Examining the logical volume group with the xwindows LVM tool shows that
it is present on /dev/hdb2, which is correct, and it has a different
name now, VolGroup01. The physical view shows 189Gb of space which is
correct. The logical view shows all of that space as free. Now I know
that all my files are still there, the darned thing did not run long
enough to erase all of the files, but something happened to the logical
drive and now all the space is marked as "Free" with no files present.
Bummer.

Not sure how webmin does do, but it seems to have destroyed the old
"volume group" and "logical volume" and then created the new one, this
shouldn't have included any formate.

One way that may fix this, si to crate a new "logical volume" to your new
"volume group", do this manually, add all the free space at once and then
run fsck on the new device, if you are lucky, you will after that be able
to access all your old files (don't forget to mount it after fsck).


The reason why you got a busy message when you allowed the rescue disk to
mount the system was that /boot was mounted into the system root,

umount /mnt/sysimage/boot
umount /mnt/sysimage

That had made you to unmount the logical volume.


Okey, time for me to sleep again...


//Aho

Yes, I agree with Aho. IMO Webmin thought you wanted to create a new
physical volume using hdb and wrote to the partition messing up your
existing partitions. That's the reason I make a partition for
/home separate from /boot, /swap or / partitions.

You can try booting the FC5 as primary then lvscan the FC3 on /dev/hdb
or mounting the FC3 /dev/hdb1 as /mnt/fc3sys then copy your files

You could also try a Knoppix LiveCD which should
automount all of your partitions /dev/hda1, /dev/hdb1 as read-only
/mnt/hda1, /mnt/hdb1. Then you could cp -a /mnt/hdb1/home/dirs
/mnt/hdb1/home copy from the FC3 mounted drive to the FC5 mounted drive.
If you can read the FC3 files under Knoppix. I suggest Knoppix because
it auto mounts all available hds to read-only mount points.


If you can read the files under Knoppix you change the properties of the
/mnt/hda1 from read-only to allow you to copy the files from /mnt/hdb1

Make sure you do not change properties unless you can see all the files
and permissions on FC3 and FC5. After the copies complete make sure the
permissions of the files copied to the FC5 /mnt/hda1/home/dirs have the
correct permissions, userid and groupids.

Very important to verify copied files have the right permissions, userid,
and groupid. Also very important not to change files, partitions or
anything on the FC3 drive until you can backup your data or the FC5
drive is working with all your data.

.



Relevant Pages

  • Re: Cannot mount old drive with LVM partition - help!
    ... intended to get the FC5 distro installed this weekend and then copy my ... mount the freaking FC3 disk. ... your case) and from rescue mode (type rescue on the boot prompt when ...
    (alt.os.linux)
  • Re: how to access remote CUPS printer?
    ... On the remote machine, FC5, I am root. ... which consists of a single FC5 box. ... The FC3 box is behind a firewall and runs CUPS. ...
    (Fedora)
  • Re: Cannot mount old drive with LVM partition - help!
    ... When you bott into FC3, do a df, then you should see the device name ... of the LVM you are using. ... In FC5, /dev/mapper only shows the current volume ... Yeah I converted to doublespace, ...
    (alt.os.linux)
  • Pen drives
    ... I have three pen drives, an elderly 128MB Lexar, a newer ... In FC5 all work as desired, giving automatic detection and a icon ... In FC3 works, but must be mounted by command line---no icon. ... In RH9 works but must be mounted by hand. ...
    (Fedora)
  • Newbie Questions.
    ... Hey, I'm sort of new to *nix in general and very new to FC3, which I have just ... A friend has recomended Afterstep, however the latest version of Fedora Core ... I have figured out how to mount hard ... I don't have a television, much less a dvd player in my apartment, however ...
    (Fedora)