USB external Hard disk - May be LVM

Jim Cornette fc-cornette at insight.rr.com
Sun Mar 20 10:13:35 UTC 2005


Antonio Montagnani wrote:
> I installed FC3 (fresh install) on external USB hard disk (see different 
> post) , now i moved the HD to another Fedora machine (that is un upgrade 
> from FC2)
> 
> USB hard disk is immediately connected to the system but I see only a 
> /boot(2) partition.
> I suppose that other directories are LVM type.-How can I see other 
> partitions??
> 

Using Felipe's directions from an earlier discussion, I had to do this 
myself. The labels were the same, so /dev/mapper did not recognize them 
on startup.

Here is what I did to see the lvm volume from the other disk.

Directions from Felipe: (This works with secondary drive mounts also)

Once booted into text-mode rescue, invoke the following commands:

lvm lvscan
lvm vgchange -ay

This will scan for all LVM volumes and then will make them active and
accessible.

lvm vgchange -an

will deactivate them all.


Additional steps that I had to do;
Perform the step above to activate the lvm.

Make a mounting point directory, such as /mnt/logvol
mkdir /mnt/logvol

mount the volume with your resulting device name, for me it was
mount /dev/VolGroup00/LogVol00 /mnt/logvol

Change to the /mnt/logvol directory and you should see the content of 
the disk there.

When done with disk, change to a different directory to allow the drive 
to be unmounted, then:
umount /dev/VolGroup00/LogVol00 /mnt/volg

  If you have other volumes with similar names, I don't think this would 
work.

On my new system, I changed to using conventional partitioning. There 
were no duplicate lvms to deal with.
This disk was a laptop disk mounted in a USB to IDE bookdrive device. I 
was able to transfer desired information from the drive mounted above 
using this method. If you have lvm on the new installation also, you 
might need to use lvm help for other options.
lvm help
should list the other options.

Jim

-- 
Never trust an operating system you don't have sources for.




More information about the fedora-list mailing list