Nakshatra Linux in a LVM (Logical Volume Manager) Setup ================================================ The installation for EFI systems differs slightly w.r.t non-EFI systems. In this case we will have to create 3 partitions (non-LVM) and 2 partitions in the LVM partition (swap lv and root lv) Example : 1st partition - EFI System partiton (vfat) 2nd partition - boot partition (type ext4) 3rd partition - LVM partition (type 8e) |--- swaplv |--- rootlv After creating the structures you will have to run mkswap to activate the swap lvm partition. NOTE: You can also create the swap partition outside the LVM structure. See below : ============================================================ follow the below sequence of for creating the structures for setup to install the OS. 1. create a pv 2. create a vg 3. create the lv(s) of desired size. 4. create a swap partition and then enable it using mkswap 5. run setup In our example : Let's assume we have a 30GB partition /dev/sda3 of type LVM. Then , # pvcreate /dev/sda3 This will create a physical volume of 30GB. Next we create a volume group or vg. # vgcreate rootvg /dev/sda3 This will create a root volume group called rootvg containing the physical volume or pv /dev/sda3. Next we create a LV or logical volume. ======================================================== A word about using a Logical Volume for SWAP -------------------------------------------------------------- How to create a swap logical volume # lvcreate -L 1G -n swap rootvg where -L = size of the lv -n = name of the lv This will create a logical volume called "swap" in the root volume group. Now , enable it using the mkswap command. # mkswap /dev/rootvg/swap or # mkswap /dev/mapper/rootvg-swap ========================================================== # lvcreate -L 15G -n rootlv rootvg This will allocate 15GB of space for the root logical volume for setup to install to. You can choose your desired lv size accordingly and additional Logical volumes can be created as per requirements. eg: # lvcreate -L 5G -n home rootvg The setup wizard / installer will automatically recognize and activate any pre-existing Logical Volumes on your hard drive(s). These Logical Volumes will be selectable targets for the creation of the filesystems (like /, /usr, /home, /var) etc If you want, you can just allocate all remaining space inside the Volume Group to a Logical Volume. Suppose we want to allocate all available space to our 'home' LV, then this will the command to use # lvcreate -l 100%FREE -n home rootvg ======================================================== The device nodes for the logical volumes are created, and the volumes will be activated automatically when running lvcreate. You can now run setup. For complete documentation about LVM , you can visit the location below: https://www.nakshatrasystems.com/docs.html ==================================================================== -- Team Nakshatra.