LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount drive that has Linux LVM (https://www.linuxquestions.org/questions/linux-newbie-8/mount-drive-that-has-linux-lvm-812039/)

ufmale 06-03-2010 07:09 PM

mount drive that has Linux LVM
 
I have a Fedora machine that was installed with Linux LVM. I took the drive of that machine, connect it to disk enclosure, and connect to another Linux machine via USB connection.

I can see that the drive /dev/sda is there:

Code:


[root@dd ~]# /sbin/fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 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      14593  117113850  8e  Linux LVM

Disk /dev/hdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hdb1              1      14593  117218241  83  Linux

Disk /dev/sda: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1          26      204800  83  Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2              26        9730    77951393+  8e  Linux LVM

I want to copy files from this drive. I try to mount it, but it didn't work. The /dev/sda1 is mounted fine, but it has only boot stuff.

Code:


[root@dd ~]# mount /dev/sda2 /mnt/drive
mount: you must specify the filesystem type


Does anyone know what option i need here so I can mount the drive and copy my files from this drive.

AlucardZero 06-03-2010 08:33 PM

Look at vgscan, vgchange -a y, vgimport, mount /dev/VolGroup00/LogVolXX ...


All times are GMT -5. The time now is 09:58 AM.