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

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

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.

Related Posts

How to protect against image hotlinking in Nginx This short tutorial shows how I configured Nginx to protect against hotlinking of images used in my articles. Protecting against image hotlinking in N...
Fedora 13 review Fedora 13 is the latest update to the Redhat-sponsored, RPM-based Linux distribution. It has long held a reputation of being a testbed for features t...
How to dual-boot Debian 6 and Windows 7 How to dual-boot Windows 7 and Debian 6 is the latest in the series of articles on dual-booting Windows 7 and Linux and BSD distributions. None has b...
How to import a virtual machine image into VirtualBox This post shows how to import a virtual machine image into VirtualBox. Or more correctly, how to create a VirtualBox guest operating system from an ex...
Ubuntu 11.10: Screenshot preview Ubuntu 11.10 Alpha 2 was recently released for the brave and adventuresome to test. I did not do much of a testing, but ran the system in a virtual en...
2 productivity-boosting extensions for GNOME 3 Even with the latest version of GNOME 3 looking a whole lot better than earlier versions, I still find that it is not suitable for my daily desktop co...

We Recommend These Vendors and Free Offers

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.

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 *