how to mount LVM partition
Volker Wysk
post at volker-wysk.de
Mon Jul 13 19:20:11 UTC 2020
Am Montag, den 13.07.2020, 12:02 -0700 schrieb Noah:
> Hi List People,
>
> I am having trouble mounting the LVM drive on /dev/sdb5
> What am I doing wrong?
>
> Device Boot Start End Sectors Size Id Type
> /dev/sdb1 2048 499711 497664 243M 83 Linux
> /dev/sdb2 501758 976771071 976269314 465.5G 5 Extended
> /dev/sdb5 501760 976771071 976269312 465.5G 8e Linux LVM
>
> noah at nuc2:~$ sudo apt install lvm2
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> lvm2 is already the newest version (2.03.07-1ubuntu1).
> 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>
> noah at nuc2:~$ sudo vgscan
> noah at nuc2:~$ sudo vgscan --mknodes
> noah at nuc2:~$ sudo lvdisplay
> noah at nuc2:~$ sudo lvs
> noah at nuc2:~$ sudo pvscan
> No matching physical volumes found
> noah at nuc2:~$ sudo vgscan
> noah at nuc2:~$ sudo vgchange -ay
> noah at nuc2:~$ sudo lvscan
Use "lsblk" for listing the active block devices. You should run "sudo
vgchange -ay" and then "lsblk". The logical volumes inside your
/dev/sdb5 should be displayed. Also have a look at /dev/mapper. There,
the logical volumes are present as well.
Use "mount /dev/mapper/XXX MOUNTPOINT" to mount a logical volume.
Good luck
Volker
More information about the ubuntu-users
mailing list