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 lvm2This 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-modThis enables Linux to handle LVM volumes.
Step 3: Activate Volume Groups
List the available volume groups:
sudo vgscanActivate all volume groups:
sudo vgchange -ay
-a ystands for “activate all” detected LVM volume groups.
Step 4: Identify Logical Volumes
List logical volumes to find the one you want to mount:
sudo lvdisplayExample output might include:
/dev/fedora/root
/dev/fedora/home
Step 5: Mount the Logical Volume
Create a mount point:
sudo mkdir /mnt/fedora_rootMount the root volume:
sudo mount /dev/fedora/root /mnt/fedora_rootYou 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 -anThis deactivates LVM volumes safely.
This process lets you read/write Fedora LVM partitions from Deepin or any Ubuntu-based distro without modifying Fedora itself.
