Mint + LVM?

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
witchdoc
Level 1
Level 1
Posts: 3
Joined: Mon Oct 19, 2009 6:57 am

Mint + LVM?

Post by witchdoc » Mon Oct 19, 2009 7:11 am

Hello all,

New to Mint, casual user of Debian.
I noticed the lack of LVM or encryption options in the Mint installer. Inability to use LVM is a show-stopper for me. So, is there *any* way to install Mint on LVM without having to resort to impractical post install whole system hauling methods?
Thank you in advance.

User avatar
DrHu
Level 17
Level 17
Posts: 7537
Joined: Wed Jun 17, 2009 8:20 pm

Re: Mint + LVM?

Post by DrHu » Mon Oct 19, 2009 7:19 am

witchdoc wrote:I noticed the lack of LVM or encryption options in the Mint installer. Inability to use LVM is a show-stopper for me
Not unless it would be included by the distribution as part of the installation process

http://distrowatch.com/weekly.php?issue=20090309
http://forums.linuxmint.com/viewtopic.php?f=29&t=9012
--Is it a big hassle for LVM, don't know..

witchdoc
Level 1
Level 1
Posts: 3
Joined: Mon Oct 19, 2009 6:57 am

Re: Mint + LVM?

Post by witchdoc » Mon Oct 19, 2009 4:16 pm

I don't get it though. Isn't the mint installer based on (some form of) the debian installer internally? Why no lvm/encryption option? Not enough user demand?
It really looks like en elegant and practical distribution I'd love to try but...

User avatar
na5m
Level 1
Level 1
Posts: 2
Joined: Sun Mar 25, 2007 7:53 pm
Location: California

Re: Mint + LVM?

Post by na5m » Sat Nov 13, 2010 4:14 am

witchdoc - i totally sympathize with you. why the Mint installer
doesn't offer LVM choices is baffling to me, too.

fearedbliss
Level 1
Level 1
Posts: 7
Joined: Sun May 31, 2009 4:40 pm
Location: Brooklyn, NY
Contact:

Re: Mint + LVM?

Post by fearedbliss » Sat Mar 05, 2011 1:46 pm

I know exactly how you feel because in every distro that I try, It must have LVM (Unless I'm just playing with it inside a virtual machine). What I do is the same thing that is done with the Ubuntu Desktop Edition (Not Alternate .. alternate has LVM/RAID):

You must have internet connection:

1. Boot from Live Mint CD
2. aptitude update and install lvm2
3. modprobe dm-mod
4. vgchange -a y
5. Install Mint as you normally would. Your LVM partitions should be detected in the Mint installer.
----> Right after you install Mint, but you are still in the Mint CD
6. Mount your / and /boot partitions wherever you want so you can access them.
7. chroot into your install environment
8. aptitude update and install lvm2 again.

and that's it.
Get paid to shop at Market America !

bedge
Level 1
Level 1
Posts: 3
Joined: Fri Mar 11, 2011 2:03 pm

Re: Mint + LVM?

Post by bedge » Fri Mar 11, 2011 2:43 pm

fearedbliss wrote:I know exactly how you feel because in every distro that I try, It must have LVM (Unless I'm just playing with it inside a virtual machine). What I do is the same thing that is done with the Ubuntu Desktop Edition (Not Alternate .. alternate has LVM/RAID):

You must have internet connection:

1. Boot from Live Mint CD
2. aptitude update and install lvm2
3. modprobe dm-mod
4. vgchange -a y
5. Install Mint as you normally would. Your LVM partitions should be detected in the Mint installer.
----> Right after you install Mint, but you are still in the Mint CD
6. Mount your / and /boot partitions wherever you want so you can access them.
7. chroot into your install environment
8. aptitude update and install lvm2 again.

and that's it.
Did you try this?
There is no dm-mod driver available after you boot from the mint-10 iso and install lvm2.

It's a nice idea, but I fear a bit simplistic and not tested.
It would be nice if people tested their ideas, or at least mentioned that it was an untested possibility.

You also forgot that you'd need to rebuild the initrd to include the lvm driver.

AlbertP
Level 16
Level 16
Posts: 6724
Joined: Sun Jan 30, 2011 12:38 pm
Location: Utrecht, The Netherlands

Re: Mint + LVM?

Post by AlbertP » Fri Mar 11, 2011 3:02 pm

While installing something that needs to be in the initrd image, it should be auto-updated.
Registered Linux User #528502
Image
Feel free to correct me if I'm trying to write in Spanish, French or German.

fearedbliss
Level 1
Level 1
Posts: 7
Joined: Sun May 31, 2009 4:40 pm
Location: Brooklyn, NY
Contact:

Re: Mint + LVM?

Post by fearedbliss » Sat Mar 12, 2011 7:16 pm

You should really read more carefully, and test it out.

Line #2 says: aptitude update and install lvm2

meaning to update your package repository's for the Linux Mint Live CD/DVD and then do a aptitude install lvm2.. to install the package...

that provides your Linux Mint installation with the dm-mod module.

Normally you would need to load the dm-mod with modprobe but it just happens that it automagically works.

The initrd is rebuilt once you chroot and install lvm2 as well into the base system of your install.

I always test what I write before I submit, and this is also how I install Linux Mint and Ubuntu on my machines. As for my Debian machines, they already come with LVM support.

Here is my guide that I wrote before that explains this in much greater detail.

http://forums.linuxmint.com/viewtopic.php?f=46&t=67698
Get paid to shop at Market America !

Post Reply

Return to “Installation & Boot”