[mythtv-users] OT: mounting LVM (SOLVED)

Brad Fuller bradallenfuller at yahoo.com
Tue Nov 28 22:28:39 UTC 2006

Leigh wrote:

>jack snodgrass wrote:
>>On 11/28/06, Brad Fuller <bradallenfuller at yahoo.com> wrote:
>>>I installed Linux (gentoo) on another hd and would like to mount another
>>>drive (FC5) to copy files. The FC5 is LVM. I've searched on how to mount
>>>the disk, but all I can find is specifics on how to use LVM, how to
>>>shrink/grow, nothing about mounting it. Anyone know?
>I've recently done similar on my work machine after installing FC6  on a 
>seperate HDD, to copy various files (vids, configs , music etc) from the 
>FC5 install, tho I don't know if this will work for sure on a non Fedora 
>install, I think the LVM commands are pretty standard.
>Use 'lvscan' to find out which logvol you need (if you try to just mount 
>the partition for a LVM it says it's busy or already mounted..)
>this is the output from it on my work machine..
>[root at sukpc2 ~]# lvscan
>  /dev/cdrom: read failed after 0 of 2048 at 0: Input/output error
>  ACTIVE            '/dev/VolGroup01/LogVol00' [72.44 GB] inherit
>  ACTIVE            '/dev/VolGroup01/LogVol01' [1.94 GB] inherit
>  ACTIVE            '/dev/VolGroup00/LogVol00' [72.44 GB] inherit
>  ACTIVE            '/dev/VolGroup00/LogVol01' [1.94 GB] inherit
>In my case, VolGroup01 is the current system main partition, while 
>VolGroup00 is the older FC5 setup, so I just mounted 
>/dev/VolGroup00/LogVol00 to get at the older content/saved files..
>[root at sukpc2 ~]# mount
>/dev/mapper/VolGroup01-LogVol00 on / type ext3 (rw)
>proc on /proc type proc (rw)
>sysfs on /sys type sysfs (rw)
>devpts on /dev/pts type devpts (rw,gid=5,mode=620)
>/dev/sdb1 on /boot type ext3 (rw)
>tmpfs on /dev/shm type tmpfs (rw)
>none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
>sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
>/dev/mapper/VolGroup00-LogVol00 on /mnt/fc5 type ext3 (rw)
>Hope that helps..
Thanks to both Leigh and Jack, I was able to mount the FC5 generated LVM 
volume (or is it group?) on gentoo
Here's what I did (hope I remember this correctly):

1. Get lvm
# emerge lvm2

2. to find all of the volume groups:
# lvscan
I found /VolGroup/LogVol00 and /VolGroup/LogVol01 that were inactive. I 
knew that Vol00 was the one because of it's size.

3. Activate all known volume groups in the system:
# vchange -a y

4. I added an entry to fstab so I could easily copy the files later:
 /dev/VolGroup/LogVol00   /fc5  ext3 defaults 0 0

5. mounted the volume group (mount -a)

Thanks for your help! This is great!


More information about the mythtv-users mailing list