Linux

Add extra SWAP in Linux

If, by any chance, you happen to run out of SWAP space in Linux and you desperately need it, you can use a temporary file to supplement: dd if=/dev/zero of=/swap1.swp bs=1024 count=512K mkswap /swaptemp.swp swapon /swa[...]


Share the same SWAP partition in Linux and Windows

If you’re short on hard disk space and would like to share the same SWAP partition in Linux and Windows, you can try the following trick: 1. Format the partition as a DOS partition and create the Windows SWAP file [...]


Get rid of SWAP in Linux

If for whatever reason you wish not to use your Linux SWAP anymore, you can use the swapoff command. Do a swapon -s to see to which partition SWAP belongs to then a free -mt to check available memory. If you still want t[...]