Posted: . At: 8:23 AM. This was 4 years ago. Post ID: 14567
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


Mounting an LVM volume on Ubuntu 20.04 is very easy.


Mounting an old LVM volume on Ubuntu 20.04, is very easy, there are numerous posts on Stackoverflow that have many complicated commands for mounting a drive using the command line. But I needed to mount an old Ubuntu installation and it was an LVM2 volume, so I could not get it to mount on Ubuntu 20.04. But then I found out that if you use this simple command, and install the LVM2 system, then the drive will be mountable in the Caja file manager upon a reboot.

jason@jason-desktop:~$ sudo apt install lvm2

Better than some answers that were telling a person to format the drive before mounting it! Here it is: https://askubuntu.com/questions/766048/mount-unknown-filesystem-type-lvm2-member/872130#872130. But all you need is the LVM2 system installed and it is very easy. Get information about your LVM2 volume groups with this command.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
jason@jason-desktop:~$ sudo vgdisplay
[sudo] password for jason: 
  --- Volume group ---
  VG Name               ubuntudrive
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  4
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               1
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               <292.45 GiB
  PE Size               4.00 MiB
  Total PE              74866
  Alloc PE / Size       74864 / <292.44 GiB
  Free  PE / Size       2 / 8.00 MiB
  VG UUID               9zQOZK-IEjt-3WpH-OQ23-a9E4-Dv5X-QrCjWF

The drive UUID may be used as an identifier to rename the volume group.

jason@jason-desktop:~$ sudo vgrename 9zQOZK-IEjt-3WpH-OQ23-a9E4-Dv5X-QrCjWF ubuntudrive

This shows how easy it is to work with an LVM2 volume group. It is easy to mount them on Ubuntu. Just use the proper drivers and this is very simple.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.