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



noi <noi@xxxxxxxx> wrote in
news:ZD1Ug.18706$Ij.5243@xxxxxxxxxxxxxxxxxxxxxxxxxx:

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

This is FC5, the old FC3 (What is left of it.) is on /dev/hdb. Partition
1 on hdb is the boot partition, partition 2 on hdb is the LVM where my
stuff is at:

[root@ohmster ~]# lvscan
ACTIVE '/dev/VolGroup00/LogVol00' [184.22 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [1.94 GB] inherit
[root@ohmster ~]# fdisk -l /dev/hda

Disk /dev/hda: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 24321 195254010 8e Linux LVM
[root@ohmster ~]# fdisk -l /dev/hdb

Disk /dev/hdb: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 24792 199037317+ 8e Linux LVM
[root@ohmster ~]#


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.

You know, knoppix might not be a bad idea. I will try it later, have to
go to work now.

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.

I hear ya.

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.


Will try that when I get home later. Thanks for the advice.

--
~Ohmster
theohmster at comcast dot net
Put "messageforohmster" in message body
to pass my spam filter.
.



Relevant Pages

  • Re: Cannot mount old drive with LVM partition - help!
    ... ext3 for new partition creation and created mount points for the others. ... Looks like I am commited now to FC5 and have no choice but to move ahead. ... I did try to rename the FC3 lvm to VolGroup01 instead of VolGroup00 like ...
    (alt.os.linux)
  • How to copy /?
    ... As a learning experience and in preparation for upgrading to FC5, ... copied my FC3 / partition to another partition. ... and then to boot with the kernel param enforcing=0. ...
    (Fedora)
  • Re: file recovery ideas? bad boot block
    ... Disk hdb apparently failed. ... to the point where boot doesn't complete. ... /home partition readonly. ... > Install RH on hda, then try to move hdb files to hda, then ...
    (alt.os.linux)
  • Re: Multiple bootable partitions
    ... > The way that I would like to do this is by swapping hdb for a larger ... and keeping all the linux stuff there still. ... > - boot by only having the Active partition visible. ... As for your problem with different geometry between drives. ...
    (alt.os.linux)
  • Re: [SLE] fdisk then mkfs.reiserfs Now df reports wrong disk size
    ... > I take it you need only 1 partition on hdb. ... fdisk was happy, but parted still showed phantom partitions on hdb. ... discover the discrepancy in the reported dev/hdb disk size v. what the OS ...
    (SuSE)