-
Notifications
You must be signed in to change notification settings - Fork 1
swap
XADE edited this page Dec 10, 2023
·
1 revision
a swap file [bit larger than RAM] is always recommended
swapoff -a rm -rf /.swap btrfs subvolume create /.swap truncate -s 0 /.swap/swap chattr +C /.swap/swap head -c 8G /dev/zero > /.swap/swap # replace 8 with desired value chmod 600 /.swap/swap mkswap /.swap/swap swapon /.swap/swap printf " /.swap/swap none swap defaults 0 0 " >> /etc/fstab