Save 10%Pay yearly on any plan. 6% half-yearly, 3% quarterly. Help centreWhatsAppTelegram TeamsOpen a ticket

Debian 13's Rescue Mode for Btrfs: What Changed and How to Use It

Debian 13 "trixie" lets the installer's rescue mode open Btrfs systems that use subvolumes. What that fixes, how to start rescue mode, and how to do it by hand.

3 min readBy Swati

Reviewed by the AmazingRDP technical team

Debian 13 rescue mode for Btrfs

Test a new Debian release or a recovery plan on a clean machine: a Linux VPS with root access. See Linux VPS from $6.99

Debian 13, "trixie", was released in August 2025. One of the smaller changes in its installer matters a great deal on the day a system does not start: the installer's rescue mode can now open Debian systems that were installed on Btrfs with subvolumes. Before, it could not find the system on such disks, and you had to do everything by hand.

The problem it solves

Btrfs is a file system with snapshots and built-in checksums. It can divide one partition into subvolumes, which act like separate file systems. Many installations put the system itself into a subvolume named @ and home folders into @home, because snapshot tools expect that layout. Debian's live images use the Calamares installer, which sets Btrfs up this way.

The classic Debian installer's rescue mode mounted the partition's top level, saw only the folders @ and @home instead of a system, and stopped. In Debian 13 it recognises the layout and mounts the right subvolume as the root file system.

How to use rescue mode

  1. Start the computer from Debian 13 installation media (USB stick or ISO).
  2. In the boot menu choose Advanced options, then Rescue mode.
  3. Answer the questions for language, keyboard and network, as in a normal installation. Nothing is installed.
  4. When asked for the root file system, choose the partition that holds your Debian system.
  5. Choose Execute a shell in that partition. You are now working inside your installed system.

Typical repairs from there:

grub-install /dev/sda
update-grub
passwd
apt --fix-broken install

The first two lines reinstall the boot loader (use your own disk name, and on UEFI systems make sure the EFI partition is mounted, which rescue mode offers to do). The third sets a new root password; the fourth repairs a half-finished package installation.

The same by hand

From any live system, or when rescue mode does not recognise your layout, mount the subvolumes yourself. With the Btrfs partition at /dev/sda2 and the EFI partition at /dev/sda1:

sudo mount -o subvol=@ /dev/sda2 /mnt
sudo mount -o subvol=@home /dev/sda2 /mnt/home
sudo mount /dev/sda1 /mnt/boot/efi
for d in dev proc sys run; do sudo mount --rbind /$d /mnt/$d; done
sudo chroot /mnt

To see which subvolumes exist first:

sudo mount /dev/sda2 /mnt
sudo btrfs subvolume list /mnt
sudo umount /mnt

Go back to a snapshot

If the system broke after an update and you have snapshots (made by a tool such as Snapper or Timeshift), you can start from one. List the subvolumes as above, find the snapshot, and mount it in place of @ to look inside. Snapshot tools have their own "roll back" command, which is the safer way once the system starts again.

Check the file system itself

sudo btrfs check --readonly /dev/sda2
sudo btrfs scrub start -B /mnt

The first runs on an unmounted partition and only reports. The second reads all data on a mounted one and verifies the checksums. Do not use btrfs check --repair as a first step; on a damaged file system it can make things worse. Copy your data off first.

On a server

A VPS or dedicated server has no USB port to plug into. Its equivalent is the provider's rescue system, or mounting the Debian ISO through the control panel's console; the steps after that are the same. On a Linux VPS a snapshot or backup from the provider is often the faster way back.

Snapshots are not backups

A snapshot lives on the same disk as the data. It protects against a bad update or a deleted file, not against a dead disk. Keep a copy elsewhere. Related guides: Linux data recovery tools, mount and automount drives in Linux, clone Ubuntu Server with Clonezilla and why Ubuntu freezes.

Questions

What is rescue mode in the Debian installer?

A mode of the installation media that opens an installed system for repair without installing anything.

What changed for Btrfs in Debian 13?

Rescue mode recognises systems installed on Btrfs subvolumes, such as those set up by the Calamares installer, and mounts the right one as root.

How do I mount a Btrfs subvolume by hand?

Use the subvol option: sudo mount -o subvol=@ /dev/sda2 /mnt.

Is a Btrfs snapshot a backup?

No. It is on the same disk. Keep a separate copy of important data.