Mint, Tutorials/Tips, Ubuntu

How to install Ubuntu 13.10 and Linux Mint 16 on a Btrfs filesystem

This tutorial presents a step-by-step guide on how to install Linux Mint 16 and Ubuntu 13.10 on a Btrfs filesystem.

Btrfs is CoW (Copy on Write) filesystem with support for features like read-only and writable snapshots, subvolumes, incremental backups, deduplication, and multiple device support. You may view the complete list of features here.

The screen shots used in this tutorial were taken from a test installation using Ubuntu 13.10, but because it shares the same installation program with Linux Mint 16, you can follow along to install the same btrfs system on that edition of Linux Mint.

To start, boot the computer you want to use from the installation media of your favorite distribution. When you start the installer, click until you get to the Installation type step. Since btrfs is not the default filesystem used by any of the automated disk partitioning options, every step of this tutorial will have to be performed manually. That means selecting Something else is the only option at this step. Click Continue.
Ubuntu 13.10 something else

That should open the installer’s Advanced Partitioning Tool’s window. At this step, all disk and disk partitions detected by the installer should be listed. On the system used for this tutorial, I had existing partitions that I didn’t care to keep, so they had to be deleted. If this is the case with your system, select a partition, then click on the “-“ button to delete it. If you wished to install the btrfs system alongside the other distribution or operating system on the target hard disk drive, select a partition that has enough space and resize it. Then use the recovered disk space to create the partitions for the btrfs system.
Ubuntu 13.10 advanced partition tool

Related Post:  The best hardware for gaming performance of 2017

This is what that window looks like after all the partitions have been deleted. Now we are ready to create the partitions needed to install the btrfs system. To begin, select the free space and click on the “+” button. This step will have to be repeated three times.
Ubuntu 13.10 create partition

This is the partition setup window. You just need to specify the size of the partition, whether it’s a primary or logical partition, the filesystem, and the mount point. For an installation of Ubuntu 13.10 and Linux Mint 16 on a btrfs filesystem, you need to create at least three partitions – one each for /boot, Swap and a btrfs volume. For this tutorial, I chose to create just three partitions and in that order.
Linux Mint 16 partition editor

For the first partition, which will be mounted at /boot (that’s the value for “Mount point”), the size can be 500 MB or less. On a default installation of Ubuntu 13.10 and Linux Mint 16, the contents of the boot partition takes up about 62 MB of disk space. But be generous here, as resizing this partition after installation is not the type of stuff you want to spend time doing. For “Use as,” select ext2 or ext4. OK.
Ubuntu 13.10 create boot partition

The second partition will be used for Swap space. A size of 2000 MB (2 GB) is enough for it. Be sure to select “swap area” from the “Use as” menu. OK.
Ubuntu 13.10 create btrfs root

Related Post:  Why ProtonMail is more secure than Gmail

The third and final partition will be used for the btrfs volume, so select “btrfs journaling file system” under the “Use as” combo menu. You may assign all the available disk space to this partition or whatever you feel is needed to install the system. Note that for a default installation of Linux Mint 16 and Ubuntu 13.10, the recommended disk space is around 6 GB. But I’m sure you have more disk space than that, so assign it the right value. Then select “/” for “Mount point.” OK.
Linux Mint 16 create btrfs home

Back to the main installer window, all the newly created partitions should be listed. Click Install Now to continue with the rest of the installation process.
Linux Mint 16 install btrfs filesystem

After installation, it’s important to remember that btrfs is different from other Linux journaling filesystems, like ext3 and ext4, and LVM, the Linux Logical Volume Manager. If you recall, the btrfs partition was mounted at / during installation, but that is a consequence of how the installer works. In btrfs, we refer to subvolumes, so on a running btrfs system derived from this particular setup, there should be two subvolumes by default- / and /home. If you type sudo btrfs subvolumes list /, you should see a listing of the subvolumes. The next article on this subject will be on how to manage a btrfs file system.

Subscribe to

Subscribe to receive the latest articles in your Inbox

I agree to have my personal information transfered to MailChimp ( more information )

Trust me, you'll not be spammed...

Please share:

We Recommend These Blockchain Conferences and Servicess

Register now for Blockchain & Decentralized Tech SuperSummit, international conference on blockchain technnology in Dallas, TX (USA), October 30 - November 2, 2018

Learn how to trade cryptocurrencies profitably using technical and fundamental analysis at BDT SuperSummit

Best binary auto trading software reviews by

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).

One Comment

  1. In case anyone need more info on installing Ubuntu on BTRFS and creating a basic snapshot, check this out:

Leave a Comment

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