Upgraded 6.6 to 7 can't mount old drive

Issues related to hardware problems
Post Reply
Rickinfl
Posts: 2
Joined: 2014/01/27 17:37:59

Upgraded 6.6 to 7 can't mount old drive

Post by Rickinfl » 2015/02/22 21:25:50

Hi,

I had a Centos 6.6 box running with all my data on another drive mounted to a folder. I install Centos 7 and re attached the hard drive, but it will not mount.

I run: fdisk -l and see it as /dev/sda2

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 156301311 77637632 8e Linux LVM

when I try and mount it.... mount /dev/sda2 /Media it fails with this error:

mount: unknown filesystem type 'LVM2_member'

Not sure what to do from here searched the internet and really didn't get a straight answer on how to fix it.

Thanks,
Rick

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Upgraded 6.6 to 7 can't mount old drive

Post by TrevorH » 2015/02/22 21:51:32

It's an LVM PV so you need to activate it and then look for the LVs on it. Run vgscan and/or vgchange -a y and see if the LVs now show up in the output from lvs
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply