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



noi <noi@xxxxxxxx> wrote in
news:zzcUg.7769$GR.6701@xxxxxxxxxxxxxxxxxxxxxxxxxx:

[snip]

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

[root@ohmster mnt]# mount -t ext3 -o ro,defaults /dev/hdb2 /mnt/old_sys
mount: wrong fs type, bad option, bad superblock on /dev/hdb2,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

[root@ohmster mnt]#

No, it does not work.

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


I do not know if all that will work because my current file system is
also LVM.

[root@ohmster mnt]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
187117284 4303304 173155612 3% /
/dev/hda1 101086 14122 81745 15% /boot
tmpfs 777820 0 777820 0% /dev/shm
[root@ohmster mnt]#


I will try it though, as well as try knoppix to see if the disk will
mount. I think that webmin destroyed the FAT for the drive if there is
such a thing with LVM. What I did had not taken enough time to delete all
the files but now the files are no longer accessible. It may be time to
consider hard drive recovery now, even though fdisk says that the
partitions are intact and still as a LMV file system.

[root@ohmster mnt]# 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 mnt]#


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



Relevant Pages

  • Re: Why Refractors are Better!
    ... when Jeff used to mount his 11 inch refractor on a German ... Combination of reflector and refractor. ... mirrors other mirrors that fold it to the side and direct it into a refractor ...
    (sci.astro.amateur)
  • Re: Raid Level 1 and me
    ... [snip lots of useful info] ... > then I created mount points on / for each of the filesystems to mount ... If the permissions are different, ... [snip more useful information that seemed correct] ...
    (Debian-User)
  • Re: Adding a new hard drive
    ... 2, create the mount point; ... Shown below is what happens when I umount /local2, delete the mount point, recreate the mount point with mkdir and mount the device. ... mkdir /local2 results in the ownership being set to root.root and access flags as 755. ...
    (alt.os.linux.suse)
  • Re: Cannot mount old drive with LVM partition - help!
    ... on hdb is the boot partition, partition 2 on hdb is the LVM where my stuff ... but you should be able to turn off lvm vgchange -an. ...
    (alt.os.linux)
  • Re: Thanks for all the help... and a backup question
    ... It is possible to mount HFS+ over firewire. ... > connecting the two machines through ethernet? ...
    (Fedora)