Install linux Mint Debian Edition Into An LVM

I breify described what an lvm here http://sneekygeekers.com/2014/02/14/linux-and-logical-volume-management/.Some installers have support this without needing any manual configuration, however as of 04/2014 it still needs to be done manually for lmde.

If you haven’t already download the iso from http://blog.linuxmint.com/?p=2577 and burn it to a disk or use a usb device depending on your favourite method.
For this example I am using the 201404 Mate 32bit ISO.

Screenshot
This is what I am starting with. I am going to use /dev/sda3, /dev/sda5 and /dev/sda7, mainly to show that lvm’s can span more then one partition, can be inside and out of an extended which also do not need to be next to each other on the same disk , I could have also chosen another parition on another disk but I didnt have a spare one.


Open a terminal, sudo pvcreate /dev/sda3 /dev/sda5 /dev/sda7
Screenshot-3
sudo pvscan or sudo pvdisplay for more information outputs the physical volumes.
Screenshot-6
Create a volume group with sudo vgcreate my_vol_group , this can be anything, I used my_vol_group
Screenshot-7
sudo vgdisplay will output volume groups
Screenshot-8
Create a logical volume for a partition I used sudo lvcreate -l 15357 -n logical_vol1 my_vol_group , the logical_vol1 is what I chose , you can choose something else , I also used all of the available space because I only want to create one partition
Screenshot-9
sudo lvdisplay outputs the logical volumes.
Screenshot-10
I did sudo mkfs.ext4 /dev/my_vol_group/logical_vol1 you can of course use a different partiton type , however ext4 is the most common. Do the same for any other partitions you wish to create
Screenshot-11
sudo blkid outputs the current partitining layout with uuid numbers
Screenshot-12
Now create /target and mount the partition there (make sure you use /target, it is important later) with sudo mkdir /target && sudo mount /dev/mapper/my_vol_group-logical_vol1
Screenshot-13
Now start the installer. The first dialogue is to select language
Screenshot-14
Timezone
Screenshot-15
Keyboard layout
Screenshot-16
Username, Password and Hostname
Screenshot-17
At the partitioning screen select “Manually mount partitions”
Screenshot-18
Since the partition is already mounted at /target we can go foward
Screenshot-19
Install grub to the MBR unless you know you do not need to
Screenshot-20
Summary of actions
Screenshot-21
Installing , this process could take awhile
Screenshot-22
The installation is paused so we can configure what we need
Screenshot-23
I am not using a chroot here to create the fstab entries , but if you desire to do other tasks at the same time you can do so now. To create the fstab entries sudo pluma /etc/fstab (for mate) or sudo gedit /etc/fstab (cinnamon) and if using alt-f2 instead of sudo use gksudo
Screenshot-24
Using the output of sudo blkid create the entries for / and swap, also add any other entries you desire
Screenshot-25
Once everything you wish is done click foward
Screenshot-26
The installation process continues and finalizes
Screenshot-27
When it is finished reboot when you are ready

Advertisements
Posted in 01Ben, Authors, Computers, Ideas, Interesting, Linux, Linux Mint Debian Edition (LMDE), Uncategorized
One comment on “Install linux Mint Debian Edition Into An LVM
  1. […] have previously written guides on lvm’s and how to install in Linux Mint Debian Edtion.Please note that the linuxmint 17 installer can use the whole disk for an lvm , this guide does not […]

Please feel free to leave a reply.

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Archives
Categories

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 69 other followers

%d bloggers like this: