Get rid of SWAP in Linux

By | November 7, 2008

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 to give up your SWAP, try a

swapoff /dev/hdxx

where /dev/hdxx is the location of the SWAP. You can later reactivate SWAP with swapon.

One thought on “Get rid of SWAP in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *