Mount LVM Partition in Ubuntu

If you dual-boot with Fedora and an Ubuntu-based distro like Deepin, you might notice that Fedora partitions using LVM aren’t visible in Deepin or other Ubuntu derivatives. To access them, you need the LVM tools.

Step 1: Install LVM Tools

Open a terminal and run:

sudo apt-get update
sudo apt-get install lvm2

This installs the necessary LVM utilities to manage LVM volumes.

Step 2: Load the Device Mapper Module

Ensure the kernel module for device mapping is loaded:

sudo modprobe dm-mod

This enables Linux to handle LVM volumes.

Step 3: Activate Volume Groups

List the available volume groups:

sudo vgscan

Activate all volume groups:

sudo vgchange -ay

-a y stands for “activate all” detected LVM volume groups.

Step 4: Identify Logical Volumes

List logical volumes to find the one you want to mount:

sudo lvdisplay

Example output might include:

/dev/fedora/root
/dev/fedora/home

Step 5: Mount the Logical Volume

Create a mount point:

sudo mkdir /mnt/fedora_root

Mount the root volume:

sudo mount /dev/fedora/root /mnt/fedora_root

You can now access Fedora files under /mnt/fedora_root.

Repeat for other volumes (e.g., /home) as needed.

Step 6: Unmount (Optional)

When done:

sudo umount /mnt/fedora_root<br>sudo vgchange -an

This deactivates LVM volumes safely.

This process lets you read/write Fedora LVM partitions from Deepin or any Ubuntu-based distro without modifying Fedora itself.