You may encounter the mount: unknown file system type LVM2_ error during the mounting process on your Ubuntu server. You can follow the steps below to resolve the error.
Using the command below, we can see that sda5 is lvm.
root@ubuntu :~# fdisk -l /dev/sda
root@ubuntu :~# lvmdiskscan
Then we scan the logical volume.
root@ubuntu:~# lvscan
inactive '/dev/186-vg/root' [28.76 GiB] inherit
inactive '/dev/186-vg/swap_1' [1.00 GiB] inherit
Since it will not be activated when the system boots, we activate the lvm volume using the following command.
root@ubuntu:~# vgchange -ay
2 logical volume(s) in volume group "186-vg" now active
Finally, we perform the mounting process according to lvm mount. You can use the command below.
root@ubuntu:~# mount /dev/186-vg/root /mnt/recover
After following the steps, the process was completed successfully.
You have examined the knowledge base in detail, but if you cannot find the information you need,
Create a Support Ticket