Questions tagged [btrfs]
A volume-managing, snapshot-supporting copy-on-write (COW) filesystem included in the Linux kernel.
823
questions
0
votes
0
answers
26
views
BTRFS - tree first key mismatch detected
Every other hour, my system's root partition turns to read-only because of this BTRFS error:
BTRFS error (device nvme0n1p3): tree first key mismatch detected, bytenr=11981209600 parent_transid=3110 ...
0
votes
0
answers
32
views
BTRFS errors after restoring system partition
After restoring my system partition with clonezilla, when I boot I get the partition forced read-only due to BTRFS errors. I'm quite sure the clonezilla partition image is OK
dmesg outputs these ...
0
votes
2
answers
28
views
How can I calculate potential space savings with btrfs compression?
I'm not currently using compression with my btrfs-formatted disk, but am wondering how much space I'd save if I did enable it. Short of actually enabling compression on the disk and comparing the ...
0
votes
1
answer
21
views
Clone Linux OS Btrfs disk and boot with cloned disk 2024?
Disk D is a typical Linux installation. D has EFI (boot) and Btrfs (the rest) partitions. If I have a disk E whose size is > D, how can I clone D on E, and boot with E? Is that possible without too ...
0
votes
0
answers
16
views
changing brtfs disk issues
I just started to have bad magic issue...
currently (and sadly) I have a raid 1 btrfs on:
btrfs fi show /dev/nvme2n1p4
Label: none uuid: beecd604-caa8-45a5-b3cb-f23389e8df97
Total devices 2 FS ...
1
vote
0
answers
36
views
btrfs size issue
According to my calculations, my btrfs should have a total size of 153 GB by totalling the Exclusive component from btrfs qgroup show, but it actually shows up as around 700 GB using other disk usage ...
1
vote
0
answers
50
views
How to unmount an external hard drive in linux?
I have an external Toshiba 2TB hard drive with two partitions.
The relevant partition is of type BTRFS and mounted in my Parrot OS system.
I want to use it for backup purposes but I have a hard time ...
0
votes
0
answers
39
views
Something (presumably, mkswap) corrupted my btrfs partition
I am kind of new to arch (endeavour os particularly), but i am not sure that the problem is in the system. In short, my laptop won’t go to hibernation after it’s lid is closed because it didn’t have a ...
0
votes
0
answers
64
views
btrfs mount error "can't read superblock"
I have a synology nas drive in raid6 that had a drive failed. I replaced the drive and had two other drives kicked off the raid after a power failure crashing the storage pool. I was able to move all ...
0
votes
0
answers
23
views
How to (correctly/efficiently) move a btrfs subvolume containing snapshots?
I have btrfs as the filesystem for configuring root, and configured my system to use snapper for backup.
The /@arch-root/@.snapshots/ subvolume contains several sub-dir each containing several ...
0
votes
0
answers
11
views
list btrfs subvolumes within a specific qgroup (quota0
I need to determine what data would be lost by deleting a specific qgroup. X-Y is that I have a qgroup taking up 50GB of exclusive/unique space that I am suspicious is stale/unreferenced, but don't ...
0
votes
1
answer
45
views
systemd-boot not asking for password?
I run Arco linux, boot with systemd-boot on an LUKS encrypted btrfs root partition drive but it never ask me for a password for the root drive on boot. Not good.
Where should I start looking?
1
vote
1
answer
129
views
What is UUID_SUB?
The output from blkid shows a post called UUID_SUB on my BTRFS-volumes. What does that mean and where can I find more info?
/dev/sdc: LABEL="example" UUID="e7c116be-e3ba-4097-857b-...
0
votes
0
answers
45
views
Question about what Timeshift restores with UEFI system and BTRFS filesystem
I am curious how Timeshift restores will work with my system configuration which includes UEFI and a BTRFS formatted system partition.
First, here's some information about how my system is organized:
...
4
votes
1
answer
150
views
Which filesystems support the C attribute?
On BTRFS filesystems you can disable CoW for a file using the C file attribute, like this:
chattr +C filename
I expected this to work on ZFS too, since it is also a CoW filesystem, but the attribute ...
1
vote
0
answers
79
views
How to correctly restore a backup to corrupted btrfs?
I have btrfs with some amount of corruption that in logs looks like that:
BTRFS warning (device dm-0): csum failed root 261 ino 638264 off 6221824 csum 0x3315c12e expected csum 0xc1eecea6 mirror 1
...
0
votes
0
answers
22
views
What BTRFS mount options to use for long running streaming writes (like cameras)
Background
I have a NAS setup that's streaming camera data directly to disk on a file-an-hour rotation, then a job setup at the start of the day to concatenate the 24 files into a day file that is ...
0
votes
2
answers
64
views
How can I force swap to use all of my BTRFS swap file?
I created a BTRFS swap file using the following command:
$ btrfs filesystem mkswapfile -s 8G SwapFile
However, swap only uses 1GB of the swap file, as shown by the following command sequence:
$ du -...
0
votes
0
answers
27
views
Enable fs-verity at root directory
Can fs-verity be enabled on the root directory of a filesystem or the root directory of a subvolume in btrfs?
0
votes
0
answers
21
views
Is theire any specific caution to take before resize btrfs
Current situation
I have an almost full /home partition, with just 4.4Go remaining space, when my / is more than half empty.
Both of the two partitions are in Btrfs, as you can see:
% lsblk -o NAME,...
1
vote
1
answer
47
views
Automatic Btrfs snapshotting as standard user
Btrfs allows creating subvolumes and taking snapshots as a standard user. However, the tools I have found for automatically creating and managing snapshots at regular intervals (Snapper and Timeshift) ...
0
votes
1
answer
116
views
How can I recover from a failed drive in a BTRFS RAID1 array: devid uuid .... missing
I have a BTRFS disk from a two-disk raid1 array. When I try to mount the drive, I get
sd 0:0:0:0: [sda] Attached SCSI disk
BTRFS info (device sda2): using crc32c (crc32c-intel) checksum algorithm
...
1
vote
1
answer
342
views
BTRFS - How to reclaim unused space in each chunk used and compact the filesystem, basically defrag free space?
How to reclaim unused space from each chunk used by BTRFS filesystem?
Let's say there are lots of chunks partially used from 10% to 50% utilised per chunk, how do I defragment those so that the 90% to ...
0
votes
0
answers
80
views
btrfs subvolume quota and free space for samba share
My btrfs filesystem is mounted under /mnt/btrfs. I then created a subvolume /mnt/btrfs/sv and enabled quotas. After that I set the quota to 10G with btrfs qgroup limit -e 10G /mnt/btrfs/sv and ...
2
votes
0
answers
50
views
I ran `mkfs.btrfs -f` on a disk containing an existing btrfs file system (HDD), can btrfs tools help me recover? If not, what else might I consider?
I did something very stupid yesterday.
I have two physical drives (both HDD), call them X and Y. Both contained (separate) btrfs file systems that extended over their whole size.
Let @x be a subvolume ...
1
vote
0
answers
157
views
Can't mount an encrypted btrfs partition: wrong fs type
Problem
I've a 2TB external hdd which has 2 partitions(a 1.4TB encrypted btrfs and a 500GB exfat).
And I can't mount the btrfs partition, the 500GB exfat is fine tho.
Context
It's cable or socket is ...
0
votes
0
answers
38
views
btrfs device don't mount, probably a raid, how to check it?
When a btrfs device is mounted is easy to know if is a raid or not
btrfs filesystem df /
In this situation the fs don't mount, probably is a raid
sudo mount /dev/sdc2 /mnt/
mount: /mnt: mount(2) ...
1
vote
1
answer
99
views
Custom Kernel requirements for BTRFS root volume
I'm trying to compile a custom kernel with BTRFS support under Ubuntu 18.04. When I compile and install 4.20.70-generic everything's fine and the system starts without any problem. Btw, I can't use ...
2
votes
1
answer
475
views
Equivalent of `btrfs send` and `btrfs recv` for bcachefs
I'm using a setup I consider to be rather fragile and prone to failure involving LUKS, LVM, btrfs, and bcache. I have used btrfs for a long time, and have never experienced any significant issues with ...
0
votes
0
answers
90
views
how do i optimize my BTRFS System for high throughput
I am unable to effective run a high performance program on my linux system due to performance issues. I want to know if there are specific optimization techniques that i can enable to improve
I/O read ...
1
vote
0
answers
123
views
Determining system's unresponsiveness when high IO load
I'm trying to understand why my Fedora 38 (KDE on Wayland) becomes unresponsive for some seconds while there's high IO on the root disk (a SanDisk SSD PLUS 240GB (UF5000RL)).
The root partition is ...
0
votes
1
answer
53
views
BTRFS partition will not mount after power off
I'm running Fedora 38 on a BTRFS partition and just had to do a hard power off due to system hang. Now the system goes into emergency mode on bootup. I'm currently running the fedora live CD but the ...
0
votes
0
answers
30
views
Encrypting multiple new system partitions at once, when they're spread across two physical disks
I am installing Debian. I have two physical disks, and I would like to spread my system partitions across both for better performance. I also want to luks-encrypt my system, and preferably encrypt all ...
0
votes
0
answers
39
views
BananaPI M2 Ultra boot stuck at "Scanning for Btrfs filesystems"
Is there a way to skip this phase? Is it possible to force board to boot from SD card again?
I have BananaPI M2 Ultra v1.1 board and my goal is to get this little device boot Linux OS from its eMMC ...
-1
votes
1
answer
102
views
Truncate command not creating a hole
I am trying to create a file with hole using the truncate command. I read up in some posts and one of the answers in this post says to use truncate command. Filesystem used is btrfs. This is the ...
0
votes
0
answers
98
views
My linux is using 100% of my ssd for no reason
The largest folders I have on the system
WARNING:
Full balance without filters requested. This operation is very
intense and takes potentially very long. It is recommended to
use the balance filters ...
1
vote
1
answer
439
views
Why is it recommended to add nodatacow to a VM image on BTRFS, but using a QCOW2 disk is ok?
As far as I know, it is recommended to disable copy on write for VM images to avoid performance degradation on BTRFS. However, no one recommends against using qcow2 disk image format, despite being a ...
0
votes
0
answers
56
views
Error: extent not found. When booting from btrfs using grub2
I recently attempted to migrate from ext4 to btrfs,
made the @ and @home subvolumes, copied over everything to those subvolumes,
chroot into the installation and run mkinitcpio - P and grub install ...
0
votes
1
answer
41
views
Is it possible to re-number ids of BTRFS snapshots created via Snapper?
It is not big problem, but it will be really better to manage, if I can re-number it and all holes are gone.
So numeration will be again 1,2,3 and instead of 17,99 and so on.
# | Type | Pre # | ...
3
votes
1
answer
2k
views
How do I mount a multi-volume BTRFS filesystem?
I had a btrfs filesystem that consisted of multiple devices. I created it by taking a single device (/dev/sda) and running mkfs.btrfs on it. I then added 3 more devices to that filesystem (/dev/sd{b,c,...
0
votes
1
answer
227
views
Does BTRFS raid 10, support the failure of 2 devices?
According to this answer
The guarantee that BTRFS offers, which makes it looks like regular raid 10, is that each piece of data is guaranteed to exist on two distinct drives, so the filesystem will ...
2
votes
1
answer
528
views
How can I solve my strange no space left on device on fedora?
I run a fedora 38 system on virtual box (7.0). Now I have a "no space left on device" problem.
# dnf list *docker*
Fedora 38 - x86_64 - Updates ...
0
votes
0
answers
24
views
Examine disk usage of file tree, accounting for reflinks on Btrfs [duplicate]
Calculation of disk usage through du entails maintaining a set of all inodes represented by files under the tree, such that hard links will be counted only once with respect to total disk usage.
...
0
votes
0
answers
296
views
BTRFS partition regularly becomes read-only
I have/home mounted on a btrfs partition and it regularly (after a few minutes) becomes mounted read only after which I need to reboot for it to become rw again. journalctl tell me the following:
$ ...
0
votes
0
answers
75
views
Does snapper (creating btrfs snapshots) spin up or keep spun up my hdd?
I am concerned that:
snapper (when creating snapshots) might prevent my drive to go sleep or
when the drives are sleeping that snapper might wake them up?
If yes, how can I prevent that? My goal is ...
0
votes
0
answers
40
views
Is btrfs balance recursive?
I run btrfs balance on a daily basis thanks to a systemd service+timer to try to keep my filesystem healthy over time (is it even a good idea?). The command I use is as follow:
btrfs balance start -...
0
votes
3
answers
76
views
btrfs receive to <mount-point>/?
Suppose I have a BTRFS filesystem A with a read-only subvolume at <mount-point-A>/snaps/good-one. I want to create a BTRFS filesystem B (could be on the same or another machine) which will ...
1
vote
2
answers
317
views
Why does btrfs /home/ partition keep mounting ro on login?
I'm having a problem with my /home mounted on /dev/sdb1 on a btrfs partition. It keeps mounting roeven after I booted from a USB stick, ran check and confirmed that it could be mounted rw. Why would ...
-1
votes
1
answer
751
views
What is the difference between BTRFS RAID1 and BTRFS RAID5 on 3+ devices?
According to "Examining btrfs, Linux’s perpetually half-finished filesystem", BTRFS RAID1 is said to be "guaranteed redundancy—copies of all blocks will be saved on two separate devices&...
1
vote
0
answers
432
views
What's the best method to raid1 a btrfs and efi boot drive?
I have two NVME drives, one of which is already working as I want and I boot off of it: it has two partitions one for EFI, one for the BTRFS Linux filesystem.
Device Start End ...