Install KaOS on SSD using Btrfs
Explanations how and why to use BTRFS
Why Btrfs?
- It is possible to dynamically resize mounted filesystems
- filesystems can span physical volumes, with optional RAID support
- physical volumes can be added to and removed from mounted filesystems
- compression option
- snapshots (including read-only and read-write) and seeds
- has a mode that is optimized for solid-state drives
Format as BTRFS
Current installer is ready to create Btrfs partitions so you can use it without any further instructions.
Edit fstab
In case you want to fine tune the default setting used by the installer for fstab, you can use the following example:
And edit until it looks like this.
Where:
- rw - Partition is mounted in read-write mode
- noatime - Don’t update inode access times on the filesystem. Can help performance
- compress=lzo - Data compression enable
- Discard - Optional if you already use ssd option, enable TRIM.
All others options optimize cache and send temps to RAM.
Recomendations
Verify if your SSD is align using $ sudo blockdev --getalignoff /dev/sda4
if the result is 0 then your SSD is correctly aligned.
Creating a snapshot
Rolling back a snapshot
https://btrfs.wiki.kernel.org/index.php/SysadminGuide#Snapshots