# File system management ## Traditional partitioning Create EFI partition. Create other partitions. F2FS and ext4 support per folder encryption (important in multi-user systems). BtrFS does transparent compression. ### Encryption ``` cryptsetup --type luks2 luksFormat /path/to/device cryptsetup open /path/to/device mappername mkfs.filesystem /dev/mapper/mappername [-O encrypt] ``` ### Swap file ``` # create file dd if=/dev/zero of= bs=1024 count= chmod 600 mkswap swapon ``` From `/etc/fstab`: ``` none swap defaults,nofail 0 0 ``` #### Encrypted swap For an ephemeral encrypted swap (no password, no hibernation), waiting on a `void-runit` commit.