From 437a1bdbe1cef2fe85781bcd48ff938cb4b19905 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Wed, 28 Aug 2024 14:47:47 +0300 Subject: [PATCH] fstab: note btrfs being a thing for swapfiles --- etc/fstab | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/etc/fstab b/etc/fstab index a58125c3..710e8da6 100644 --- a/etc/fstab +++ b/etc/fstab @@ -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.