On Fedora 17, I am trying to mount a hard drive as slave using the following command:
mount /dev/sda5 /mnt/fedora8
And I get this error:
mount: unknown filesystem type 'LVM2_member'
How do I mount this hard drive?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
Do all of the following logged in as root.
Make sure lvm2 is installed on your system (With fedora 17, it is already installed. Check to make sure)
yum info lvm2
Installed Packages Name : lvm2 Arch : x86_64 Version : 2.02.95
Load the necessary module(s):
dm-mod is the module for the 'device mapper'. This produces no output, if you are using fedora then you already have 'device mapper'and the above command doesn't do anything, run it anyway just in case.
Scan your system for LVM volumes and identify in the output the volume group name that has your Fedora volume (mine proved to be VolGroup00):
Reading all physical volumes. This may take a while... Found volume group "VolGroup00" using metadata type lvm2
So it's telling me my VolGroup00 is of type lvm2. That's nice.
lvs gives us more information about the volume groups:
LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert LogVol00 VolGroup00 -wi-ao-- 461.53g LogVol01 VolGroup00 -wi-a--- 1.94g
Here, The VolumeGroup 'VolGroup00' is the one I'm interested in mounting.
You'll have to activate the volume:
vgchange -ay VolGroup00
2 logical volume(s) in volume group "VolGroup00" now active
So it's telling me that my VolGroup00 is now active. That's good.
You'll have to make a directory to mount to:
Finally, mount your partition like this:
mount /dev/VolGroup00/LogVol00 /mnt/fedora8/
change directory into /mnt/fedora8 and you see the filesystem contents:
bin dev home lost+found misc net proc sbin srv tmp usr boot etc lib media mnt opt root selinux sys u01 var