Linked Questions
13 questions linked to/from How to set up swap space?
296 votes
14 answers
195k views
How can I extend the life of my SD card?
I'm not all that keen to buy a USB hard disk, but I'm aware that SD cards aren't suitable for many repetitions of reading and writing. Are there any steps I can take to extend the life of my SD card ...
187 votes
5 answers
412k views
How can I resize my / (root) partition?
Even though my SD card is 16GB, the image I flashed onto it was only 2GB and now I can only see 2GB of storage space on the disk. How can I resize the image so that I have more space on my root ...
21 votes
1 answer
8k views
How can I use a USB HDD to extend the life of my SD Card?
How can I set up a USB HDD to extend the life of my SD Card and maximize the performance of my Raspberry Pi? Related: How can I extend the life of my SD card?
5 votes
4 answers
8k views
Command apt-get upgrade crashes Raspbian
The image file I am using is quite old. How old exactly I am not sure, because this image I have inherited from previous developer. I have learnt that running: sudo apt-get update sudo apt-get ...
2 votes
2 answers
7k views
Pi Zero W swap size limit
I think the default size of the swap file for Raspberry Pi Zero W is 100 MB. I would like to increase this in an effort to improve performance, but don't want to make it too large as the Pi Zero W has ...
6 votes
1 answer
1k views
How can I install keybase (and dependencies) without running out of memory?
I have a Raspberry Pi 3 running the most recent Raspbian distro. I've installed the most recent go, from the prebuilt package and have it on my path: $ go version go version go1.9 linux/arm However, ...
6 votes
2 answers
726 views
Why has Raspbian enabled swap by default if that is bad?
I always read that swap on a Pi should be disabled because enabling it lowers SD card lifetime and is very slow anyways (no performance gain with swap). So I disabled it. But is there a good reason ...
3 votes
1 answer
2k views
How to install newer cmake on Raspbian?
I have a Raspberry Pi 1B with Raspbian Buster. It comes with cmake 3.13. I need version 3.16 or later. How can I obtain this version of cmake? What I tried so far: I attempted to compile cmake from ...
2 votes
0 answers
3k views
Traditional swap file rather than dphys-swapfile?
I have a RPI-3 with the ARMv8 Broadcom SoC. I needed to create a swap file because I was running out of memory on occasion. I used a traditional swap file in a separate partition because the dphys-...
1 vote
1 answer
1k views
Why is my Raspberry Pi not using swap space?
I have a Raspberry Pi 3 and I created a swap space with reference to this tutorial, How to set up swap space?. However, even when my memory is almost fully used, none of my swap memory is used.
1 vote
2 answers
531 views
Java IDEs won't open on my pi. How do I get them to open?
Of the preinstalled programming tools on raspbian all of them work except for the java IDEs(bluej and greenfoot). I've scoured the internet but have found nothing. really need to code in java for a ...
0 votes
0 answers
334 views
How do you encrypt SWAP on Raspberry Pi OS?
I followed the instructions at Transparent Encryption For a User's Home Folder to encrypt my home folder. It all worked except the last command: sudo ecryptfs-setup-swap returned: Unknown device &...
-1 votes
1 answer
283 views
swap file falls off after reboot when move to USB flash
I trying move swap file to USB flash from SD card it work fine but after rebooting swap file falls off, command free -m show swap is 0 I move swap file to USB flash dphys-swapfile swapoff dphys-...