Partner links

Install Mageia 1 on an encrypted LVM file system

Mageia Auto-allocate LVM options

Now, you are set to start setting up the logical volumes. Two actions are required here before you start. One, select the Volume Group you just created by clicking on the tab with its name, then click on Toggle to expert mode. Once those actions are completed, click Create.
Mageia LVM setup 8

Note: If you click on the Auto allocate button on the previous step, the installer will give you three more options. “simple” will give you three logical volumes; one each for /, Swap, and /home. “with /usr” will configure a separate Logical Volume for /usr, besides those created under “simple.” “server” gives you separate logical volumes for /tmp and /var, besides those created under “with /usr.”

The problems with these auto-allocate options are inefficient allocation of disk space, and the numeric names given to the logical volumes. That is why it is better to configure the logical volumes manually.
Mageia Auto-allocate LVM options

You can create the logical volumes in any order, but for this tutorial, the one for /, the root file system, will be created first. Ext4 is the default file system, but you may select another one from the dropdown menu. The default name is “1.” Select a name matching the mount point from the menu. A disk space of 5 GB or 5000 MB is enough to install the system. Ok.

Keep in mind that with LVM, you only need to allocate just enough disk space required to install the system. You can always increase or grow a Logical Volume afterwards. Also, because the Physical Volume has been encrypted, it is not necessary to encrypt the logical volumes.
Mageia LVM setup 9

The second Logical Volume will be for Swap. A disk space of 2 GB is good for it. The default is 4 GB. For “Filesystem type,” select “Linux swap.” Choose a matching name for it. Ok.
Mageia LVM setup 10

The last Logical Volume will be for /home. Allocate the disk space based on your needs. Use the default file system, and select a matching name for it. Ok.
Mageia LVM setup 11

With all three logical volumes configured, click on Done to continue with the rest of the installation. Note that by default, the installer will install GRUB, the default boot loader (LILO is the other option), in the Master Boot Record (MBR ) of the disk. If you are installing this on a disk with an existing installation of another operating system, you may want to consider installing GRUB in the boot partition. After installation, reboot.
Mageia LVM setup 12

Every time the computer is rebooted, the disk encryption passphrase you specified during installation will be needed before the system can boot completely. Do not forget it. Unlike Fedora and other distributions derived from it, and PC-BSD, Mageia will keep you at this window until you specify the correct passphrase. Without it, you will not b able to boot into the system, which means no access to your data. If it makes you happy (it should), your data will not be accessible if the computer is lost or stolen. You may configure up to 7 backup passphrases. How to manage disk encryption passphrases and key slots, is a recommended tutorial, if you wish to configure backup passphrases.
Mageia LVM setup 13

You can have quality articles like this delivered automatically to your Feed Reader or Inbox by subscribing via RSS or email. This website now has a Question and Answer section. Use the commenting system for simple comments, but for more involved assistance, please use the Question & Answers section.

Share:

Facebook
Twitter
Pinterest
LinkedIn

Partner links

Newsletter: Subscribe for updates

Subscribe
Notify of
guest
2 Comments
Inline Feedbacks
View all comments
George
George
12 years ago

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

Get the latest

On social media

Security distros

Hacker
Linux distros for hacking and pentesting

Crypto mining OS

Bitcoin
Distros for mining bitcoin and other cryptocurrencies

Crypto hardware

MSI GeForce GTX 1070
Installing Nvidia GTX 1070 GPU drivers on Ubuntu

Disk guide

LVM
Beginner's guide to disks & disk partitions in Linux

Bash guide

Bash shell terminal
How to set the PATH variable in Bash
Categories
Archives
2
0
Hya, what do you think? Please comment.x
()
x