Questions tagged [btrfs]
B-tree file system, next-generation Linux file system
313
questions
1
vote
0
answers
2k
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
...
5
votes
1
answer
4k
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
978
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
4k
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
55
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
411
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
281
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 ...
2
votes
1
answer
3k
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
300
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 ...
2
votes
0
answers
53
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
405
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
3k
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
221
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
322
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
1k
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 ...