====== swap ====== ===== Beispiele ===== ==== Swap-file zusätzlich zum swap-space anlegen ==== # alles als root # Verzeichnis erstellen mkdir /swap # 4 Gbyte swap-file # 1024 x 4 = 4096 MB dd if=/dev/zero of=/swap/swapfile bs=1M count=4096 # Berechtigungen chmod 600 /swap/swapfile # swap-file konvertieren mkswap /swap/swapfile # zum Linux-swap space hinzufügen swapon /swap/swapfile # in fstab eintragen vi /etc/fstab # Code hinzufügen /swap/swapfile swap swap defaults 0 0 # check swapon --show