Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3423

How to enable BTRFS compression after installing Debian

$
0
0
When I used the graphical installer to install Debian 12, I chose full-disk encryption and the BTRFS filesystem instead of ext4 for the root partition. After finishing the installation, there's this line in /etc/fstab:

Code:

/dev/mapper/cake--vg-root /               btrfs   defaults,subvol=@rootfs 0       0
If I now want to enable BTRFS compression using the lzo algorithm, is it just a simple matter of adding "compress=lzo" to the /etc/fstab mount options as shown below, and rebooting?

Code:

/dev/mapper/cake--vg-root /               btrfs   defaults,compress=lzo,subvol=@rootfs 0       0
Is there anything else I need to do before I reboot? I am concerned about corrupting the existing data, or being unable to boot my computer. I have backups, but restoring backups is just time-consuming.

Statistics: Posted by logitu — 2024-01-24 06:06 — Replies 2 — Views 99



Viewing all articles
Browse latest Browse all 3423

Trending Articles