how to create an encrypted lvm partition of disk manually

This post will show only an encrypted lvm partition creation only. I choose install option at the time of installation from dvd. If you find anything inconsistence with the steps please inform me asap. The images and names of the disk and partitions may vary.

Step 1 : choose the manual option by clicking manual as shown in the image below for the partitions of the disk :



Step 2 : click the disk to start partitioning :



Step 3 : create a new partition table on the selected device :



Step 4 : click free space to create partitions :



Step 5 : choose create new partition :



Step 6 : enter the desired partition size for /boot :



Step 7 : select primary for the partition type :



Step 8 : select beginning for the new partition :



Step 9 : click Use as and change it to Ext2 file system; select /boot for the mount point & click done setting of the partition.



Step 10 : again select the free space to create an encrypted volume :



Step 11 : create a new partition as shown in step 5.

Step 12 : enter the desired partition size for encrypted volume as shown in step 6 :

Step 13 : select primary location for the new partition as shown in step 7 :

Step 14 : select beginning for the new partition as shown in step 8 :

Step 15 : select physical volume for encryption :



Step 16 : click done setting of the partition :



Step 17 : click configure encrypted volume :



Step 18 : click yes to write changes to the disk :



Step 19 : click yes to erase the data on the encrypted partition :



Step 20 : create a password with atleast 20 characters of letters, numbers and punctuation marks :



Step 21 : re-enter the password provided in step 20 :



Step 22 : click the encrypted volume to add support for logical volume manager :



Step 23 : select physical volume for lvm :



Step 24 : click done setting of the partition :



Step 25 : click configure the logical volume manager :



Step 26 : create volume group :



Step 27 : create a volume group name :



Step 28 : select the device [ aestrik indicates that device is selected ] and click continue :



Step 29 : create a logical volume :



Step 30 : select the volume group in which you want to create volumes :



Step 31 : create volume name. be careful with the creation of volume names. i choose the generic names of the partition types in linux. e.g. : usr, var, tmp, swap, etc.. it will help you a lot from step to step :



Step 32 : enter the desired size for the logical volume :



Step 33 : click finish after you have created usr, var, tmp, swap, root and home partitions with the desired partition sizes.



Step 34 : cross-verify the details of the created volumes :



Step 35 : click the logical volume to change the partition settings :



Step 36 : select use as and change to Ext3 journalising file system; change mount option :



Step 37 : repeat steps 35 and 36 for the logical volumes.

Step 38 : select finish partitiong and write changes to the disk :



Step 39 : select yes to write changes to the disk :



Step 40 : install the base system, users and passwords, grub, etc..

Step 41 : after the installation is completed, and hopefully nothing goes wrong, when you boot into your newly installed system, it will prompt for password created in step 20.



The End.
 
 
Creative Commons License
This work by © 2012 maniac.vardhan is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

0 comments :: how to create an encrypted lvm partition of disk manually

Post a Comment