fstab: note btrfs being a thing for swapfiles

This commit is contained in:
Aminda Suomalainen 2024-08-28 14:47:47 +03:00
parent 8c10922661
commit 437a1bdbe1
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 6 additions and 4 deletions

View File

@ -3,10 +3,12 @@
# that works even if disks are added and removed. See fstab(5).
## swap file creation and auto-mount
# # fallocate -l 4G /swap
# # chmod 600 /swap
# # mkswap /swap
# # swapon /swap
# btrfs? # btrfs filesystem mkswapfile --size 4G /swap # proceed to step 4.
# Otherwise:
# 1. # fallocate -l 4G /swap
# 2. # chmod 600 /swap
# 3. # mkswap /swap
# 4. # swapon /swap
# and to /etc/fstab:
/swap none swap sw 0 0
# Note that swap shouldn't be used if there is encryption present.