Ask Your Question
0

Why can't I mount this "LVM2 PV" disk?

asked 2018-10-22 01:37:56 -0600

alfC gravatar image

I had an old (not working) computer that had Fedora 27. I removed the disk and connected it via USB to a new computer (with Fedora 28).

The disk doesn't mount automatically. When I open Gnome Disk I see the following (I am trying to mount the 249GB partition, because presumably, my home directory is there):

image description

I tried to mount it via command line (like in the old times) but I get this error:

$ sudo mount /dev/sdc2 asus/
[sudo] password for user: 
mount: /home/user/tmp/disk: unknown filesystem type 'LVM2_member'.

How can I mount such disk? Am I missing something? Honestly I never understood LVM partitions, I wish I did a plain ext4 partitioning for this disk.

edit retag flag offensive close merge delete

Comments

Run the command lsblk -a to maybe better understand your partition layout. The Fedora installer offers a "normal" partition layout without using (encrypted) LVM but you would have to decide during install.

Everything that is in your LVM2 - PV is mounted already and also listed in your window as three Block Devices. Do the math, add up the capacities of those three, it should result in the size of your PV

florian gravatar imageflorian ( 2018-10-22 09:53:51 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-10-22 03:19:40 -0600

fcomida gravatar image

With LVM there isn't a one to one relationship between physical disk partitions and filesystems. A filesystem resides in a logical volume LV that is part of a volume group VG. A logical volume is assembled by assigning physical extents (actual disk storage) by one or more physical volumes PV. You can then have a logical volume that spans over multiple partitions and/or disks and you can easily add more storage space later on. Run lvscan to find out your logical volumes, then you can mount them with something like: mount /dev/mapper/vg1-lv1 /mnt. There could be a name clash though since you created your VG and LVs in a previous version of Fedora. Check LVM docs on how to rename volume groups an logical volumes if that's the case.

edit flag offensive delete link more

Comments

1

You'd most likely need to do a vgscan first to see if any VGs are available, then do a vgchange -ay for the OS to activate/create the /dev/mapper devices.

aminjohann gravatar imageaminjohann ( 2018-10-22 06:47:49 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2018-10-22 01:37:56 -0600

Seen: 525 times

Last updated: Oct 22 '18