Questions tagged [btrfs]

A copy-on-write (COW) file system developed by Oracle included in the Linux kernel.

Filter by
Sorted by
Tagged with
8 votes
2 answers
639 views

Is it possible to explicitly retrieve full file contents with bad checksum on a btrfs filesystem?

Imagine a situation when a file became corrupted on a single device Btrfs. And in this case file contents are needed as is including corrupted bits. As stated in man page for mount: nodatasum ...
3 votes
4 answers
1k views

How to check disk usage for folders containing reflinked files on XFS?

XFS supports copy on write (CoW), so it is not entirely clear what du will say if some of the bytes are shared across files. I'd like to find a way to check how much disk space a folder uses, not ...
0 votes
0 answers
20 views

What things are not saved in a btrfs snapshot?

I'm using BTRFS for my root partition and manage its snapshots with Snapper. I decided to create subvolumes for /var/tmp, /var/cache and /var/log as these are constantly changing its data which is not ...
1 vote
1 answer
22 views

Increase the disk size on Debian 11 with btrfs filesystem

I have a Debian 11 system on VirtualBox VM, and I am now trying to increase its disk size. I create this Debian 11 with btrfs file system for my main division at the beginning, so right now, it should ...
4 votes
3 answers
4k views

Move folder to BTRFS sub-volume

I recently formatted my /home partition using BTRFS, but since it was my first touch with this FS, I didn't know about sub-volumes. Yesterday I reinstalled my Linux Mint and selected to mount my ...
20 votes
5 answers
21k views

Is there a way to monitor progress of a btrfs rebalance?

I'm replacing a failed harddrive in a mirrored btrfs. btrfs device delete missing /[mountpoint] is taking very long, so I assume that it's actually rebalancing data across to the replacement drive. ...
0 votes
2 answers
43 views

How to create heredocs on RAM instead of disk?

Saving following script in a file: cat <<EOF | wc -l $HOME abc $(hostname) EOF and executing it gives the following error: $ ./a.sh ./a.sh: line 1: cannot create temp file for here-document: ...
1 vote
0 answers
37 views

Why so much btrfs-send data for reflinks

I'm experiencing a very weird Btrfs "send" issue with file reflinks, and after so many trials, I found the details: First, I created a subvolume called "1": btrfs subvolume create ...
5 votes
1 answer
1k views

Restore single files from a btrfs snapshot without doing a full copy

Background I maintain a series of hourly snapshots on my btrfs filesystem using btrbk. The subvolume and snapshots are stored like this (names shortened to make it easier to follow): /@vol ...
0 votes
1 answer
15 views

Btrfs Send Snapshots Out of Order? (asynchronous replication)

I found this webpage on the internet discussing sending Btrfs incremental snapshots out of order. https://arstechnica.com/civis/viewtopic.php?f=16&t=1226135 From there, I've searched all over the ...
0 votes
0 answers
17 views

"Unable to retrieve fs info" when resizing btrfs partition

I have a partition formatted with btrfs and mounted in /home and in / (according to the fstab file and lsblk -f). I want to shrink the filesystem, but both of the following commands return ERROR: ...
8 votes
3 answers
8k views

`btrfs check --force` without --repair on a mounted device

I try to check the device containing /home and see: $ sudo btrfs check --force /dev/vg_svelte/home WARNING: filesystem mounted, continuing because of --force ERROR: cannot open device '/dev/vg_svelte/...
0 votes
1 answer
42 views

can't btrfs send from a read-only filesystem

So, I corrupted my btrfs root filesystem a little. Now when I boot, mounting root read-write fails and the filesystem gets mounted read-only instead. Every file I try to read seems normal, so I assume ...
1 vote
0 answers
21 views

How to investigate "ghost usage" of BTRFS?

It looks like I have about ~31 GByte free space, but when I try to copy a 2 GByte sized /usr dir to a "testing" directory it failed due to no space left on device: node02:~ # cd /usr node02:/...
0 votes
1 answer
22 views

does ZFS/BTRFS RAID knows that only data needs to be synced?

AFAIK plain MD software ex.: RAID1 doesn't know that it should only sync real data from one disk to another, so it syncs all the blocks unneededly, even if there is no real data on the given block. ...
2 votes
1 answer
290 views

(Probably) Corrupted LUKS Header, Restoring Header does not work

I tried everything I was able to find online. Hours of research since yesterday ;( I found no one struggling with the errors I'm facing, except from GitLab (error code -1 instead of -4 I'm getting), ...
3 votes
1 answer
1k views

Btrfs, checksum corruption

I have Btrfs setup on 3 disks with metadata and data in RAID1. But now I have a checksum error which it cannot recover. The checksum is the same on both copies and only differs from the expected ...
56 votes
6 answers
14k views

Why is cp --reflink=auto not the default behaviour?

Why is cp --reflink=auto not the default behaviour? Could it cause any harm to enable it? Is it possible to enable it at compile time, so it is used all across the system, not just in interactive ...
13 votes
4 answers
4k views

How to verify a file copy is reflink/CoW?

I'm playing with btrfs, which allows cp --reflink to copy-on-write. Other programs, such as lxc-clone, may use this feature as well. My question is, how to tell if a file is a CoW of another? Like for ...
9 votes
5 answers
4k views

How to find out if a file on btrfs is copy-on-write?

I know that cp has a --reflink option to control full copies vs. copy-on-write "copies". On btrfs, can I use ls (or some other command) to find out whether a file shares (in a copy-on-write senses) ...
6 votes
6 answers
5k views

What is the difference between btrfs raid1 and btrfs -m dup -d dup on a single device

I've been using btrfs for about two years on multiple devices. I am planning to test some btrfs configurations on a HDD (Single platter) which has non reliable sectors. A dozen of sectors on the HDD ...
0 votes
0 answers
19 views

BTRFS quota for a user vs. dedup/compression?

I want the user to be able to use 1 GByte on a BTRFS mountpoint. If he has 1 GByte on its ex.: FAT32 FS and copies that 1 GByte to the BTRFS than that counts as 1 GByte. But in the background I have ...
1 vote
1 answer
46 views

How to restore free Space after deleting virtual machine disk?

Hello everyone i wish you all doing good. So lately i was working on a Manjaro 21.2.5 host on latest updates with a Windows 11 guest Vm running on qemu/kvm with libvirt and a dynamique size virtual ...
0 votes
1 answer
226 views

How to display btrfs snapshot size

I have quite a lot of snapshot on some btrfs volume, an I would like to know how much each snapshot take as space, so I will know when and were there is important changes. sudo btrfs subvolume show /...
3 votes
1 answer
3k views

BTRFS: Adding new hard drive as /home after installation

My SSD is only 110 GB in size, so moving the old /home (btrfs) to a new /home (also btrfs) on a bigger HDD is likely a good idea. Is it possible to combine btrfs-subvolumes as separate subvolumes on ...
0 votes
1 answer
104 views

Best way for rock solid system snapshots on fedora

What is a simple way to backup my system packages daily so I can rollback to the exact same state should I mess up (System files only not /home) Ideally I would be able to restore from the Fedora ...
3 votes
1 answer
1k views

How to properly setup snapper timeline snapshots in debian buster?

I recently created a btrfs partition. Now I want to use snapper to perform automatic snapshots. The partition is used as an archive, as a backup disk for my main office pc. Generally speaking, the ...
1 vote
0 answers
111 views

How to get a Btrfs filesystem fragmentation count?

The btrfs check command output doesn't mention how many files are fragmented like e4defrag -c or e2fsck with ext4 filesystems. What command can give the number of fragmented files on a whole Btrfs ...
8 votes
2 answers
10k views

Unable to mount btrfs filesystem "open_ctree failed"

Having trouble mounting a btrfs filesystem. Originally created on a server running xbian. Trying to mount on an up-to-date OpenSUSE 42.2 server. Complains about unsupported feature 0x10, open_ctree ...
4 votes
2 answers
6k views

Graphical Btrfs tool

Is there a graphical tool for creating Btrfs sub-partitions and in particular, subpartitions like "GParted" or "system-config-lvm"? I'm running Debian squeeze. In response to the first comment, Btrfs ...
1 vote
1 answer
36 views

Strange rsync samba btrfs behavior by Files lesser than 26MB

i have created a btrfs filesystem on my Raspberry Pi with a simple subvolume Data01, to share for backup my Server i've created a samba share on raspberry After that i mounted the samba share on my ...
2 votes
2 answers
1k views

btrfs: why are mount options not applied to subvolumes?

I'm running openSUSE Tumbleweed, and finding a strange behaviour when mounting btrfs subvolumes. I have two subvolumes on a btrfs filesystem: @media and @migration. I have my /etc/fstab set up like ...
0 votes
2 answers
47 views

A directory that is owned by some non-superuser, but can't be deleted by them

Is it possible to create a directory that its owner can't delete? Let's say I have directory bar owned by user foo, and I'd like to create a subdirectory bar/baz, also owned by foo, such that: foo ...
0 votes
1 answer
84 views

how does btrfs' copy-on-write feature influence with database application(such as postgresSQL)?

I'm working on manjaro KDE whoes whoal / partition (excepting /boot/efi partition, of course) has formated to btrfs filesystem, and its copy-on-write feature remains default. Just now, I was following ...
0 votes
0 answers
34 views

How to add a btrfs subvolume of an existing drive

I just started out with btrfs and I have an existing drive that I would like become a subvolume as to be able to create snapshots. The drive is an NVMe SSD and is mounted at /mnt/nvme2. How can I make ...
0 votes
0 answers
160 views

Best strategy to backup btrfs root filesystem?

I have a btrfs root partition with an @ root subvolume and an @home subvolume and I do auto-snapshots during updates and timeshift scheduled snapshots, both of which are saved on the same drive. This ...
0 votes
0 answers
12 views

is it possible with btrfs receive to put the files directly into filesystem instead of a snapshot?

I'll try to make it short an synthetic, I have a filesystem /A/ I would like to send to /B/ so I make a snapshot btrfs subvol snapshot -r /A/ /A/_0 then send it to B/ btrfs send /A/_0|btrfs receive ...
3 votes
1 answer
104 views

Recovering a directory from a corrupted btrfs partition without the root set

I'm trying to recover data from a btrfs partition where the media was physically damaged. I was able to recover about 99% of the partition, so I'm confident that most of the data should be there. But ...
1 vote
1 answer
88 views

BTRFS - Arch Linux

I know this may be a silly question. I want to install Arch Linux on my computer. And umm..., this time I would like to use btrfs. Would I need to create a /boot/efi partition and a /boot partition ...
1 vote
0 answers
17 views

Is there a system / btrfs tool whick will provide me with the record location for a specific inode number in a btrfs volume?

I want to find the location of the record data for a specific inode. Is there a system tool or a btrfs tool which will provide me with at least it's bloc number ?
2 votes
0 answers
26 views

BTRFS cannot mount after lossing USB connection

I had a btrfs disk connected by USB, but briefly lost the connection (SATA connector fall off drive). I tried to unmount the disk and remount, but it refuses. I keep getting: $ mount /dev/sdf1 /mnt/...
12 votes
3 answers
7k views

How do I expand btrfs metadata?

My btrfs metadata is getting full. (I'm creating hourly snapshots using btrbk.) How do I increase / extend the space allocated to the metadata of a btrfs filesystem? Or is it automatically expanded?...
0 votes
0 answers
60 views

How can I modify a file creation time in btrfs

I wanted to have snapshots on my filesystem. Since the btrfs-convert tool is not available anymore, I was forced to convert my filesystem by copying it file-by-file on a new file-system. However, I ...
3 votes
1 answer
2k views

Btrfs/ZFS Network Replication

Is it possible to replicate a ZFS or Btrfs raid volume in real-time (or as close to as possible, network specs aside) over a network? ZFF and Btrfs are ideal because of their CoW properties. I'm ...
0 votes
1 answer
125 views

Migrate ext4 LVM2 in preparation to upgrade to btrfs

I'd like to convert my file system from ext4 with LVM partitions (Fedora style: swap, root, home) to btrfs, primarily for the backup/snapshot feature. I read that it's beneficial to not use a LVM when ...
0 votes
0 answers
34 views

permanent `chmod` of btrfs top-level directory

When doing chmod o+rx /mnt to a btrfs filesystem, the chmod changes are lost after reboot. How can I permanently give o+rx access to a btrfs top-level directory?
4 votes
1 answer
3k views

How to resize at the beginning/move a btrfs partition on the command line?

I have a Linux/Windows dual boot setup on my notebook, in which I used to keep most of the data on the Windows partition to be able to access it from both systems. Since I almost never use Windows I ...
0 votes
0 answers
270 views

cryptsetup uuid problem in initramfs while mounting btrfs

I have a BTRFS disk array, where all disks are LUKS2 encrypted. During the bootup, I unlock disks 1 by 1 using cryptsetup open. After that, I want to mount the BTRFS array using mount /dev/mapper/one-...
5 votes
2 answers
2k views

btrfs on openSUSE not releasing disk space

I have an openSUSE 12.1 install on my main desktop running with btrfs filesystem for root (/boot is ext4). I started having issues today with KDE informing me that disk space is almost all gone and ...
0 votes
0 answers
37 views

How can I shrink a BtrFS filesystem being a LV in OpenSUSE 15.3?

I have a sys Volume Group (VG) like this: lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert boot sys -wi-ao---- 664.00m ...

1
2 3 4 5
15