Installing Pop!_OS with encrypted BTRFS
A modern OS deserves a modern filesystem
In my recent exploration of Pop!_OS 26.04, I made note that I’d really love to see the folks at System76 adopt BTRFS in place of Ext4. A copy-on-write filesystem with compression and snapshotting makes perfect sense for an operating system designed for getting work done. Luckily for us, we can do a tiny bit of hacking to convert a fresh install of Pop!_OS from Ext4 to BTRFS while maintaining encryption!

Installing Pop!_OS
The first step in the process will be performing a fresh install of Pop!_OS. Technically you can do this with an existing installation and the steps will be very similar, but I’d prefer to do this clean. My guide is based on adapting official documentation and manpages to the specifics of Pop!_OS. Feel free to adapt my instructions to fit your particular needs!

When you boot into the Pop!_OS live session via USB, the first thing that should Pop!_up is the installer (was that funny? I thought it was funny). This is the easy part. Proceed through the installation as you typically would, setting your language/keyboard settings, selecting a clean install, and making sure to enable encryption (which is selected by default, so if you’re turning it off... BAD!).
Once the installation completes, we can move on to the filesystem conversion!
Converting ext4 to btrfs
Rather than pressing that shut down or restart button in the completed installer, open up the Disks application and navigate to your drive. For me, it’s a 512GB Kioxia drive. The largest partition/volume on this drive will be a LUKS encrypted root partition. It’ll be locked and you can unlock it by selecting it and pressing the little padlock icon on the bottom left of the Volumes section. The password will be the same one you used during the install, either the same as your login password, or a custom one if you chose to use a separate password.

Once the system unlocks/decrypts that drive, you’ll have access to the contents within, which will be an ext4 partition that needs to be converted. The first step will be to make sure the filesystem is clean. Open up a terminal and proceed with the following:
sudo su
fsck -fvy /dev/mapper/data-root
Next up, the filesystem conversion itself.
btrfs-convert /dev/mapper/data-root
This may take some time, but once it’s complete, it’ll provide you with an important piece of information you need for some steps later on. In the output, the UUID for our new (target) filesystem. Copy just the target UUID to your clipboard.
Now that you’ve converted the filesystem, it’s time to clean it up just a bit. It’s time to mount it with the following (I’ve chosen to enable ZSTD compression as I’ll touch on later):
mount -o compress=zstd:6 /dev/mapper/data-root /mnt
The next step is to delete the snapshot it created when converting from ext4 to btrfs.
btrfs subvolume delete /mnt/ext2_saved
Now it’s time to defragment the filesystem. An optional but sensible step and will ensure the data on disk makes use of ZSTD compression.
btrfs filesystem defrag -v -r -f /mnt
Lastly, “balancing” the filesystem, which essentially compacts data to make use of potential free space that comes from inconsistent block sizes. Most of the time, just a run on metadata is done, but I always prefer to do a full balance as it’s relatively fast on modern hardware with just a single drive/volume. If you were running this on multiple terabytes of data and disks, pass -m.
btrfs balance start /mnt --full-balance
OKAY OKAY... we’re almost done, I promise.
Updating FSTAB and pointing the right fingers
Now that the root filesystem has been converted to BTRFS and cleaned up properly, we need to update the fstab and the bootloader to reflect the changes so your system spins up with the right information.
The first step, modify the fstab on the installed system.
nano /mnt/etc/fstab
That file will probably look something like this...
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
PARTUUID=6ce4c755-19e7-4186-888e-08e94bf23a97 /boot/efi vfat umask=0077 0 0
PARTUUID=a3b707a3-2bf1-4151-aca2-2e10ea039680 /recovery vfat umask=0077 0 0
UUID=8b2ba665-8bb8-4237-ac34-021bf6ae0477 / ext4 noatime,errors=remount-ro 0 1
/swapfile none swap sw,pri=10 0 0
You may notice a familiar line... UUID=. That’s what we’re fixing. Remember that line we copied earlier? That’s the proper UUID we need to put in that space. We also need to make sure we change ext4 to btrfs. I generally also remove noatime and I tend to add compress=zstd:6 (most systems default to 1, but I prefer 6) so we can benefit from BTRFS compression! I also removed errors=remount-ro as BTRFS automatically switches readonly upon encountering errors. Here’s an example of what my corrected fstab looks like:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
PARTUUID=6ce4c755-19e7-4186-888e-08e94bf23a97 /boot/efi vfat umask=0077 0 0
PARTUUID=a3b707a3-2bf1-4151-aca2-2e10ea039680 /recovery vfat umask=0077 0 0
UUID=4800fb71-c03d-4925-96b2-f5bbd28c6a6f / btrfs compress=zstd:6 0 0
/swapfile none swap sw,pri=10 0 0
Next up, let’s make sure the bootloader does what it’s supposed to. For this step, we need to mount the boot partition, chroot into the installed system, and make sure the appropriate BTRFS commands exist! I’ll walk you through it, but essentially what we’re going to do is remount the partition with all the right settings applied, make sure the appropriate system directories get mounted within that space, and then chroot in.
Your boot partition should be a ~4GB FAT partition at the font of your filesystem. The easiest way to locate it is by just selecting it in GNOME Disks and taking note of which “Device” it is. For me, it’s /dev/nvme0n1p1 (this may vary if you use SATA SSDs or HDDs and can look like /dev/sda1, for example). This is what I mounted at /mnt/boot/efi.
cd / && umount /mnt
mount -o compress=zstd:6 /dev/mapper/data-root /mnt
mount /dev/nvme0n1p1 /mnt/boot/efi
for i in /dev /dev/pts /proc /sys /run; do mount -B "$i" "/mnt/$i"; done
chroot /mnt
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
Now that we’re chrooted into the system, we need to install the btrfs-progs package. Make sure you’re connected to the internet, and then run the following:
apt update && apt install btrfs-progs
This will typically update the initramfs but I like to be certain, so from there, we’ll run a command to do exactly that. We’ll also then trigger kernelstub which should sync everything up and update your bootloader.
update-initramfs -c -k all
kernelstub
Aaaaaand, bada-bing, bada-boom!
Booting into the new system
From there, it’s time to experience greatness! Exit the terminal and reboot your system. It should reboot as it would during a standard installation, and when you enter your decryption password upon boot, things should work as if nothing ever happened. The only difference being that you’re now really cool because you use BTRFS!
Thanks for coming along on this little journey! It’s the result of multiple trial-and-error experiences, reading documentation I barely understood, and overall just a fantastic learning experience. I hope it helps anyone who wants something similar!
Documentation referenced for this guide:
System76 Kernelstub Documentation Arch Linux BTRFS manpage Red Hat fstab introduction Debian initramfs-tools manpage Arch Linux chroot manpage








