Welcome!
Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Question: How to install MX Linux with LVM?

Post Reply
Mariousz1
Forum Novice
Forum  Novice
Posts: 5
Joined: Sun Apr 28, 2019 1:19 pm

Question: How to install MX Linux with LVM?

#1

Post by Mariousz1 » Sun Apr 28, 2019 2:27 pm

Hi,

I will install my MX Linux with LVM (Logical Volume Manager).
Thanks to great video about LVM in MX linux: https://www.youtube.com/watch?v=tSGh7FqQ7_k
I know how to install and manage LVM in MX "live".
But, how to install MX Linux on prepared earlier "LVM" partitions?
I can't find solution with GUI install option.
Let me know please if there is other solution with CLI.

Fingers crossed!
PC Spec: Lenovo B5400, I74800MQ, 16GB DDR3, SSD Samsung EVO 850 500GB, HDD Seagate 500GB.
OS: MX Linux 18.2 64b

User avatar
beardedragon
Forum Regular
Forum Regular
Posts: 118
Joined: Wed Mar 27, 2019 11:26 pm

Re: Question: How to install MX Linux with LVM?

#2

Post by beardedragon » Sun Apr 28, 2019 2:48 pm

Rule #1 Backup Everything
Rule #2 Read Rule #1

skidoo
Forum Guide
Forum Guide
Posts: 1417
Joined: Tue Sep 22, 2015 6:56 pm

Re: Question: How to install MX Linux with LVM?

#3

Post by skidoo » Sun Apr 28, 2019 3:12 pm

thanks beardedragon, that linked tutorial is a good reference !

Mariousz1
Forum Novice
Forum  Novice
Posts: 5
Joined: Sun Apr 28, 2019 1:19 pm

Re: Question: How to install MX Linux with LVM?

#4

Post by Mariousz1 » Sun Apr 28, 2019 8:22 pm

@ beardedragon: thanks for article.

I have checked this txt. We have solution here how to prepare partitions to installation with LVM option (Boot partition and then LVM PV, VG, LV).
After preparation of these partitions we can continue with installation of OS with LVM option (Ubuntu, Fedora, Mandriva, Open SUSE), but MX can't see my created LVM LV during installation, only PV.

I have idea:
1* Create 8GB ext4 partition,
2* Install MX here (all in root partition), Install LVM2,
3* Create LVM: PV, VG, LV, (10% free for snap),
4* Start Live MX and copy data using "cp -a" from my original ext4 root partition to LV, (I had idea to use dd, but in my opinion "cp -a" should be better here)
5* Add OS from LV to GRUB using os-prober and grub-mkconfig
6* Try to boot from LVM LV partition (if os-prober will find OS in my LV and grub-mkconfig will add this MX instance to boot OS list correctly)

What are you thinking about this?
Is it possible to work?

PS
I will use LVM snapshots with MX. I know that we have snapshot option in MX menu but in my opinion it is more like compressed backup than snapshot.
I will test "risky" packets for MX so snapshots are very recommended.
PC Spec: Lenovo B5400, I74800MQ, 16GB DDR3, SSD Samsung EVO 850 500GB, HDD Seagate 500GB.
OS: MX Linux 18.2 64b

User avatar
beardedragon
Forum Regular
Forum Regular
Posts: 118
Joined: Wed Mar 27, 2019 11:26 pm

Re: Question: How to install MX Linux with LVM?

#5

Post by beardedragon » Sun Apr 28, 2019 8:57 pm

I am sorry, I do no use LVM so I have no idea if it will work. I like to help people find solutions though and I know how to search having the time to do it. Hope you find the final solution.
Rule #1 Backup Everything
Rule #2 Read Rule #1

Post Reply

Return to “Installation”