Questions tagged [btrfs]
A volume-managing, snapshot-supporting copy-on-write (COW) filesystem included in the Linux kernel.
863 questions
0 votes
1 answer
49 views
Determining the compression level used to compress a file with zstd on a BTRFS file system
Compressing files with zstd under BTRFS is possible in the following ways, for example: sudo btrfs filesystem defragment -r -v -czstd -L 3 / The following points are required for this to work: BTRFS-...
0 votes
0 answers
32 views
use rsync --inplace --no-whole-file if target is btrfs with noatime
rsync normally creates a new file at the destination; if successful, changes the names. If the destination is not monted locally, but remote (e.g. via ssh), the source and target files are scanned and ...
2 votes
1 answer
110 views
How to reduce swap space in Debian with full disk encryption and BTRFS
My computer is running Debian 13. During installation of Debian 13, I chose to have full disk encryption and use the BTRFS filesystem (instead of the default ext4 filesystem). The Debian installer ...
2 votes
2 answers
106 views
BTRFS backup using send/receive: exclude files from the backup
Most backup solutions save files that are not needed for individual file restore, e.g. caches. To avoid this, subvolumes can be used, but are restricted to subtrees. Full backup is more arduously then....
1 vote
2 answers
77 views
Atomic snapshots for BTRFS
In the context of backups, a snapshot is atomic to ensure a quite consistent set of files. If two subvolumes are used, e.g. @root and @home, they might differ the longer the time is between the ...
2 votes
1 answer
198 views
Problem mounting btrfs Luks-encrypted Fedora 42 system on Live-USB
Some key facts first about my PC: first SSD with Fedora 42, Kernel 6.15, Luks encrypted, btrfs second SSD with Windows 10 2TB HDD with just storage Bios: Fast Boot is disabled, Windows UEFI mode (not ...
1 vote
0 answers
66 views
Remove missing drive from a btrfs partition that can be mounted only read-only
I have a btrfs volume, containing three devices: sda1, sdb1, sdc1. The data is single, the metadata is raid1. The hard drive /dev/sda is failing, so I can't mount my partition with -o degraded,rw; it ...
0 votes
1 answer
49 views
Can I combine raid1 and dup BTRFS profiles?
In essence I want to have two mirror devices but also two copies of the data on each device. Will something like this work and behave as I expect? btrfs balance start convert=raid1,dup,soft /mnt/sdxn/
2 votes
0 answers
68 views
Btrfs locks the disk when deleting large files
when I am trying to delete large files on btrfs, it takes several minutes, and disk is completely locked during this time: other processes are locked on FS API calls. This makes btrfs unusable on prod ...
2 votes
1 answer
139 views
How to forget running but canceled transactions in a btrfs recovery?
While I am trying to do a really serious filesystem recovery on btrfs (like as e2fsck -f -y would do on an ext[234]), I get similar error messages: ERROR: commit_root already set when starting ...
0 votes
1 answer
83 views
Read-only mount a btrfs image and overwrite UID
The story is that a week ago my local disk faulted, and I dd'd the entire disk device to a full.img file and uploaded it to my OpenMediaVault server. Now I have replaced the disk and reinstalled the ...
0 votes
1 answer
110 views
update-initramfs breaks loader.conf to the point of not booting properly
In preparation for installing Debian on my main Computer, I tried the setup in a Virtualbox first. I use encrypted BTRFS RAID1, which seems kind of special, as I've not found anyone else doing the ...
0 votes
0 answers
110 views
Why mount a directory to itself. mark it make-rshared and mount option inside a container
I’m using BTRFS snapshots for my backups with Restic, and with the help of GenAI I created a script to automate the process. I take snapshots of a subvolume called home, which contains three ...
8 votes
2 answers
1k views
Btrfs read-only file system and corruption errors
Goal I am trying to figure out why my file system has become read-only so I can address any potential hardware or security issues (main concern) and maybe fix the issue without having to reinstall ...
2 votes
3 answers
207 views
How to recognize theme files with btrfs subvolumes in grub
Recently, I modified my whole ext4 system to become a btrfs one, which was successful. Then, I modified the subvolumes to look like the following: (btrfs partition block device): ├─@rootfs (subvolume ...