Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to install Phusion Passenger and since I had less than 1GB free memory it recommended temporarily adding swap space with there commands:

sudo dd if=/dev/zero of=/swap bs=1M count=1024
sudo mkswap /swap
sudo swapon /swap

Passenger installed successfully so do I now have to disable that swap space - how? It didn't say anything about reverting but I think it should because it said "temporarily add swap space". How do I negate this effect now?

share|improve this question
up vote 6 down vote accepted

It's up to you whether you want to disable it or not. If you do nothing else, it'll be gone if/when you reboot. If you want it permanent, you'll have to add it to /etc/fstab. If you do want to disable it:

sudo swapoff /swap
share|improve this answer
In either case, you can and should reclaim the disk space with rm /swap once the swap is disabled (by reboot or swapoff). – Falcon Momot Jul 31 '13 at 22:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.