Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [btrfs]

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

1
vote
1answer
33 views

Good filesystem to manage space efficiently

Quick question: is there a filesystem that let me automatically "resize" (up or down) partitions, share one partition between several devices, and make sure that some content only go to one device ...
6
votes
3answers
337 views

How can a disk without a partition be “partitioned” without losing data?

I have a 1TB portable hard drive that I use for backups. The entire drive (/dev/sdb) has been formatted as an ext4 filesystem. I have been reading about the benefits of btrfs for backups (checksums, ...
1
vote
1answer
22 views

Cannot create a btrfs on 2 disks

I'm trying to create a btrfs file system on 2 disks but it shows an error: $ sudo mkfs.btrfs -d single /dev/sda1 /dev/sde1 ...
0
votes
1answer
48 views

Why does rename() take longer when fsync() is called first?

In this test, why does rename() take longer when fsync() is called first? Environment: btrfs, mechanical HDD, Debian 9 container, running on kernel 5.0.17-200.fc29.x86_64. Test command: dpkg -r ...
1
vote
0answers
18 views

Debian 9 does not load login screen

My HP laptop fails to load the login screen after saying [FAILED] Failed to start Accounts Service There's an error concerning the partition of a disk that keeps showing up. BTRFS critical (...
2
votes
0answers
28 views

How to reconfigure two hard disk already cloned in RAID1 without rewriting all?

I have cloned my existing hard disk first, so that I have now two exact copies. Now I would like to setup a RAID1 with them, but avoiding to rewrite the disk added, because I don't have some other ...
0
votes
0answers
21 views

Moving MBR to a cloned drive with BTRFS

Context : I have cloned a disk with ddrescue (was supposed nead to death). I want the copy to be bootable. Both disks are installed in the PC, the old one (eventually in good health) on /dev/sdb and ...
0
votes
0answers
17 views

moving a file from ntfs to btrfs while preserving the creation time

Both ntfs and btrfs support file creation times. When I copy a file however, only the modification time is preserved. Is there a way to preserve creation times too? For context I wish to migrate my ...
2
votes
1answer
19 views

Drives not receiving UUID after moving SATA ports

I have a personal Ubuntu server with nine drives: SSD for OS four 4TB drives for one BTRFS raid10 array four 8TB drives for another BTRFS raid10 array I decided to clean up the cabling today and ...
0
votes
1answer
31 views

Convert / and /boot from ext3 to btrfs

Is it possible to convert / and /boot file system from ext3 to btrfs? I have not experienced converting previously but I seen that filesystem from ext3 needs to be unmounted. Filesystem ...
0
votes
0answers
27 views

Cannot delete a BTRFS subvolume “Operation not permitted”

I have a subvolume of BTRFS filesystem that I cannot delete. # btrfs subvolume delete /var/snap/lxd/common/lxd/storage-pools/default/containers-snapshots/ntp-backup/working Delete subvolume (no-...
0
votes
0answers
22 views

BTRFS unknown space usage

I have 1 TB hard drive with btrfs on it used for /home. When moving to new ubuntu (with fresh install), I've moved my @home subvolume to @home-old, installed and configured system, copied needed files ...
0
votes
0answers
86 views

btrfs “bad tree block start” prevents mount and repair

I have a 120 GB Samsung SSD which I setup as a LUKS volume with btrfs in Xubuntu 18.04 which has been running fine until I tried booting this afternoon and discovered lines like this in dmesg when it ...
1
vote
0answers
41 views

Logical address mapping in BtrFS

I was trying to manually restore some file contents from my BtrFS drive by digging in a hex representation of the drive (xxd /dev/sd**). The only way I see it could be done is to find a ...
3
votes
1answer
25 views

How do I convert a 4-drive BTRFS raid1 to a 2-drive “single” (non-raid) mode

I have 4 equal-sized drives in a BTRFS raid1 configuration. I would like to free up two of the drives for use in a different system. I'm pretty confident that this is possible with BTRFS, but I'm not ...
0
votes
1answer
23 views

Is btrfs's 'parent id' and 'top level' different?

Here's a subvolume list of openSuse system. # btrfs subvolume list -p /mnt/openSuse/ ID 256 gen 479 parent 5 top level 5 path @ ID 258 gen 479 parent 256 top level 256 path var ID 259 gen 307 parent ...
0
votes
2answers
49 views

Setting noatime via mount options vs no atime updates (A) file attribute

From man chattr When a file with the 'A' attribute set is accessed, its atime record is not modified. This avoids a certain amount of disk I/O for laptop systems. However when I am remounting ...
0
votes
1answer
28 views

Change where Snapper creates snapshots

I have a BTRFS filesystem, running Arch Linux x86_64. On that filesystem, I have the top level subvolume (id=5), then inside that I have @root, @home, @snapshots, @swapfile. I want to be able to ...
1
vote
1answer
58 views

BTRFS - Subvolumes for / & /home, and being able to snapshot and restore from the snapshots?

OS: Arch Linux x86_64 I have one BTRFS filesystem, both containing / & /home, how do I create subvolumes for both / & /home, and create a snapshot for each and restore from their snapshots (...
3
votes
1answer
222 views

Unrecoverable Btrfs filesystem after a power failure?

I've been writing to a 3TB USB external hard drive (WD MyBook) with a Btrfs filesystem, when accidentally I've switched the power off to the drive's power brick. What is strange - the write ...
1
vote
0answers
45 views

Disk utilization on mdadm raid 5 is 100% even though none of the member disks is at 100%

I am currently confused about the disk utilisation of one of my machines. The setup: I have a machine containing 4 2TB HDDs. For those HDDs I used mdadm to configure a RAID 5 (called md2) On MD2, I ...
1
vote
1answer
57 views

Are btrfs advantages negated with over-the-top encryption?

Are the benefits of btrfs lost if one uses encryptFS on top? What advantages (over ext4) of btrfs remain intact with encryptFS? If I want to have the full benefits of btrfs with encryption, is LUKS ...
0
votes
1answer
46 views

btrfs subvolumes not auto mounted after set-default

I'm using btrfs-sxbackup to create local snapshots. It creates a technical subvolume in /.sxbackup and creates readonly snapshots in its subfolder. All subvolumes are automatically mounted when OS ...
0
votes
1answer
46 views

How to resolve btrfs errors? copying from btrfs to another partition?

I had a working system that was running out of space. So I added space to the end of the disk. Boot from gparted ISO launched gparted moved partition 3 of 3 to the right. Went to resize partition ...
2
votes
0answers
122 views

Why does BTRFS filesystem mount automatically?

So I've made a btrfs filesystem that spans across one logical drive (md1) and a USB drive. its all raid 0. so that: sata\ md1--\ sata/ \ btrfs called "Storage" usb-------...
1
vote
0answers
43 views

Why is convert=soft not default in btrfs balance?

Enabling soft when seems to be all upside with no downside: balance will skip chunks which are already in the right place. man btrfs-balance says: soft Takes no parameters. Only has meaning ...
1
vote
2answers
196 views

btrfs replace on RAID1 is super slow with failed disk present

I'm trying to replace a failed disk in a RAID1 btrfs filesystem. I can still mount the partition rw (after about 5 minute delay and lots of I/O kernel errors). I started replace with -r in an ...
1
vote
2answers
86 views

btrfs replace “ERROR: target device smaller than source device”

Why am I seeing: btrfs replace "ERROR: target device smaller than source device" when I have already shrunk the source device filesystem to be smaller than the target via: btrfs filesystem resize &...
0
votes
0answers
164 views

Can’t write to btrfs volume (forced readonly)

Since today, when I try to write moderate amounts of data (MB range) to the btrfs volume on my external hard drive, the volume switches to read-only, interrupting the operation. The volume is very ...
2
votes
0answers
357 views

Cannot delete a btrfs subvolume

I have an Arch Linux Installation on a btrfs filesystem partition "/dev/sda1": [root@larch ~]# mount | grep sda /dev/sda1 on / type btrfs (rw,relatime,ssd,space_cache,subvolid=266,subvol=/subvol_root)...
3
votes
1answer
67 views

How to copy multiple snapshots at once without duplicating data?

I have a live btrfs filesystem of 3.7TiB that's >90% full including old snapshots and a fresh 4TB backup harddisk. How to copy all existing snapshots to the backup harddisk? I tried # btrfs send ...
2
votes
0answers
43 views

meaning of @ in (btrfs?) pathnames

I have noticed that Synology NAS devices preface many system-relevant links or directory names with the @ character. I've just noticed that the standard partitioning in openSUSE does the same when ...
2
votes
1answer
153 views

What's the difference between “parent” and “clone source” with “btrfs send”?

I regularly use btrfs send and btrfs receive to copy read-only snapshots from my live system to a backup drive. On the backup drive there are already multiple snapshots. Today I wondered: Can I copy ...
0
votes
1answer
45 views

How to sync after a 'snapper delete'

I have started a snapper delete command, only to find out five minutes later that it is running in the background and seems to take a longer time. Is there a command can I use to get notified when the ...
1
vote
1answer
116 views

How to find the creation date/time of btrfs snapshots

Is there a general way to find the creation date of btrfs snapshots, or is it necessary to encode the date in the snapshot name, as it is e.g. done by Timeshift?
1
vote
0answers
66 views

tar takes a long time before passing data to gzip

What I want to know, is what is tar doing at the start, before it starts passing data on to gzip? Can I make it skip that step? I'm writing a script to run on my Synology NAS box (running DSM 6.2.1-...
2
votes
1answer
143 views

how to set NOCOMPRESS flag on a file in btrfs?

according to https://btrfs.wiki.kernel.org/index.php/Compression#How_do_I_enable_compression.3F there exist a "NOCOMPRESS" flag, how do i set the NOCOMPRESS flag on a file?
1
vote
1answer
106 views

Span BTRFS over multiple partitions to increase disk space

I have recently moved from a 2TB HDD with Windows 7 Enterprise (R) and several ext4 and XFS data partitions to a 4TB HDD by dd 'ing Windows to the new HDD. When I wanted to create an extended ...
1
vote
1answer
130 views

How to make snapper-boot.service create snapshots for all configs?

I have a btrfs setup with multiple subvolumes mounted to different places of the file system. Each subvolume has a configuration for snapper: cat /etc/conf.d/snapper [...] SNAPPER_CONFIGS="root ...
3
votes
3answers
1k views

BTRFS Raid 1 vs. MDADM Raid 1

I'm currently in the process of setting up a NAS system mainly for backing up my computer and probably also for streaming media files to my devices. For these purposes, I decided to use ...
0
votes
1answer
39 views

Find physical block device of root filesystem on an encrypted filesystem?

I'm running Arch Linux (systemd) on several systems. Some have SSD storage, others have nvme storage devices and some use rotational HDD's. Some systems use dm-crypt to encrypt the filesystem. All ...
2
votes
1answer
266 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
1answer
48 views

What FS can reclaim unused blocks to VirtualBox when dynamically allocated image is used?

I like to use dynamically allocated images in VirtualBox. It is preferred way if you like to distribute you image (remember Vagrant?). What Linux FS can reclaim unused blocks to VirtualBox when ...
0
votes
1answer
80 views

Detect btrfs reflinked files

It's clear, with cp --reflink foo bar I can copy a file on btrfs without wasting space? But how can I detect that the two files (foo and bar here) are using the same "space unit"? If they were ...
1
vote
0answers
230 views

Disk full for unknown reason - BTRFS partition filled up with garbage data [closed]

On my Debian Linux laptop a couple of days ago I got my 23GB root EXT4 partition full (probably I installed more software than I expected). Since I have plenty of space in my BTRFS home partition, ...
9
votes
2answers
772 views

How does write cache work with a filesystem spanning disks with different speeds?

On a modern Linux system with multiple disks and a software RAID spanning both slow (HDD) and fast (SSD) drives, how are writes to the filesystem cached? For md-raid RAID1 the array can be configured ...
0
votes
1answer
57 views

Hiding btrfs drives (part of raid0 array) in Gnome Nautilus?

I have a raid 0 array consisted of sdb to sdf devices. My issue is that all 5 devices show up in Nautilus. I've tried other distro like deepin and I had the same issue. Mdadm and ZFS, this issue is ...
1
vote
1answer
93 views

btrfs subvolume delete /old/opt taking a lot of time and CPU resources, why? what do it about it?

The command: btrfs subvolume delete /old/opt Has been running over night. Currently 980 minutes and counting, and it is pegging 1 CPU core at 100%. I also initiated a second delete, and it too is ...
0
votes
1answer
149 views

Cannot set compress flag on a file in btrfs

I have the following btrfs filesystem on CentOS 7: mount | grep btrfs /dev/sdc on /everything type btrfs (rw,relatime,compress=zlib,space_cache,subvolid=5,subvol=/) When I try to set the compress ...
1
vote
1answer
365 views

Is it OK to use Btrfs for a logical volume under encryption?

I want to use the Btrfs partition type for my main ("/") logical volume which is under encryption. The encrypted LVM will occupy my entire device aside from the two small "EFI-system" and "Boot" ...