Creating swap on Linux: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

6 October 2024

  • curprev 22:2522:25, 6 October 2024413vhcu1lq0463ob talk contribs 1,423 bytes +1,423 Created page with "== This should work in any Linux distro == === Create a swapfile === To create the swapfile let's just use the /dev/zero and append on /swapfile we're using 16MB blocks and making 64 of those, in another words 1GB, you can make 0.5GB or 4GB doesn't really matters: dd if=/dev/zero of=/swapfile bs=16M count=64 # 1GB or: dd if=/dev/zero of=/swapfile bs=16M count=128 # 2GB or: dd if=/dev/zero of=/swapfile bs=16M count=256 # 4GB Select one and go for it. === Changing fil..."