Pop!_OS 26.04: installation guide with BTRFS, LUKS encryption and auto snapshots with Timeshift
@ for /, @home for /home and @swap for a swapfile. I will show you how to optimize BTRFS mount options to support compression and how to replace the installer’s swapfile, which does not work on BTRFS, with one in its own subvolume that does not block snapshots. Additionally, the Pop!_OS recovery system will be installed and accessible via the systemd bootloader. Finally, we will configure Timeshift to automatically take system snapshots and practice a rollback.- Last revised
Sections of this page
There is a video of the procedure for Pop!_OS 24.04. The idea is the same for 26.04, but some details differ; they are listed in What is new in Pop!_OS 26.04.
Overview
In this guide, I will show you how to install Pop!_OS 26.04 with the following structure:
- An unencrypted 4 GiB EFI partition for the systemd bootloader, the kernels and the initial RAM disks.
- An unencrypted 4 GiB partition for the Pop!_OS recovery system.
- An encrypted partition (LUKS with LVM) for the root filesystem, formatted with BTRFS:
- a subvolume
@for/, - a subvolume
@homefor/home, - a subvolume
@swapfor the swapfile, mounted at/swap.
- a subvolume
- Compressed swap in RAM (zram) plus the swapfile on disk.
- Automatic system snapshots and easy rollback using Timeshift, which will regularly take (almost instant) snapshots of the system.
This setup works similarly well on other distributions, for which I also have installation guides (with optional RAID1).
What is new in Pop!_OS 26.04 for this guide
Pop!_OS 26.04 is based on Ubuntu 26.04 LTS and ships the COSMIC desktop. For this guide, the changes in the installer matter most (see the 26.04 changes to its backend and frontend):
| Pop!_OS 24.04 | Pop!_OS 26.04 | |
|---|---|---|
| EFI partition | 1 GiB | 4 GiB; the installer refuses anything below 4 GB |
| Swap | 4 GiB encrypted swap partition (random key at every boot) | no swap partition; a swapfile /swapfile in the root filesystem (40% of RAM, at least 4 GiB) |
| Initial RAM disk | initramfs-tools | dracut; update-initramfs still exists as a wrapper |
| Unlocking the LUKS partition | cryptsetup scripts in the initramfs | rd.luks.uuid=… on the kernel command line |
| TRIM on the LUKS partition | off | on (luks,discard in /etc/crypttab), but only since an installer change of 23 November 2026; we add it below if your ISO is older |
| Default kernel options | quiet loglevel=0 systemd.show_status=false splash | the same plus threadirqs |
The swapfile is the one change that needs extra work on BTRFS.
The kernel only accepts a swapfile on BTRFS if it is not copy-on-write, but the installer creates /swapfile with fallocate and mkswap only, so on BTRFS it fails to activate at every boot.
Even a correct swapfile in the root subvolume would get in the way, because BTRFS refuses to snapshot a subvolume that contains an active swapfile.
So we replace it with a swapfile in its own subvolume @swap, which Timeshift leaves alone.
Step 0: General remarks
This tutorial uses Pop!_OS 26.04 from System76, installed via a USB flash device. There is an ISO for systems with NVIDIA graphics and one for everything else; the steps are the same for both. Verify the SHA256 checksum shown on the download page before you write the ISO to the USB flash device. Other versions of Pop!_OS and distributions using the systemd boot manager might also work but may require additional steps (see my other installation guides).
Step 1: Prepare partitions by performing a Clean Install first
To maintain the default partition layout of Pop!_OS,1 the easiest and quickest approach is to perform the installation twice:
- Run the automatic
Clean Installwith encryption. This creates the EFI and recovery partitions as well as the LUKS-encrypted LVM volume group with a logical volume calledrootcontaining the actual system files formatted with ext4. - Perform a second installation using the
Custom (Advanced)option. This allows us to select and format the partitions as needed. While we can customize the partitions, I prefer to keep them close to the defaults and only change the filesystem to BTRFS.
First, run the automatic Clean Install with encryption.
If you want to understand the structure of the installation, keep reading. Otherwise, proceed to the next step to perform the second installation.
[Optional] Understand the default partition layout and installation structure
Open a terminal and examine the default partition layout (alternatively, use GParted):
lsblk
# NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
# loop0 7:0 0 2.6G 1 loop
# sda 8:0 0 223.6G 0 disk
# ├─sda1 8:1 0 100M 0 part
# ├─sda2 8:2 0 16M 0 part
# ├─sda3 8:3 0 222.8G 0 part
# └─sda4 8:4 0 700M 0 part
# sdb 8:16 1 29.3G 0 disk
# ├─sdb1 8:17 1 3.5G 0 part /run/initramfs/live
# ├─sdb2 8:18 1 4M 0 part
# └─sdb3 8:19 1 25.8G 0 part
# zram0 251:0 0 16G 0 disk [SWAP]
# nvme0n1 259:0 0 476.9G 0 disk
# ├─nvme0n1p1 259:1 0 4G 0 part
# ├─nvme0n1p2 259:2 0 4G 0 part
# └─nvme0n1p3 259:3 0 468.9G 0 part
I have installed Pop!_OS on the 476.9 GB NVMe SSD, recognized as nvme0n1 on my machine.
Note that a second SSD and the USB flash device show up as well, so we must identify the correct disk carefully.
Let’s look closer at the partition layout of nvme0n1:
sudo parted /dev/nvme0n1 unit MiB print
# Model: SAMSUNG MZVLQ512HBLU-00B00 (nvme)
# Disk /dev/nvme0n1: 488386MiB
# Sector size (logical/physical): 512B/512B
# Partition Table: gpt
# Disk Flags:
#
# Number Start End Size File system Name Flags
# 1 2.00MiB 4098MiB 4096MiB fat32 boot, esp
# 2 4098MiB 8194MiB 4096MiB fat32 recovery msftdata
# 3 8194MiB 488384MiB 480190MiB
We have the following 3 partitions:
- A 4096 MiB FAT32 EFI partition for the systemd bootloader (note the
boot, espflag). - A 4096 MiB FAT32 partition for the Pop!_OS recovery system (note the name
recovery). - A 480190 MiB partition containing the actual system files.
Unlike Pop!_OS 24.04, there is no swap partition anymore; the installer creates a swapfile instead.
Let’s open the encrypted nvme0n1p3 partition and look at what is inside:
sudo cryptsetup luksOpen /dev/nvme0n1p3 cryptdata
# Enter passphrase for /dev/nvme0n1p3:
lsblk -f /dev/nvme0n1p3
# NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
# nvme0n1p3 crypto_LUKS 2 0be45abc-4d9f-4682-9a51-17432c068ef2
# └─cryptdata LVM2_member LVM2 001 Xq3vT8-0kLd-2Wn5-Hc7R-pY4e-Mf9B-Ja6UzS
# └─data-root ext4 1.0 2e9d6dac-1ee4-419c-b21c-8212262fdb93
The partition is a LUKS2 container (crypto_LUKS, version 2).
By default, when installing with encryption, Pop!_OS uses Logical Volume Management (LVM): the opened container (cryptdata) is a physical volume containing a volume group called data.
Inside this volume group, there is a logical volume called root (hence the name data-root) containing our system files, formatted with ext4.
Since there is no swap partition anymore, root takes up the whole volume group.
While I don’t use LVM features extensively, the installer requires LVM for encryption, and there is practically no performance downside.
Now that we know the partition layout, let’s close everything again: first deactivate the volume group, then close the LUKS container:
sudo vgchange -an data
# 0 logical volume(s) in volume group "data" now active
sudo cryptsetup luksClose cryptdata
ls /dev/mapper
# control
We are ready to proceed with the second install, which follows the same steps but uses BTRFS as the underlying filesystem.
Step 2: Install Pop!_OS using the Custom (Advanced) option
Open Install Pop!_OS from Applications again, and select the region, language, and keyboard layout.
Then choose Custom (Advanced).
You will see your partitioned hard disk (for me, /dev/nvme0n1) as shown in the previous step:
- First partition: Click it, activate
Use partition, activateFormat, set Use as toBoot /boot/efi, and Filesystem tofat32. - Second partition: Click it, activate
Use partition, activateFormat, set Use as toCustomand enter/recovery, set Filesystem tofat32. - Third (largest) partition: Click it.
A
Decrypt This Partitiondialog opens; enter your LUKS password and hitDecrypt. A new device calledLVM datawill appear at the bottom of the screen (you might need to scroll down). Click on this partition, activateUse partition, activateFormat, set Use as toRoot (/), and Filesystem tobtrfs.
If you have other partitions, check their types and usage. Ensure you deactivate using or changing any other EFI partitions.
Recheck everything (ensure the correct use of partitions that have a black checkmark) and hit Erase and Install.
Follow the steps to create a user account and write changes to the disk.
Step 3: Configure BTRFS subvolumes, swapfile and mount options
Open a terminal and switch to an interactive root session (all commands in this step run as root in bash):
sudo -i
Maximizing the terminal window helps when working with the command line.
Mount the BTRFS top-level root filesystem with zstd compression
Open the LUKS container again, activate the volume group and mount the root partition (the top-level BTRFS volume always has id 5) with compression enabled:
cryptsetup luksOpen /dev/nvme0n1p3 cryptdata
# Enter passphrase for /dev/nvme0n1p3:
vgchange -ay data
# 1 logical volume(s) in volume group "data" now active
mount -o subvolid=5,defaults,compress=zstd:1 /dev/mapper/data-root /mnt
ls /mnt
# bin bin.usr-is-merged boot dev etc home lib lib.usr-is-merged lib64 media mnt opt proc recovery root run sbin sbin.usr-is-merged srv swapfile sys tmp usr var
If the LVM group cannot be activated, see this issue for help.
By default, Pop!_OS uses standard BTRFS mount options.
SSDs are detected automatically (ssd mount option), and space_cache=v2 is used (also the default in Fedora).
There is some debate about using noatime instead of relatime.
With relatime, the default, the access time of a file is still written the first time it is read each day.
On BTRFS with snapshots, each of these writes rewrites metadata that would otherwise stay shared with the snapshots; the BTRFS documentation names this as the worst case for relatime.
noatime avoids these writes, but programs that rely on access times stop working properly, for example cleanup scripts using find -atime or mail clients that detect new mail this way.
As the access time is set per mount point, I combine both: noatime for /, where the system files are read over and over again (Pop!_OS also mounts ext4 installations with noatime), and the default relatime for /home, so that the access times of my own files stay intact.
In terms of speed, I haven’t seen a significant difference.
One side effect of noatime on /: systemd-tmpfiles then judges the age of files in /var/tmp by their modification and change times only.
I also use compress=zstd:1 (specifically level 1) for SSDs, as recommended by the Fedora team for workstations.
Remove the installer’s swapfile
The installer has created a swapfile /swapfile at the top level, which does not work on BTRFS (see What is new).
Note its size, because we will create a new one of the same size in its own subvolume later; then delete it:
ls -lh /mnt/swapfile
# -rw------- 1 root root 13G Nov 25 10:12 /mnt/swapfile
rm /mnt/swapfile
The installer uses 40% of the RAM, but at least 4 GiB and at most the size of the root partition minus 20 GiB.
Create BTRFS subvolumes @, @home and @swap
Instead of moving all files into a new subvolume, create the subvolume @ as a snapshot of the top level.
This is instant, copies no data and keeps every file attribute exactly as the installer wrote it:
btrfs subvolume snapshot /mnt /mnt/@
# Create snapshot of '/mnt' in '/mnt/@'
All system files are now in @ as well, so remove the originals from the top level, i.e. everything except @.
ls /mnt/@
# bin bin.usr-is-merged boot dev etc home lib lib.usr-is-merged lib64 media mnt opt proc recovery root run sbin sbin.usr-is-merged srv sys tmp usr var
find /mnt -mindepth 1 -maxdepth 1 ! -name @ -exec rm -rf {} +
ls -A /mnt
# @
Next, create the @home subvolume and move the user folder from /mnt/@/home/ into it:
btrfs subvolume create /mnt/@home
# Create subvolume '/mnt/@home'
mv /mnt/@/home/* /mnt/@home/
Finally, create the @swap subvolume, a mount point for it and a new swapfile with the size you noted above (here 13 GiB).
btrfs filesystem mkswapfile takes care of the requirements for swapfiles on BTRFS (no copy-on-write, no compression) and formats the file as swap:
btrfs subvolume create /mnt/@swap
# Create subvolume '/mnt/@swap'
mkdir /mnt/@/swap
btrfs filesystem mkswapfile --size 13g /mnt/@swap/swapfile
# create swapfile /mnt/@swap/swapfile size 13.00GiB (13958643712)
Verify that everything is in place:
ls -a /mnt/@/home
# . ..
ls -a /mnt/@home
# . .. wmutschl
ls -a /mnt/@swap
# . .. swapfile
btrfs subvolume list /mnt
# ID 256 gen 17 top level 5 path @
# ID 257 gen 18 top level 5 path @home
# ID 258 gen 19 top level 5 path @swap
[Optional] Compress the existing files
A snapshot shares the data of the original, so the files the installer wrote are still uncompressed; only files written from now on are compressed. To compress the existing system files as well, defragment them with compression (this takes a minute or two):
btrfs filesystem defragment -r -czstd /mnt/@
Changes to fstab
We need to update /etc/fstab to:
- Mount
/to the@subvolume with compression andnoatime. - Mount
/hometo the@homesubvolume with compression, keeping the defaultrelatime. - Mount
/swapto the@swapsubvolume. - Use the new swapfile
/swap/swapfileinstead of/swapfile.
Have a look at the fstab the installer has written:
cat /mnt/@/etc/fstab
# # /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=2a345427-756a-454d-943b-6028c9e5cf55 /boot/efi vfat umask=0077 0 0
# PARTUUID=526a5925-7e0f-44ff-9a69-da10eb0f1c5c /recovery vfat umask=0077 0 0
# UUID=f4190602-7a0b-4d6c-aed5-624a17afaf8f / btrfs defaults 0 1
# /swapfile none swap sw,pri=10 0 0
Edit it with a text editor (e.g., nano /mnt/@/etc/fstab) or use these commands, which delete the installer’s lines for / and /swapfile and append the new ones:
ROOTUUID=$(blkid -s UUID -o value /dev/mapper/data-root)
sed -i -E '\|^UUID=\S+\s+/\s+btrfs\s|d; \|^/swapfile\s|d' /mnt/@/etc/fstab
cat >> /mnt/@/etc/fstab <<EOF
UUID=$ROOTUUID / btrfs defaults,noatime,compress=zstd:1,subvol=@ 0 0
UUID=$ROOTUUID /home btrfs defaults,compress=zstd:1,subvol=@home 0 0
UUID=$ROOTUUID /swap btrfs defaults,subvol=@swap 0 0
/swap/swapfile none swap sw,pri=10 0 0
EOF
Your fstab should end like this (your UUIDs will be different):
cat /mnt/@/etc/fstab
# PARTUUID=2a345427-756a-454d-943b-6028c9e5cf55 /boot/efi vfat umask=0077 0 0
# PARTUUID=526a5925-7e0f-44ff-9a69-da10eb0f1c5c /recovery vfat umask=0077 0 0
# UUID=f4190602-7a0b-4d6c-aed5-624a17afaf8f / btrfs defaults,noatime,compress=zstd:1,subvol=@ 0 0
# UUID=f4190602-7a0b-4d6c-aed5-624a17afaf8f /home btrfs defaults,compress=zstd:1,subvol=@home 0 0
# UUID=f4190602-7a0b-4d6c-aed5-624a17afaf8f /swap btrfs defaults,subvol=@swap 0 0
# /swap/swapfile none swap sw,pri=10 0 0
The subvol=@ for / must match the kernel option rootflags=subvol=@, which we add below; at boot, the kernel option decides which subvolume is mounted as /.
Changes to crypttab
The entry for cryptdata in /etc/crypttab needs the option discard, so that TRIM commands reach the SSD through the encryption.
The installer only writes it since 23 November 2026; older ISOs write plain luks.
This command adds discard if it is missing and does nothing otherwise:
sed -i 's/ luks$/ luks,discard/' /mnt/@/etc/crypttab
cat /mnt/@/etc/crypttab
# cryptdata UUID=0be45abc-4d9f-4682-9a51-17432c068ef2 none luks,discard
The installer’s /etc/dracut.conf.d/luks.conf copies the crypttab into the initial RAM disk, which we regenerate below.
Create a chroot environment
To work inside the newly installed OS without booting into it, create a chroot environment.
Unmount the top-level root filesystem (id 5) and mount the subvolume @ to /mnt instead:
umount /mnt
mount -o subvol=@,defaults,compress=zstd:1 /dev/mapper/data-root /mnt
ls /mnt
# bin bin.usr-is-merged boot dev etc home lib lib.usr-is-merged lib64 media mnt opt proc recovery root run sbin sbin.usr-is-merged srv swap sys tmp usr var
Mount the necessary system directories and enter the chroot (commands from System76’s Repair the Bootloader guide):
for i in /dev /dev/pts /proc /sys /run; do mount -B $i /mnt$i; done
chroot /mnt
Now inside the new system, mount everything in fstab; this also checks the file for mistakes:
mount -av
# /boot/efi : successfully mounted
# /recovery : successfully mounted
# / : ignored
# /home : successfully mounted
# /swap : successfully mounted
# none : ignored
If one of the lines reports an error, fix /etc/fstab before you continue.
A hint that systemd still uses an old version of your fstab refers to the live session and can be ignored.
Check btrfs-progs, adjust kernelstub and regenerate the initial RAM disk
dracut only adds its BTRFS support to the initial RAM disk if the btrfs command is available.
The installer keeps the BTRFS tools when it formats a partition with BTRFS, so apt should report that btrfs-progs is already installed; if not, it installs the package:
apt install -y btrfs-progs
Pop!_OS uses kernelstub to copy the kernel and the initial RAM disk to the EFI partition and to write the entry for the systemd bootloader.
Add rootflags=subvol=@ to its kernel options, so that the root filesystem is mounted from the @ subvolume.
kernelstub -a stores the option in /etc/kernelstub/configuration, so it persists across kernel updates, and updates the bootloader entry right away:
kernelstub -a "rootflags=subvol=@"
Then regenerate the initial RAM disk for all kernels.
Ubuntu’s dracut package comes with its own update-initramfs, which runs kernelstub again afterwards, so the new initial RAM disk is copied to the EFI partition (calling dracut directly would skip that):
update-initramfs -c -k all
# update-initramfs: Generating /boot/initrd.img-7.2.15-76070215-generic
# followed by kernelstub's log: it copies the kernel and the initial RAM disk to the EFI partition and writes the bootloader entry, without errors
Check the result:
cat /boot/efi/loader/entries/Pop_OS-current.conf
# title Pop!_OS
# linux /EFI/Pop_OS-f4190602-7a0b-4d6c-aed5-624a17afaf8f/vmlinuz.efi
# initrd /EFI/Pop_OS-f4190602-7a0b-4d6c-aed5-624a17afaf8f/initrd.img
# options root=UUID=f4190602-7a0b-4d6c-aed5-624a17afaf8f ro quiet loglevel=0 systemd.show_status=false splash threadirqs rd.luks.uuid=0be45abc-4d9f-4682-9a51-17432c068ef2 rootflags=subvol=@
lsinitrd -m /boot/initrd.img | grep -E '^(btrfs|crypt|lvm)$'
# btrfs
# crypt
# lvm
lsinitrd -f /etc/crypttab /boot/initrd.img
# cryptdata UUID=0be45abc-4d9f-4682-9a51-17432c068ef2 none luks,discard
The bootloader entry must contain rootflags=subvol=@ (with the NVIDIA driver, you will also see nvidia-drm.modeset=1), the initial RAM disk must contain the dracut modules btrfs, crypt and lvm, and its copy of the crypttab must match /etc/crypttab.
[Optional] Show the boot menu
Optionally, add a timeout to the systemd boot menu to easily access the recovery system (kernelstub keeps this line when it updates the bootloader; it only rewrites loader.conf when it runs with --force-update):
echo "timeout 3" >> /boot/efi/loader/loader.conf
cat /boot/efi/loader/loader.conf
# default Pop_OS-current
# timeout 3
Without a timeout, you can still open the menu by pressing the space bar repeatedly while the computer starts.
Exit the chroot:
exit
Step 4: Reboot, some checks, and system updates
Close the terminal and click Restart Device in the installer app.
Crossing fingers!
If all goes well, you will see a passphrase prompt.
Enter your LUKS passphrase, and your system should boot.
After the welcome screen, go to the settings and:
- Network & Wireless: check your connection, for example deactivate unused interfaces and add IP configuration to used interface or add Wifi password.
- Power & Battery: choose the power profile and check the power saving options (on a server I deactivate them, on a notebook I keep them).
Next, we verify the setup in a terminal:
sudo mount -av
# /boot/efi : already mounted
# /recovery : already mounted
# / : ignored
# /home : already mounted
# /swap : already mounted
# none : ignored
cat /proc/cmdline
# initrd=\EFI\Pop_OS-f4190602-7a0b-4d6c-aed5-624a17afaf8f\initrd.img root=UUID=f4190602-7a0b-4d6c-aed5-624a17afaf8f ro quiet loglevel=0 systemd.show_status=false splash threadirqs rd.luks.uuid=0be45abc-4d9f-4682-9a51-17432c068ef2 rootflags=subvol=@
Check that the optimized mount options are active.
BTRFS-specific options such as compress apply to the whole filesystem, which is why /swap shows them too, whereas the access time options are set per mount point: noatime for /, the default relatime for /home and /swap.
discard=async only appears if TRIM passes through the LUKS container:
sudo mount -v | grep /dev/mapper
# /dev/mapper/data-root on / type btrfs (rw,noatime,compress=zstd:1,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@)
# /dev/mapper/data-root on /home type btrfs (rw,relatime,compress=zstd:1,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@home)
# /dev/mapper/data-root on /swap type btrfs (rw,relatime,compress=zstd:1,ssd,discard=async,space_cache=v2,subvolid=258,subvol=/@swap)
Swap
Check that both the zram device and the swapfile are active:
sudo swapon
# NAME TYPE SIZE USED PRIO
# /swap/swapfile file 13G 0B 10
# /dev/zram0 partition 16G 0B 1000
Pop!_OS uses two swap mechanisms:
- zram (compressed swap in RAM): its high priority (1000) means it is used first and provides fast swap for everyday use.
- The swapfile: lives inside the encrypted partition and is used with lower priority (10) when zram is full.
BTRFS and TRIM
Inspect the BTRFS filesystem and its subvolumes:
sudo btrfs filesystem show /
# Label: none uuid: f4190602-7a0b-4d6c-aed5-624a17afaf8f
# Total devices 1 FS bytes used 20.91GiB
# devid 1 size 468.92GiB used 24.02GiB path /dev/mapper/data-root
sudo btrfs subvolume list /
# ID 256 gen 96 top level 5 path @
# ID 257 gen 96 top level 5 path @home
# ID 258 gen 95 top level 5 path @swap
On an SSD or NVMe drive, TRIM tells the drive which blocks are free.
It only reaches the drive if every layer passes it on; check that the LUKS container and the logical volume support it (the columns DISC-GRAN and DISC-MAX must not be 0B, unless you have left out discard in /etc/crypttab on purpose):
lsblk --discard /dev/nvme0n1
# NAME DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
# nvme0n1 0 512B 2T 0
# ├─nvme0n1p1 0 512B 2T 0
# ├─nvme0n1p2 0 512B 2T 0
# └─nvme0n1p3 0 512B 2T 0
# └─cryptdata 0 512B 2T 0
# └─data-root 0 512B 2T 0
Besides discard=async, a weekly fstrim.timer trims all filesystems; make sure it is enabled:
systemctl is-enabled fstrim.timer
# enabled
If it is not, enable it with sudo systemctl enable --now fstrim.timer.
System updates
Finally, update the system including the recovery partition and flatpak applications:
sudo apt update
sudo apt full-upgrade
sudo apt autoremove --purge
sudo apt autoclean
pop-upgrade recovery upgrade from-release
flatpak update
I also recommend updating firmware:
sudo fwupdmgr get-devices
sudo fwupdmgr get-updates
sudo fwupdmgr update
Reboot once more:
sudo reboot
Step 5: Snapshot tools
With BTRFS set up with @ and @home subvolumes, you can now use various snapshot and backup tools:
- Timeshift: A popular GUI tool for system snapshots.
Note that Timeshift requires the
@and@homesubvolume naming convention we set up in this guide. - Btrbk: A powerful tool for snapshot management and backup with support for incremental send/receive to remote locations. Personally, I prefer Btrbk for its flexibility and send/receive capabilities.
- Snapper: Another snapshot management tool, popular in openSUSE.
Whatever you use, leave @swap out: BTRFS cannot snapshot a subvolume with an active swapfile, and there is nothing in it worth keeping.
We will now focus only on Timeshift as it is (in my opinion) the most user-friendly one.
Install and configure Timeshift
Install Timeshift (it brings cron, which runs its scheduled snapshots) and configure it via the GUI:
sudo apt update
sudo apt install -y timeshift
Go to Applications and search for Timeshift.
- Select BTRFS as the Snapshot Type; click Next.
- Select your BTRFS system partition as the Snapshot Location; click Next. If Timeshift warns “Selected device does not have BTRFS partition”, ignore it; this is a bug with encrypted devices.
- Select Snapshot Levels (my recommendations):
- Activate Monthly and set to 2.
- Activate Weekly and set to 3.
- Activate Daily and set to 5.
- Deactivate Hourly.
- Activate Boot and set to 5.
- Activate Stop cron emails for scheduled tasks.
- Click Next.
- User Home Directories: Include the
@homesubvolume (not selected by default). While you usually restore only@, having home backups is convenient. - Click Finish.
- Create a manual snapshot named “Clean Install” and exit Timeshift.
Timeshift will now manage snapshots automatically.
Verify snapshots
In a terminal, you can verify the snapshots:
sudo btrfs subvolume list /
# ID 256 gen 160 top level 5 path @
# ID 257 gen 157 top level 5 path @home
# ID 258 gen 95 top level 5 path @swap
# ID 259 gen 153 top level 5 path timeshift-btrfs/snapshots/2026-11-25_10-37-12/@
# ID 260 gen 153 top level 5 path timeshift-btrfs/snapshots/2026-11-25_10-37-12/@home
Step 6: Practice recovery and system rollback
Let’s simulate a system failure to practice recovery. We have snapshots to roll back to (in the subvolumes at the top level).
Delete the /etc folder (simulating disaster) and restart:
sudo sh -c 'rm -rf /etc; reboot'
Both happen in one command, because sudo stops working once /etc/sudoers is gone.
The system will not boot properly anymore, so boot into the Pop!_OS recovery entry of the systemd bootloader instead (this is why I set the timeout to 3 seconds).
I will show you two ways to roll back: with Timeshift and manually. Both end with the same step, refreshing the boot files. For both, open a terminal in the recovery system and unlock the encrypted partition:
sudo -i
cryptsetup luksOpen /dev/nvme0n1p3 cryptdata
# Enter passphrase for /dev/nvme0n1p3:
vgchange -ay data
# 1 logical volume(s) in volume group "data" now active
Rollback with Timeshift
- Install Timeshift in the recovery system:
apt update apt install -y timeshift - Go to
Applicationsand open Timeshift. - Select BTRFS, and choose your disk. If Timeshift warns “Selected device does not have BTRFS partition”, ignore it; this is a bug with encrypted devices.
- Select a snapshot and click Restore.
Restore only
@, unless you also want to roll back your home directories. - Timeshift will restore the system subvolume. Close Timeshift without rebooting and continue with Refresh the boot files.
Rollback manually
- Mount the top-level root filesystem:
mount -o subvolid=5 /dev/mapper/data-root /mnt ls /mnt # @ @home @swap timeshift-btrfs - Move the broken subvolume out of the way:
mv /mnt/@ /mnt/@.broken - Find a valid snapshot in
timeshift-btrfs/snapshots/:ls /mnt/timeshift-btrfs/snapshots # 2026-11-25_10-37-12 - Create a snapshot of the good subvolume as the new
@. A snapshot instead ofmvleaves the Timeshift snapshot intact:btrfs subvolume snapshot /mnt/timeshift-btrfs/snapshots/2026-11-25_10-37-12/@ /mnt/@ - Unmount the top-level root filesystem and continue with Refresh the boot files:
umount /mnt
Refresh the boot files
Unlike with GRUB, the kernel and the initial RAM disk that systemd-boot starts live on the EFI partition, outside of any snapshot.
If the snapshot is older than the last kernel update, the kernel on the EFI partition is newer than the modules in the restored @, and the system boots without them (no network, no graphics) or not at all.
So after every rollback, let kernelstub copy the kernel and the initial RAM disk of the restored snapshot to the EFI partition (if they have not changed, this does no harm), then reboot:
mount -o subvol=@ /dev/mapper/data-root /mnt
for i in /dev /dev/pts /proc /sys /run; do mount -B $i /mnt$i; done
chroot /mnt sh -c 'mount /boot/efi && kernelstub -v'
reboot
There is no need to regenerate the initial RAM disk: /boot is part of @, so the restored snapshot brings a kernel and an initial RAM disk that match its modules, and kernelstub copies the newest of them.
kernelstub also keeps the previous kernel as a second entry in the boot menu (Pop_OS-oldkern).
After a manual rollback, delete the broken subvolume once you are back in your system to save space. It lives at the top level, so mount that first:
sudo mount -o subvolid=5 /dev/mapper/data-root /mnt
sudo btrfs subvolume delete /mnt/@.broken
# Delete subvolume 256 (no-commit): '/mnt/@.broken'
sudo umount /mnt
FINISHED! CONGRATULATIONS!
Check out my Pop!_OS post-installation steps.
If your disk already has the partition layout of a previous Pop!_OS 26.04 installation, you can skip this step. A disk with the layout of Pop!_OS 24.04 or older does not qualify: its 1 GiB EFI partition is smaller than the 4 GB the 26.04 installer requires. ↩︎