Install Mageia 1 on an encrypted btrfs file system

Mageia Btrfs 10

Mageia is a new Linux distribution forked from Mandriva. The first release was just last month and it has since been reviewed on this website. (See Mageia 1 review.) Btrfs is a relatively new file system in the Linux kernel, It is a copy-on-write file system with built-in support for, amongst other features, subvolumes (the same functionality provided by LVM, the Linux Logical volume Manager), filesystem-based RAID 0, 1 and 10, online resizing and several other enterprise-grade features.

It is still under heavy development, and not yet recommended for use in a production environment. The man page for btrfs utilities specifically warns that it “… is currently under heavy development, and not suitable for uses other than for benchmarking and review.” It is, however, the default file system on MeeGo, and is slated to be the default on Fedora 16. What that points to is it will also be the default on other Linux distributions before very long. This then is a good time, if your favorite distribution supports it, to start getting used to it.

This tutorial offers the simple steps needed to install Mageia 1 on an encrypted btrfs file system. You do not have to encrypt it, but disk encryption is one of several methods that you may use to boost the physical security profile of your computer.

To start, download an installation image of Mageia from here. You may download any image, Live, Network-install, or a DVD image. Boot the system from the CD or DVD you made from the downloaded image and click until you get to the disk partitioning step. This is a standalone installation, but it is possible to install a btrfs-based Mageia alongside another distribution or operating system in dual-boot fashion.

Related Post:  Install Cinnamon on Fedora 19

The images used in this tutorial were taken from an installation in a virtual environment. The first step is to delete existing partitions, so unless your disk is a brand new one, select each partition and click Delete.
Mageia Btrfs

Now that we have a “clean” disk, time to start creating partitions. Before you start, click Toggle to expert mode. Btrfs is not an option in normal mode, so you need to be in expert mode to be able to complete this tutorial. Once in expert mode, select the disk, then click Create.

Note: When setting up a btrfs-based system, three partitions are recommended. These are for /boot, Swap, and /, the btrfs root.
Mageia Btrfs 1

For the boot partition, a size of 500 MB should be more than enough and the mount point should, of course, be /boot. In this example, I set the file system type to btrfs, but you do not have to use btrfs for /boot. So you may want to ignore my choice here and select Linux native (ext2). If this is the first partition on the disk, the installer will create it as a primary partition, even if you do not specify it here. OK.
Mageia Btrfs 2

With the boot partition created, select the free space and click Create.
Mageia Btrfs 3

The second partition will be for Swap, disk space that the system may use as virtual memory. 2 GB is usually enough for Swap. Set the “Preference” to “Primary” and set the “Filesystem type” to “Linux swap.” For added security, encrypt this partition. OK.
Mageia Btrfs 6

There should be no reason to check for bad blocks, so click OK. If you are curious, it wont hurt to check. Note that this step and the next one will be repeated when you configure the last partition.
Mageia Btrfs 5

Related Post:  Digital Science Studio and the HTTP code: 500, type: java.io.IOException error

The right choice here is OK.
Mageia Btrfs 7

The third and last partition will be for the btrfs root. If Mageia is the only distribution or operating system you are going to install on the disk, assign all available disk space to it. To prevent the installer from creating this as a logical partition, set the “Preference” to “Primary.” Enable encryption and specify and confirm an encryption passphrase. OK.
Mageia Btrfs 8

Partitioning is completed. Click Done to continue with the rest of the installation.
Mageia Btrfs 9

The partitions sans Swap will need to be formatted. Next. Complete the installation and when you reboot, the passphrase you specified for the root partition will be needed to boot into the system. Note that if you wish to add another layer of physical security to the system, you can password-protect the boot loader. The step to do that, if you are installing from a DVD or Network-Install image, is at the Summary step, just before your settings are written to disk.
Mageia Btrfs 10

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:

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 run network ads?  Yep, no more ads from the usual suspects that track and annoy 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 or your favorite cryptocurrency.

  • Bitcoin
  • Ethereum
  • Xrp
  • Bitcoin cash
  • Bitcoin sv
  • Litecoin
  • Binance coin
  • Cardano
  • Ethereum classic
Scan to Donate Bitcoin to bc1qzvlte2m224zkayhdc7fdfjkp2rsgt0l5a496ua

Donate Bitcoin to this address

Scan the QR code or copy the address below into your wallet to send some Bitcoin

Scan to Donate Ethereum to 0x0F4362DFF77F3Ba0Dc637F5f3Eba35D09a2fA60C

Donate Ethereum to this address

Scan the QR code or copy the address below into your wallet to send some Ethereum

Scan to Donate Xrp to r4ggjvL36njsMCYTkJ3S7cTHscPsMsSGQv

Donate Xrp to this address

Scan the QR code or copy the address below into your wallet to send some Xrp

Scan to Donate Bitcoin cash to qrs0dedzp9t55af3nfwypydghp29r0xguy9s20fz2k

Donate Bitcoin cash to this address

Scan the QR code or copy the address below into your wallet to send some Bitcoin cash

Scan to Donate Bitcoin sv to 15K9TLyVDBtLuG9cYvXCX9SSkq9C9oUKHK

Donate Bitcoin sv to this address

Scan the QR code or copy the address below into your wallet to send some Bitcoin sv

Scan to Donate Litecoin to LetJ9QQMb7u2LMZ9Tu6rtHwcBcQFW98fbG

Donate Litecoin to this address

Scan the QR code or copy the address below into your wallet to send some Litecoin

Scan to Donate Binance coin to bnb1ga8trq08ssqepd90v6225nzfgy448pu5pw8gxp

Donate Binance coin to this address

Scan the QR code or copy the address below into your wallet to send some Binance coin

Scan to Donate Cardano to addr1qx2354yw49etstfljpdhwja3ajjlt487lg95vu9ngy2q6vu4rf2ga2tjhqknlyzmwa9mrm997h20a7stgectxsg5p5esq5l7d9

Donate Cardano to this address

Scan the QR code or copy the address below into your wallet to send some Cardano

Scan to Donate Ethereum classic to 0xcD6CC972a2297FcafACDcfE042C55C69516a9264

Donate Ethereum classic to this address

Scan the QR code or copy the address below into your wallet to send some Ethereum classic

Subscribe for updates. Trust me, no spam!

Sponsored links

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

Upcoming events

Leave a Reply

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

Get the latest

On social media
Via my newsletter

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.