Results 1 to 3 of 3

Thread: How to absolutely turn off 'swap'?

  1. #1
    Join Date
    Aug 2012

    How to absolutely turn off 'swap'?

    How can I absolutely turn swap off? Setting 'swappiness' to zero doesn't actually prevent it. I want it so that when I run "top" it actually says "Swap: 0k Total...".

    Forgive me if I don't explain why, but I think it might invite argument.

    It's looking like the "swapoff -a" command is what I need, but I don't know where to put it, and it would be better to not enable it rather than having it and then disabling it.

  2. #2
    Join Date
    Nov 2009
    Segur De Calafell, Spain
    Ubuntu 12.04 Precise Pangolin

    Re: How to absolutely turn off 'swap'?

    Open /etc/fstab for editing with:
    gksu gedit /etc/fstab

    and simply add # at the start of the line mounting swap. That will comment out (disable) that line. In the future if you want to enable it, remove the #.

    Save and close the file. Reboot.
    Ubuntu 14.04 LTS 64bit & Windows 7 Ultimate 64bit

  3. #3
    Join Date
    Aug 2012

    Re: How to absolutely turn off 'swap'?

    Worked perfectly, thank you.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts