Linked Questions
11 questions linked to/from How to set up swap space?
271
votes
14answers
165k 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 ...
179
votes
5answers
362k 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 ...
20
votes
1answer
7k 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
3answers
6k 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 ...
6
votes
2answers
551 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 ...
4
votes
1answer
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,...
1
vote
0answers
2k 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
2answers
2k 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 ...
1
vote
1answer
897 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.
2
votes
1answer
134 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 ...
0
votes
0answers
51 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 &...