2025-01-02 21:03:29

This commit is contained in:
henk
2025-01-02 21:03:29 +01:00
parent 02375b1bbb
commit 4a6c9c5d2c
3 changed files with 33 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
#
fallocate -l 2G /swap2file
chmod 600 /swap2file
mkswap /swap2file
swapon /swap2file
echo "/swap2file swap swap defaults 0 0" | tee -a /etc/fstab
mount -a
systemctl daemon-reload
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
#
fallocate -l 4G /swap4file
chmod 600 /swap4file
mkswap /swap4file
swapon /swap4file
echo "/swap4file swap swap defaults 0 0" | tee -a /etc/fstab
mount -a
systemctl daemon-reload
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
#
fallocate -l 8G /swap8file
chmod 600 /swap8file
mkswap /swap8file
swapon /swap8file
echo "/swap8file swap swap defaults 0 0" | tee -a /etc/fstab
mount -a
systemctl daemon-reload