How exactly enable BTRFS full compression in all folders in disk ?

aug7744

Member
Joined
Aug 12, 2020
Messages
98
Reaction score
12
Credits
1,020
Hello.
I has tried several options to enable automatic BTRFS compression in an Lubuntu 20.04 64 bits, but when using file manager selecting properties for each folder not is displayed an value that show that is being compressed files in each folder.
My FSTAB file is the values below
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=69b4d9c8-138b-4c57-8b34-6b087d19314d / btrfs subvol=@,defaults,noatime,space_cache,compress-force=zlib:3,autodefrag 0 1
UUID=947e2d05-e6c9-4d3c-91fd-0503a33fb4ac /home btrfs defaults,noatime,space_cache,compress-force=zlib:3,autodefrag 0 2

I wait to use automatic ZLIB maximum compression in disk where is partition 1 FAT32 start, partition 2 Linux BTRFS /, partition 3 Linux BTRFS Home.
I wait enable compression in both two BTRFS partitions in all folders less system files that are used when starting the system Lubuntu.
I see that need also to defragment the partition, but the command below not work.
btrfs fi defragment

I have tried several options available in internet and not see working here.
Please what is exact command to automatic compression zlib maximum ?
Thanks.
 


You've looked here and here and still have concerns?
By 'automatic' do you mean, "I don't want to get my hands dirty" or what? Scripts sometimes work for that.
 
Last edited:
I am new to Linux.
Mount with -o compress or -o compress-force mean what command configuration to do in FSTAB ?
My fstab is
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=69b4d9c8-138b-4c57-8b34-6b087d19314d / btrfs subvol=@,defaults,noatime,space_cache,compress-force=zlib:3,autodefrag 0 1
UUID=947e2d05-e6c9-4d3c-91fd-0503a33fb4ac /home btrfs defaults,noatime,space_cache,compress-force=zlib:3,autodefrag 0 2

The mount command is to be added in fstab or in an other file ?
How to enable the mount command to run automatically in each system startup ?
If the system is installed in one partition and was started correctly the partition was mounted and thus being because need the mount command to enable compression if the the partition was mounted ?
 
Last edited:

Members online


Latest posts

Top