Questions tagged [btrfs]
B-tree file system, next-generation Linux file system
294
questions
0
votes
0
answers
26
views
Move storage from root filesystem to volume in a digitalocean droplet
I started with a small server of 50G and setup a nextCloud instance. This space was not sufficient at the end. Now i added another volume. but i dont know how to move the data to that volume. The ...
0
votes
1
answer
45
views
btrfs fi du: several sets of shared extents
I have a lot of files in various directories on a btrfs filesystem. They are all identical, and some may have been created using a "old-style" full copy, some are clones (cp --reflink). I ...
0
votes
0
answers
25
views
`btrfs subvolume delete X` gives `ERROR: Could not statfs: Value too large for defined data type`
I play with btrfs in my arm(hf) NAS.
I successfully created a subvolume but now I am trying to delete it and get a system call error.
Any workarounds or better packages?
To delete the subvolume.
To ...
0
votes
0
answers
15
views
Can I see how much metadata a folder uses in BTRFS?
BTRFS tracks metadata and data separately what also makes it hard to compute disk usage correctly and one needs to use its own tools like btrfs filesystem du to compute disk usage.
The btrfs ...
0
votes
1
answer
80
views
BTRFS filesystem size is bigger than my HDD, but how?
I have a 18TB HDD. (MG09ACA18TE)
$ df -TH
Filesystem Type Size Used Avail Use% Mounted on
/dev/dm-7 btrfs 19T 13T 5,8T 69% /mnt/point
$ df -Th
Filesystem ...
0
votes
1
answer
166
views
btrfs questions about free space overhead and versioning
For the first time I will dare to format an 18TB disk in my NAS, as btrfs. So I have a few questions and fears that I would like our community to answer.
The filesystem will be available with smbd on ...
0
votes
0
answers
47
views
Virtualbox guest files keeps corrupting (differencing child hard disks)
I've Windows 10 guest on BTRFS partition. I'm periodically taking BTFRS snapshots and backing it up.
My BTRFS snapshot script checks whether there is an inaccessible machine or not before taking ...
0
votes
0
answers
128
views
BTRFS fails to mount after resizing the partition
So, I have a BTRFS partiton that fails to mount after I resized it. When I resized it back, it still fails to mount. I should also mention that I have three hard drives in the computer in question. ...
3
votes
1
answer
161
views
Mount Btrfs raid 5 from failed ReadyNas 104 on Linux - aka how I restore data from my ReadyNas
After about 7 years my ReadyNas finally failed, I would expect from Neatgear detailed recovery instruction, but I read dozens of threads - my problem is not uncommon, but solution was not found.
After ...
0
votes
0
answers
233
views
Btrfs: replace current disk with larger disk but keep old disk size in the btrfs filesystem
We plan to replace a disk in a btrfs filesystem with a bigger drive. However, we do not want to use it's full capacity yet. The reason why we don't want to use the full drive capacity yet is simply ...
0
votes
0
answers
17
views
Can you mount ext4 partitions in Windows with read/write access as if they were native NTFS partitions? [duplicate]
Given ext4 is open source, is there a Windows extension that allows you to mount ext4 as a native Windows drive?
Much like FUSE allows us to mount drives under MacOS and Linux and have them appear ...
4
votes
1
answer
2k
views
How to remove BTRFS subvolumes used by docker?
I was playing with docker and then I found with btrfs list many docker subvolumes like this one:
ID 23305 gen 3405505 top level 22147 path var/lib/docker/btrfs/subvolumes/1464e922.....
I do not use ...
0
votes
0
answers
146
views
What went wrong? All files gone (BTRFS)
I am running an Ubuntu server 20.xx.x LTS since 2019 with some drives mounted as a BTRFS raid drive. I have never had any issues.
Earlier this summer I went to another country and didn't need the ...
0
votes
1
answer
445
views
False disk usage report on a btrfs root partition
I checked my disk usage using btrfs filesystem df / and it shows high disk usage like so
However I am 100% certain that I actually use 72.8GB as shown on filelight. I tried sudo btrfs balance start -...
0
votes
0
answers
149
views
Is it possible to recover a specific file from a damaged btrfs filesystem?
I admit that it was me who damaged the fs - I was using a 1TB HDD and then added my external 1TB HDD that had LUKS encryption. The data used a raid1 profile but the metadata used dup (I read it was ...
1
vote
0
answers
60
views
How to safely edit files in mounted BTRFS?
I broke my Manjaro Linux by putting wrong value into /etc/environment.
I've booted from Manjaro live usb and mounted my partition using "Disks" utility (also tried sudo mount /dev/nvme0n1p2 ....
1
vote
1
answer
72
views
How do I identify directories with growing disk space usage in Ubuntu and Btrfs?
How do I identify directories with growing disk space usage in Ubuntu and Btrfs?
Sometimes I notice that disk usage has increased considerably but I don't know which directory is responsible for the ...
0
votes
0
answers
30
views
How to temporarily disable trimming on btrsf SSD system?
When I work with large disks in VMWare on SSD btrfs, the system is unresponsive every about 40 seconds. I suspect that realtime trimming is to blame.
Is there any possibility to temporarily disable ...
0
votes
1
answer
248
views
Timeshift and btrfs. Recovery unable to mount /home
I am using btrfs (which seems integral to the question).
Upon recovering with timeshift and rebooting, I am encountering the following error
[Failed] Failed to mount /home.
[Depend] Dependancy failed ...
0
votes
0
answers
54
views
Non-empty mount points with btrfs (SLES15): Are they needed?
I have many years of UNIX experience, but I think i made a fatal mistake:
Seeing messages during boot about non-empty mount points, I took the chance to clean them up while migration a system to a new ...
0
votes
1
answer
169
views
clone failing drive without losing redundancy on Synology NAS
I have a Synology NAS (DS416play running DSM 6.2) configured as SHR with 1 drive redundancy.
One of the drives has been flagged as failing but is not yet showing any kind of errors. I could simply ...
1
vote
0
answers
494
views
testdisk live with btrfs support
I have a Fedora Silverblue 36 on btrfs
I accidentally erased some files and I'd like to use testdisk to try to recuperate them, at least partially
if I create a container with toolbox, it won't get ...
1
vote
1
answer
2k
views
How to recover corrupted btrfs partition that nothing can read
I was on Manjaro on a btrfs partition. I came back to my laptop and it wasn't accepting my password, which in the past I solved with a reboot. I tried to reboot from tty 2 which was logged in, and it ...
0
votes
1
answer
174
views
Why does btrfs scrub process more data than allocated?
Why is the "Total to scrub" a lot bigger than "Device Allocated".
29.1TiB vs 21.24TiB is a huge difference.
Setup: I have a btrfs raid array. It has a mixed data chunks of RAID1 ...
3
votes
1
answer
135
views
Odd behavior by 'du' with `dd` on a BTRFS disk showing 0 filesize.. Anyone got some clues or thoughts around it?
Been tinkering with btrfs with consideration of moving from ext4 to that.
However, when wanting to compare R/W speeds, I seem to have come across an (to me at least) unusual behavior by du on the ...
0
votes
1
answer
196
views
btrfs fails to load qgroups from disk with error -2 (out of memory)
I ran out of space in my OpenSUSE partition, which uses btrfs. I booted from a live Ubuntu USB to reallocate some of the space from my Windows partition to the Linux one. It succeeded in shrinking the ...
0
votes
0
answers
945
views
BTRFS discrepancy between df and du
the difference between disk usage reported by df and du makes 20% of capacity of my drive. It is ubuntu-type btrfs filesystem with @ and @home. Where could be the problem please?
df -h /dev/sda2
...
3
votes
0
answers
2k
views
BTRFS and disk usage mystery
# df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 119G 113G 5.5G 96% /
and BTRFS agrees:
# btrfs fi df /
Data, single: total=111.00GiB, used=110.53GiB
...
0
votes
1
answer
609
views
BTRFS warning (device xxx): swapfile must not be copy-on-write. Why swap is activated when disabled?
I have SSD. When I check dmesg I see warnings and fails:
$ sudo dmesg | grep swap
[ 0.085887] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[ 0.429424] zswap: ...
8
votes
2
answers
2k
views
LUKS on top of BTRFS raid array
How can I encrypt a partition that's btrfs RAIDed?
Running encryption on top of RAID is the best practice among a lot of sources even recommended by cryptsetup FAQ (see 2.2). The reason I want this to ...
1
vote
0
answers
32
views
Moving or Copying files from one NAS to another while maintaining Timestamps
Some of our designers want to move some of their old files from our active Synology unit to an archive Synology unit using their windows machines. But it is imperative all the timestamps (created, ...
1
vote
1
answer
234
views
ecryptfs-migrate-home on btrfs file system (Ubuntu)
I plan to encrypt home directory with ecryptfs-migrate-home. I have btrfs system and I use timeshift backup to create snapshots.
I would like to know how btrfs snapshots work on encrypted home ...
0
votes
2
answers
140
views
btrfs receive fails with incremental streams: "File exists"
For a btrfs sub-volume, 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 sub-volumes are ...
0
votes
1
answer
1k
views
Defragment BTRFS to change the compression level
I can do:
btrfs filesystem defragment -rvf -czstd ./
But not:
btrfs filesystem defragment -rvf -czstd:1 ./
I get the error:
ERROR: unknown compression type zstd:1
Is there any way to change the ...
0
votes
2
answers
174
views
solid state disk some random files corrupted; how to prevent in simple terms
Please see What happens in a raid (5) when one drive or more gets a bad sector?. I have a few .jpg files (and much more serious data). Some of the .jpg files become corrupted. I can tell because ...
1
vote
0
answers
38
views
Can ZFS and BtrFS handle files larger than physical discs?
Are ZFS and BtrFS able to handle files that are larger than one physical disk so that such a huge file spans over multiple physical discs?
I consider lifting up my file server to a VM. Currently the ...
0
votes
1
answer
258
views
rm -rf no longer deletes folder in cron job
I wrote a program that writes a large number of small files to a temporary directory, then, via a call from within the program, deletes the temporary directory. This program is called via a user-...
0
votes
1
answer
1k
views
removing old BTRFS snapshots with bash
I'm trying to build my own little backup script, I want to use BTRFS snapshots and keep them for a while. Meanwhile, creating the snapshots is no longer a problem for me, but now I would like to ...
0
votes
0
answers
142
views
Is it possible to restore a btrfs snapshot with a different partition state?
So, now i'm using Arch Linux and I already have btrfs snapshot with condition / and /home are in 1 partition (sda1).
I would separate the /home partition from / (sda2 for /home and sda1 for /).
my ...
2
votes
2
answers
213
views
Find chunks of all 0x55 or 0xAA on hard drive image and blank them?
This is a weird request, but I had a hard drive that I initially ran badblocks on and then stopped partway through. So it started out with part of the drive covered in 0xAA and another part of the ...
0
votes
1
answer
578
views
How does BTRFS compression influence existing and new snapshots?
Context
I have some Synology NAS storing backups created by WBADMIN from Windows using SMB, which means VHDX image files in the end with compression disabled, as otherwise WBADMIN refuses to work on ...
0
votes
1
answer
287
views
How to delete all duplicates of a file linked by CoW on BTRFS
The glory of Copy-on-Write (CoW) allows us to copy a file as many times as we like, without duplicating the used space.
I have used this functionality extensively (as well as manual deduplication of ...
0
votes
0
answers
198
views
btrfs volume in fstab fails to boot with compress-force
in my fstab, the btrfs volume boots with no problem when the option set is compress=zstd:15, however, as soon as i set it to compress-force=zstd:15, it fails to boot because of a failed dependency
...
1
vote
1
answer
415
views
How exactly do btrfs/ZFS (and related filesystems) prevent bit rot?
It seems that, since btrfs development began, various communities have touted both it and ZFS as inherently more advanced filesystems for preventing corruption, bit rot, etc.
What features of btrfs or ...
0
votes
0
answers
1k
views
Btrfs write speed very slow. In Linux how do I copy files using page cache?
I have 2 filesystems consisting of the same 15Tib size with both of them using 4 nvme ssd of the same model using btrfs based raid0 with all of the them plugged to a pci port.
Both filesystem are ...
1
vote
1
answer
269
views
btrfs quotas: Can't delete files when quota is exceeded
I set quotas on our smb server's /home/<name> subvolumes.
These subvolumes are exposed over smb as \\server\<name>
Now whenever someone tries to delete files in his/her /home folder and is ...
0
votes
2
answers
346
views
Convert hardlinks to reflinks
I have nested folders with a bunch of files inside that are hardlinked to each other. I would like to break the hardlinks (convert them into separate files), but then immediately convert each pair ...
1
vote
0
answers
331
views
linux system IO hangs/freezes randomly for ~30 sec
while working on my ubuntu 20.04 desktop, I'll notice a occasional freezes where it "mostly" goes out to lunch for 10's of seconds to ~1 minute. Happens perhaps ~~once an hour. I can still ...
3
votes
2
answers
2k
views
Should I format my external hard disks in EXT4 or NTFS or BTRFS? [closed]
I have four hard disks:
240GB SSD formatted as EXT4 for main OS.
3TB HDD formatted as NTFS for main files.
500GB HDD formatted as NTFS for luks containers.
4TB HDD formatted as NTFS for backuping all ...
0
votes
1
answer
604
views
btrfs and fstab with failed device
A lot of guides on how to mount a btrfs filesystem say you can use any device in the filesystem to mount.
Ex: if a filesystem has sda1, sdb1, and sdc1 in it, you can mount using any of those devices.
...