Questions tagged [btrfs]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 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 ...
user avatar
  • 191
0 votes
1 answer
12 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 ...
user avatar
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: ...
user avatar
  • 1,967
1 vote
0 answers
36 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 ...
user avatar
  • 11
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: ...
user avatar
0 votes
1 answer
40 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 ...
user avatar
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 ...
user avatar
  • 1,756
1 vote
0 answers
20 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:/...
user avatar
  • 31
0 votes
1 answer
21 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. ...
user avatar
  • 31
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 ...
user avatar
  • 31
0 votes
1 answer
95 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 ...
user avatar
  • 189
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 ...
user avatar
0 votes
1 answer
210 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 /...
user avatar
  • 454
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 ...
user avatar
  • 715
1 vote
0 answers
110 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 ...
user avatar
  • 11
1 vote
1 answer
33 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 ...
user avatar
0 votes
1 answer
81 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 ...
user avatar
  • 13
0 votes
0 answers
33 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 ...
user avatar
  • 1
0 votes
0 answers
154 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 ...
user avatar
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 ...
user avatar
  • 454
1 vote
1 answer
87 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 ...
user avatar
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 ?
user avatar
  • 234
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/...
user avatar
  • 328
0 votes
0 answers
59 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 ...
user avatar
  • 234
0 votes
1 answer
123 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 ...
user avatar
  • 179
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?
user avatar
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 ...
user avatar
  • 804
0 votes
0 answers
28 views

Is the ability to do a full balance desirable or necessary with btrfs?

I believe I do not have the ideal correct filesystem layout to run btrfs and that what I've got looks more like an ext4 filesystem layout. There are no subvolumes except for /.snapshots and Basically,...
user avatar
  • 1,504
1 vote
1 answer
180 views

BTRFS and mdadm raid6

I have been a mdadm raid6 user for years and I'm very satisfied with it, but I would like to have a filesystem with snapshots, because fake snapshots on ext4 is eating all my diskspace. I read here ...
user avatar
  • 234
0 votes
2 answers
94 views

How can i make sure my volume is btrfs (or get it's type) and how can I know it's real size in my partition?

I have a volume which I believe to be btrfs, but the partition bearing it has an odd number of blocks and there is a little space left before the next partition. I'd like to check it's type (btrfs ...
user avatar
  • 234
2 votes
1 answer
95 views

Why is it necessary to run fsck regularly?

Some systems run fsck on every boot, after so many days, or after so many mounts. For example, in How often should I reboot Linux servers? - Server Fault they discuss a variety of strategies for doing ...
user avatar
0 votes
0 answers
334 views

btrfs subvolume: do I really need to mount them?

Say I have a device /dev/sda1, I format it into a btrfs filesystem: mkfs.btrfs /dev/sda1 Then I mount it: mount /dev/sda1 /mnt Then I create a subvolume: btrfs subvolume create /mnt/subvol1 at ...
user avatar
  • 3,268
0 votes
0 answers
79 views

Btrfs partition won't mount during boot using fstab

i have just reinstalled my raspberry pi 4 with raspbian lite 64bit. While doing this i also switched from using sd-card-boot to usb-boot and installed the os on an ssd. Now i still want to use the sd ...
user avatar
  • 163
0 votes
0 answers
268 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-...
user avatar
1 vote
0 answers
123 views

How do I move a btrfs subvolume and its snapshots to another drive?

How do I move a btrfs subvolume and its snapshots to another drive? Based on my understanding of the btrfs-send man page I think I would have to manually reconstruct the child/parent relationships ...
user avatar
  • 11
0 votes
0 answers
39 views

Btrfs: How can I save a snapshot to a subvolume that is not visible from the mount point

My root partition has a subvolume @ (mounted to /) and a folder @snapshot. When mounting the partition, I provided subvol=@, so @snapshot is not visible. Can I take a snapshot of / and save it at @...
user avatar
  • 301
1 vote
0 answers
108 views

Do BTRS errors always mean a drive is dying?

I believe my drive might be dying but I'm getting contradictory feedback. The drive is a XPG Gammix AGAMMIXS11P-1TT-C S11 Pro 3D NAND PCIe NVMe Gen3x4 M.2 2280 SSD 1To. I'm using Fedora (34 at first, ...
user avatar
  • 11
1 vote
1 answer
166 views

LVM, LUKS2 & BTRFS Problem

I had the following setup: 3 HDDs 10Tb of size, in LVM Raid5 configuration On top a LUKS2 encryption and inside a BTRFS filesystem. Since my storage got low i added another 16TB HDD (was cheaper than ...
user avatar
0 votes
0 answers
43 views

What is the format of btrfs-receive --dump?

I need to parse the output of btrfs-receive --dump but am unable to find any resource that documents the format. The information provided in man btrfs-receive is lacking (unfortunately) and the search ...
user avatar
0 votes
0 answers
49 views

Migrate ubuntu off zfs

I'm running ubuntu 21.10 on a zfs drive for my desktop pc. I'm having problems with docker and zfs (lots of docker bugs) so I need to move away from zfs. I'm looking at moving to btrfs but not really ...
user avatar
0 votes
1 answer
1k views

mount(2) system call failed: No such file or directory

I cannot mount the swap subvolue. -> sudo mount -av / : ignored /home : already mounted mount: /swap: mount(2) system call failed: No such file or ...
user avatar
  • 247
1 vote
1 answer
148 views

Retrieve Subvolume ID and Name for BTRFS Root Subvolume in bash script

I'm designing a sophisticated ArchLinux script that will install ArchLinux and automatically configure the system for a proper install. The script can install BTRFS with subvolumes and configure ...
user avatar
2 votes
1 answer
281 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), ...
user avatar
  • 23
0 votes
1 answer
94 views

Prevent rm -r of btrfs snapshots

I would like to use btrfs snapshots as a safety measure in case of accidental sudo rm -rf /* or similar but unfortunately you can delete readonly snapshots with rm -r. Can I disable this "feature&...
user avatar
  • 335
0 votes
1 answer
82 views

How to deal with blocking commands in systemd service ExecStartPre lines?

Before my backup program (btrbk) can send its backup to my server, I need to open a VPN connection. Opening up the VPN connection by hand works perfectly fine, by invoking openvpn --config VPNConfig....
user avatar
0 votes
0 answers
50 views

Is there any native tools to modify UUID and Received UUID of a BTRFS subvolume?

I have a similar issue described here. Basically I need to change the Received UUID of a snapshot to fix the parent/child relationship with the SOURCE in order to continue using btrfs send with -p ...
user avatar
  • 1,967
0 votes
0 answers
26 views

btrfs receive fails with incremental streams: "File exists"

For a btrfs subvolume, I have a simple incremental backup created from two stages: btrfs send old/@ > base.btrfs btrfs send new/@ -p old/@ > update.btrfs The two source subvolumes are snapshots ...
user avatar
  • 172
3 votes
1 answer
259 views

How do I move a btrfs volume to a bigger drive?

I have a btrfs partition on a drive which I would like to move to a new bigger drive. I would like to move the volume pretty much as is, retaining all the subvolumes and (snapper) snapshots. What is ...
user avatar
2 votes
0 answers
163 views

Btrfs automounted and mounted via gnome-disks : "Error finding object for block device" on umount in terminal

I wanted to use btrfs on my Linux Mint PC more, but I keep encountering new issues. Now I've found out (tried on two USB sticks) that btrfs formatted USB stick can be properly unmounted/ejected via ...
user avatar
0 votes
0 answers
24 views

btrfs sync tool with support for renames (not only one way backup)?

I want to sync certain folders (parts of the directory tree). Rsync does not support renames/moves. bugzilla discussion on rsync: Bug 2294 - Detect renamed files and handle by renaming instead of ...
user avatar

1
2 3 4 5
15