Sometime you may feel like you need to temporarily disable your swap memory.
For some reason, it makes copying files to flash drive slow and in worst case scenario, cause the system to freeze. This is especialy prevelaent in some of the new builds of Ubuntu. (I experienced it in Ubuntu 13.10: Raring Ringtail).

But not to worry, there is a simple fix to this.

To switch it off
Step 1:
Open the terminal- Ctrl+Alt+T(or search the dash).
Note: If your terminal session is root, exclude the `sudo`.

Step 2:
Write the following command:
sudo swapoff -a
Press return(Enter)
Provide a password if prompted.

Swap turned off
Swap turned off

Thats it 🙂

To turn it back on
Step 1:
Repeat Step 1 above.

Step 2:
Write the following command:
sudo swapon -a
Press return(Enter)
Provide a password if prompted.

Swap turned on
Swap turned on

Big Note:
Incase of the following #Error:
‘Could not allocate free memory’ or any other, the simplest solution is to restart the computer and try the steps as the first thing