You are not logged in.
Pages: 1
Hi!
I'd like to give btrfs a shot. Thanks to our wiki, it seems really easy to convert an existing ext4 partition to btrfs.
But I'm stuck with this problem: i'd like to try btrfs lzo transparent data compression, but i'm now mounting my root in "rw" mode, so i'm bypassing fstab.
How can i use compress=lzo without modifying this behaviour? Or the only soution is to revert to "ro" and remount my root in fstab with compress=lzo mode?
Thank you very much!
Bye!
Last edited by nierro (2013-04-30 11:32:00)
Offline
rootflags=compress=lzo
Offline
You were really *fast* !
Thank you very much!!
Offline
Incidentally, the compression only applies to *new* files, not existing files. I believe that you can make the filesystem compress the old files (assuming they're compressible) by defragmenting it.
You might consider remounting with -o compress, and either rewrite particular files in-place, or run btrfs fi defragment to recompress everything. This may take a while.
Unless something has changed, that command won't actually defrag everything, you need to do this: https://btrfs.wiki.kernel.org/index.php … n.27t_work
I don't use compression on my btrfs partitions, so I can't comment on whether defragmenting it does what the FAQ says it should.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Well, i'm aware of that, but thanks for pointing it out.
Arch wiki says
find / -xdev -type f -print -exec btrfs filesystem defrag '{}' \;
to defragment everything.
So you think i must do this to enable compression on every file? This is good!
Offline
Pages: 1