Thursday, April 29, 2010

Mount LVM partitions from an external hard drive

SkyHi @ Thursday, April 29, 2010

Mount LVM partitions from an external hard drive

Q Is it possible, and if so how, to mount LVM partitions from an external hard drive? I'm thinking of my old Fedora system drive from which I would like to retrieve a single file without having to boot from it.

A As long as you have the LVM tools installed on the distro you are booting, you can mount LVM partitions from any disk (I even did it from a USB key once). Run

vgscan
vgchange -a y

as root and all the partitions should have devices created in the form /dev/volumegroup/logicalvolume, which you can then mount in the usual way:

mount /dev/volumegroup/logicalvolume /mnt/somewhere


REFERENCES
http://www.tuxradar.com/answers/296