Question 1.12: Using All the Storage on the SD Card When an operating syste......

Using All the Storage on the SD Card

When an operating system is written to a Raspberry Pi’s SD card, the partition size is fixed by the image you install so you cannot use the whole of the SD card. This leaves little room for your own files.

Step-by-Step
The 'Blue Check Mark' means that this solution was answered by an expert.
Learn more on how do we answer questions.

To fix this, you need to run the raspi-config tool. This program automatically runs the first time that you boot your Raspberry Pi with a new SD card. You can also start it any time you need to adjust the configuration by opening a Terminal session and issuing the command:

$ sudo raspi-config

Scroll down to the option expand_rootfs, and then use the cursor keys to press the Select button (Figure 1-9).

You will see a confirmation message, and then your Raspberry Pi will need to restart for the change to take effect.

You should now be able to use the full capacity of the SD card.

Discussion

Adjusting the root partition is definitely worth doing, especially for storing temporary files, but keeping your documents and personal files on a USB flash drive avoids the need to transfer files when you update your operating system.

See Also

You can find much more information about the raspi-config tool at http://elinux.org/RPi_raspi-config.

1.9

Related Answered Questions

Question: 1.18

Verified Answer:

The Raspberry Pi camera module (Figure 1-17) is at...
Question: 1.17

Verified Answer:

Click on the red Logout button in the bottom-right...
Question: 1.15

Verified Answer:

You can use the raspi-config tool to change your p...
Question: 1.14

Verified Answer:

You can increase the clock frequency of a Raspberr...
Question: 1.10

Verified Answer:

Many people have been caught out by this problem. ...
Question: 1.9

Verified Answer:

Unless you are embedding your Raspberry Pi in a pr...