OOPS! > dd if=/dev/zero of=/swapFile count=4096 bs=$(((16000000*1024)/4096)) should be: dd if=/dev/zero of=/swapFile count=$(((16000000*1024)/4096)) bs=4096 you'll run out of memory with a bs that large in the first (incorrect) command.