mount unknown filesystem type 'lvm2_member'
After upgrading from 14.04 to 16.06 my system failed.
I have done a fresh install on a new drive, but that failed too...
I have done another install but now when trying to mount my original drive with all my files on I get this message:
pst007x@Home-Server:~$ sudo mount /dev/sdb5 /media/newhd
[sudo] password for pst007x:
mount: unknown filesystem type 'LVM2_member'
pst007x@Home-Server:~$
I have installed 'lvm2' from the repos and gparted sees the drive, however Nautilus does not see the drive and therefore not mounted.
Any advise?
EDIT:
I tried this:
pst007x@Home-Server:~$ sudo apt-get install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
lvm2 is already the newest version (2.02.133-1ubuntu10).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
pst007x@Home-Server:~$ sudo vgs
VG #PV #LV #SN Attr VSize VFree
ubuntu-vg 1 2 0 wz--n- 465.28g 0
ubuntu-vg 1 2 0 wz--n- 465.52g 52.00m
pst007x@Home-Server:~$ sudo vgscan
Reading all physical volumes. This may take a while...
Found volume group "ubuntu-vg" using metadata type lvm2
Found volume group "ubuntu-vg" using metadata type lvm2
pst007x@Home-Server:~$ sudo lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root ubuntu-vg -wi-ao---- 461.28g
root ubuntu-vg -wi------- 461.47g
swap_1 ubuntu-vg -wi------- 4.00g
swap_1 ubuntu-vg -wi-ao---- 4.00g
pst007x@Home-Server:~$ sudo modprobe dm-mod
pst007x@Home-Server:~$ sudo vgscan
Reading all physical volumes. This may take a while...
Found volume group "ubuntu-vg" using metadata type lvm2
Found volume group "ubuntu-vg" using metadata type lvm2
pst007x@Home-Server:~$ sudo vgchange -ay ubuntu-vg
device-mapper: create ioctl on ubuntu--vg-rootLVM-xhGIrhlZUAJeJA3fWJOOSvuTUO3vZOH9tqZgBj8dGOLHoYzCStcE02NcX8UGpglD failed: Device or resource busy
1 logical volume(s) in volume group "ubuntu-vg" now active
pst007x@Home-Server:~$ ls /mnt/
fcroot
pst007x@Home-Server:~$ ls /dev/mapper
control ubuntu--vg-root ubuntu--vg-swap_1
pst007x@Home-Server:~$ sudo vgscan
Reading all physical volumes. This may take a while...
Found volume group "ubuntu-vg" using metadata type lvm2
Found volume group "ubuntu-vg" using metadata type lvm2
pst007x@Home-Server:~$ sudo lvscan
ACTIVE '/dev/ubuntu-vg/root' [461.28 GiB] inherit
inactive '/dev/ubuntu-vg/swap_1' [4.00 GiB] inherit
inactive '/dev/ubuntu-vg/root' [461.47 GiB] inherit
ACTIVE '/dev/ubuntu-vg/swap_1' [4.00 GiB] inherit
pst007x@Home-Server:~$
Not to detract from the accepted answer, but wanted to offer a more complete solution that hasn't failed me yet.
udisksctl unlock -b /dev/sdb5
sudo mkdir /mnt/data
sudo mount /dev/dm-1 /mnt/data
run into mount: unknown filesystem type 'LVM2_member'
do the commands below
sudo bash
vgdisplay
vgrename <VG UUID> new_name
modprobe dm-mod
vgchange -ay
lvscan
mount /dev/new_name/root /mnt/data/
You used the exact same name (ubuntu-vg) for your new volume group as the old volume group. You must give them unique names. You can rename one of the groups using vgrename
and its UUID.
Find the UUID with vgdisplay
and then rename the volume group:
vgrename <VG UUID> new_name