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



On Mon, 02 Oct 2006 12:39:54 +0000, Ohmster wrote this:

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

snip

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 ~]#


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

Yeah but make sure you don't change file permissions, uids, gids on either
FC3 or FC5. Major headaches if that happens..

snip

I hear ya.

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

You can see the hdb partitions using fdisk on FC5
Are you sure you can't mount the hdb2 now on FC5?
I mean case closed if you can mount FC3 on FC5

root@ $ mount -t ext3 -o ro,defaults /dev/hdb2 /mnt/fc3sys


I didn't mention it first because using
$ vgextend volgroup /dev/hdb2
should have added FC3 as an extension to your FC5 volgroup
but you should be able to turn off lvm vgchange -an.

$ man vgchange

root@ $ vgchange -an # turns off lvm

root@ $ shutdown -r now

root@ $ mount -t ext3 -o ro,defaults /dev/hdb2 /mnt/sysfc3

root@ $ cp -a /mnt/sysfc3/whatever /home/whatever

root@ $ vgchange -an # turns lvm back on

root@ $ shutdown -r now




.



Relevant Pages

  • lvm boot partition and grub
    ... i have successfuly switched my system to lvm. ... "normal" partitions on hda and an empty hdb. ... and tmp in the root lvm partition so the other partitions ...
    (Debian-User)
  • Re: [opensuse] LILO/Grub Problem
    ... root ... The initrd on that drive has the modules for the lvm in it. ... partition, and a 28G LVM (which I have my home and all other partions on as ... I did not TOUCH any of the partitions on hdb. ...
    (SuSE)
  • Re: Adding a new harddisk
    ... I would expect you to partition ... > I've not done this on Linux so there may be a smarter method like LVM (which ... I agree with partitioning hdb first. ... Stephane already has a live filesystem in "/home" and setting up LVM ...
    (linux.redhat)
  • When LVM Goes Bad
    ... I believe LVM is the default on Fedora partitioning now, at least I didn't love it that much that I would have selected it, and it is on all my boxes now. ... However LVM makes less sense on, say, a laptop which has and will only ever have a single 2.5" HDD for storage that is permanently available with the laptop. ... The resulting symptom was that the partition contents were no longer recognized as containing a logical volume or a volume group, nor pvscan, although pvdisplay could see it was a physical volume if pointed directly at the partition. ... Whether this explained the loss of LVMness or a subsequent logical brain damage that happened elsewhere did it I don't know. ...
    (Fedora)
  • Re: Hosed Grub with the push of a button
    ... occupies part of the LVM. ... I don't think the developers of the program counted on some crazy button changing the partition table with one touch. ... Did it write over that portion of the disk or did it actually format the portion and place information from some storage chip on the mother board. ... My guess would be that the motherboard has a chip inside that has a compressed image of what was originally installed on the computer, like what a install CD would have. ...
    (Fedora)