New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way to disable the Swap File on Raspbian #20

Open
MrChrisJ opened this Issue Feb 24, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@MrChrisJ
Owner

MrChrisJ commented Feb 24, 2016

Ok so one issue I am having is the how to disable and re-enable the Swapfile on the Raspbian Jessie OS. So far the best source I found was from the first comment on this post:

To disable:

sudo chmod -x /etc/init.d/dphys-swapfile
sudo swapoff -a
sudo rm /var/swap

Then to re-enable it looks like all you have to do is:

sudo chmod +x /etc/init.d/dphys-swapfile
sudo nano /etc/dphys-swapfile
sudo dphys-swapfile setup

Anybody know of better ways? I want to add this to the video I am making. The draft is here: https://www.youtube.com/watch?v=pbWimjc0cig

MrChrisJ added a commit that referenced this issue Feb 24, 2016

@marrem

This comment has been minimized.

marrem commented Dec 1, 2016

Since jessie is systemd, one might also use:

sudo systemctl disable dphys-swapfile

Check with

sudo systemctl status dphys-swapfile 

Reboot and check again ....

MrChrisJ pushed a commit that referenced this issue Mar 22, 2017

Chris Ellis
New bash scripts
Updated Scripts folder. Thanks to @marrem for comments on handling swap
file with systemd on Issue #20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment