Mageia Auto-allocate LVM options

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.
Related Post:  Semi-manual LVM disk partitioning guide for Fedora 18

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

Related Post:  What's the point of having 2 scrollbar types in Ubuntu 12.04?

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

Share:

Share on facebook
Facebook
Share on twitter
Twitter
Share on pinterest
Pinterest
Share on linkedin
LinkedIn

Hola! Did you notice that LinuxBSDos.com no longer runs network ads?  Yep, no more ads from the usual suspects that track you across the Internet.  But since  I still need to pay to keep the site running, feel free to make a small donation by PayPal.

Subscribe for updates. Trust me, no spam!

Mailchimp Signup Form

Sponsored links

1. Attend Algorithm Conference, a top AI and ML event for 2020.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.

14 Responses

  1. My PC is Desktop. Core2Due processor 2GB RAM 1TB HDD.
    But for learning this multy boot I used another HDD which has only 160 GB!

    First I Installed the Windows 8.1 according to your suggestion. It was really a very good suggestion.
    On the time of installation Windows 8 will take 350MB as system partition.

    I give partition only 25 GB for Windows 8 and another 25 GB for Windows 7. (Windows 8 and 7 take only 8.5 GB for installing the OS).
    And windows 8 and 7 allow to make only 4 partition. Linux also allows like that. But here I need more than 4 partition. So after installing the first two OS (Win 8 & 7), I used a utility Live CD (Bart_PE) for arranging the other partitions. With the help of that bootable CD I make other partitions. 20 GB as root(/) for Linux Mint17. 18 GB for its Home. 2GB for swap area. Again 20 GB root for Ubuntu14. 18 GB as it’s Home. I give swap area as common for Mint and Ubuntu. (I think we can assign same Home area for Mint and Ubuntu. Then we can save 18 GB space here!) Their is a balance of 20 GB again. I formatted it as NTFS for Windows 8 and 7 user files. This is the partitions I made. Final important.
    >> With your setup, how much of the disk space allocated to the /boot/efi partition is used?

    Ans: I did not manually allocate any space for the boot file of Linux! Because my HDD has no efi partition. Instead, at final step.
    * Device for boot loader installation.
    I simply selected the the option which shows the name and the size of my HDD.
    for eg. dev/sda ATA WDC-WD1600AVDS-6 (160 GB)
    Then continue…

    Thank You.

  2. O.K Thank you very much. Your tutorial helped me do a lot. I have successfully done not triple but quadruple boot (Windows 8, Windows 7, Ubuntu 14, and Linux Mint17) with the help of your tutorial.

    Thank you and for your tutorial.

  3. Hi
    On the 2nd page picture 2 and 7 8 shows “/dev/sda2″ is ‘efi’ partition but only 100 MB. You did not say anything about it!

  4. Hi,

    Your Tutorial is good but much confusing.
    You said “you need to select the “device for boot loader installation.” It should not be /dev/sda, but /dev/sda2”

    The /dev/sda2 is showing as ‘efi’ partition and has only 100 MB! It arise some doubts.

    1. What is this efi partition?
    2. How to create it?
    3. Do we need to create an another 100 MB for that efi partition?
    4. Do we need to disable fast boot of Windows 8 before setting dual boot?

    https://sites.google.com/site/easylinuxtipsproject/windows

    5. Please update your tutorial by clearing this area.

    Thank You.

    1. On a computer with UEFI firmware, the /boot/efi partition is where all the boot loader files are installed. If you have Windows 8 installed, that partition is created during the installation of Windows 8, so whatever size it has is what was allocated to it during the installation of Windows 8.

      Therefore, if you are attempting to dual-boot a Linux distribution and Windows 8, you do not need to create another /boot/efi partition. Make that partition the boot loader device.

      If you are attempting to install a Linux distribution by itself on a computer with UEFI firmware and you are creating partitions manually, one of the file systems available is /boot/efi.

      Hope that clears it up.

      1. INSTRUCTION FOR COMPUTER WHICH HAS NO UEFI FIRMWARE.

        At my first attempt I manually selected the partition (that is created by Windows 8 (350MB) during the installation of Windows 8) for the last process.

        * Device for boot loader installation

        But on that time though Windows 8 option is showing on the boot menu. But when selecting Windows 8, It could not boot and the computer is always restarting.

        Therefore, if anyone attempting to dual-boot a Linux distribution and Windows 8, on a computer WITHOUT UEFI firmware,
        you do not select the last option. (This is important for the computer which has NO UEFI firmware.)
        If there is any wrong selection during installation time, please only select the option which shows the name and the size of your HDD.

        * Device for boot loader installation.
        for eg. dev/sda ATA WDC-WD1600AVDS-6 (160 GB)

Leave a Reply

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

Get the latest

On social media
Via my newsletter
Mailchimp Signup Form

Partner links

1. Attend Algorithm Conference, a top AI and ML event for 2021.
2. Reasons to use control panel for your server.
3. DHgate Computers Electronics, Cell Phones & more.
Hacking, pentesting distributions

Linux Distributions for Hacking

Experts use these Linux distributions for hacking, digital forensics, and pentesting.

Categories
Archives

The authors of these books are confirmed to speak during

Algorithm Conference

T-minus AI

Author was the first chairperson of AI for the U.S. Air Force.

The case for killer robots

Author is the Director of the Center for Natural and Artificial Intelligence.

Why greatness cannot be planned

Author works on AI safety as a Senior Research Scientist at Uber AI Labs.

Anastasia Marchenkova

An invitation from Anastasia Marchenkova

Hya, after stints as a quantum researcher at Georgia Tech Quantum Optics & Quantum Telecom Lab, and the University of Maryland Joint Quantum Institute, I’m now working on superconducting qubit quantum processors at Bleximo. I’ll be speaking during Algorithm Conference in Austin, Texas, July 16 – 18, 2020. Meet me there and let’s chat about progress and hype in quantum computing.