Install Mageia 1 on an encrypted LVM file system

Mageia is a new Linux distribution formed by former employees and contributors of Mandriva, a Linux software provider and publisher of a line of Linux distributions of the same name. The first stable release (of Mageia) has since been reviewed for this website (see Mageia 1 review). This article presents the steps necessary to install it on an encrypted LVM file system.

LVM, the Linux Logical Volume Manager, is a disk management system that makes it possible to manage disks in manner not possible with the traditional method. With LVM, for example, you can increase the size of a logical volume, add a new disk to the system, all while the system is online.

Setting up an LVM-based system involves the following steps:

  1. Create a non-LVM partition for /boot.
  2. Initialize the remaining free space of use by LVM. In LVM jargon, this free space is called a Physical Volume (PV).
  3. Create a Volume Group (VG). A VG is a virtual container for one or more PVs. The disk space available on a VG is the sum of the disk space of each member PV. If a VG runs out of disk space, you can attached a new hard disk to the system and add it to the VG.
  4. Carve out Logical Volumes (LV) from the VG. An LV is LVM’s equivalent of a disk partition. Like a VG, you can add or reduce the size of an LV. Lets say, for example, that you have an LV of size 20 GB, mounted at /home, And lets assume that the LV has run out of space, or is about to. You can grow the LV, provided that there is free space on the VG. And you can do this online, that is, while the computer is running, and without having to unmount the volume.

If you are ready to start, download a suitable ISO image from here. The DVD image offers more options, and it is recommended. Burn the image to a DVD and boot the computer from it. Click until you get to the step shown in this image. Though LVM is supported, it is not the default, and the only way to configure it, is to select “Custom disk partitioning.” Click Next.
Mageia LVM setup

This is the installer’s main disk partitioning window. If there are existing partitions, you will have to delete them before you start creating partitions for Mageia. Special considerations will have to be made if there is an existing installation of another operating system on the disk, or if there are more than one disk on the system. When you have the space to install Mageia on, select it and click Create.

Note: For a desktop system with one disk, it is recommended that you configure a boot partition and a Physical Volume. Then configure three logical volumes (/, Swap, and /home) under the Physical Volume.
Mageia LVM setup

The first partition is a non-LVM boot partition, and the mount point should be /boot. A disk space of 300 MB should be more than enough for it. For file system select “Linux native” (ext2). Ok.
Mageia LVM setup

With /boot created, the remaining disk space will have to be initialized for use by LVM. That is another way of saying that a Physical Volume has to be created. Select the remaining free space and click Create.
Mageia LVM setup 4

To use the space as a Physical Volume, select “Linux Logical Volume Manager” from the “Filesystem type” dropdown menu. Enable encryption, and specify the encryption key or passphrase. This key will be required to boot the computer. Ok.
Mageia LVM setup 5

The Physical Volume has been created. The next step is to create a Volume Group. To do that, select the space representing the Physical Volume, and click Add to LVM.
Mageia LVM setup 6

Specify a name for the Volume Group and click Ok.
Mageia LVM setup 7

Related Posts

How to change the default route in Linux This is just a short article that shows how to change the default network route in Linux. Before I show how to do it, hoping that it helps somebody, l...
Manual disk partitioning guide for Deepin 2014 Deepin 2014 is the latest edition of Deepin, a Linux desktop distribution based on Ubuntu. Deepin 2014 is the first version of the distribution that c...
For an editor, Atom uses way too much RAM For some time now I've been using Atom as a replacement for Kate, KWrite and GEdit, depending on the desktop environment I'm using. That's because...
How to dual-boot Kali Linux 1.0.9 and Windows 7/8 on a PC with UEFI firmware The last dual-boot tutorial on Kali Linux I wrote was back in March 2013 (see Dual-boot Windows 7 and Kali Linux), and that was on a computer with Leg...
Deepin Terminal features split screens, search and ssh connections Deepin Terminal is a new custom application from the developers of Linux Deepin, a desktop distribution based on Ubuntu Desktop. It made its debut ...
How to install Java Runtime on Zenwalk 6.2 Zenwalk is a Slackware-based, Linux operating system. Version 6.2, the latest release, does not come with Java Runtime Environment (jre) installed. W...

We Recommend These Vendors and Free Offers

ContainerizeThis 2016 is a free, 2-day conference for all things containers and big data. Featured, will be presentations and free, hands-on workshops. Learn more at ContainerizeThis.com

Launch an SSD VPS in Europe, USA, Asia & Australia on Vultr's KVM-based Cloud platform starting at $5:00/month (15 GB SSD, 768 MB of RAM).

Deploy an SSD Cloud server in 55 seconds on DigitalOcean. Built for developers and starting at $5:00/month (20 GB SSD, 512 MB of RAM).

Want to become an expert ethical hacker and penetration tester? Request your free video training course of Online Penetration Testing and Ethical Hacking

Whether you're new to Linux or are a Linux guru, you can learn a lot more about the Linux kernel by requesting your free ebook of Linux Kernel In A Nutshell.


2 Comments

  1. Well I’ve been distro hopping for a long time, and no people i dont want to use Arch, not yet, and i need to find a way to dual boot this distro with my ubuntu 11.04 installation

  2. Pingback: Links 28/6/2011: Android Activations Surpass Microsoft Windows, Millions of OLPC XOs Noted | Techrights

Leave a Comment

Your email address will not be published. Required fields are marked *

*