Hardware Reference
In-Depth Information
Figure 5-2:
Editing fstab
to automatically
mount the new
partition
Resizing Existing Partitions
Creating a new partition is one way to make use of a larger SD card, but it's not the most lex-
ible. A better method is to resize existing partitions to make use of the free space. To do this
reliably, you'll need to unplug the Pi, remove the SD card and insert it into a desktop or lap-
top through a card reader.
Automatic Resizing
he Debian Linux distribution for the Raspberry Pi comes with a tool called
raspi-config
,
which loads when the system is booted for the irst time. It can also be loaded manually at
any time by typing
sudo raspi-config
at the console or in a terminal window. his tool
provides an interface for many common coniguration tasks, including the ability to resize
the root ile system to make full use of the available space on an SD card automatically.
Using the
raspi-config
tool to resize the root ile system can, in rare cases, result in data
corruption. If you have data stored on the Pi which you can't afford to lose, back it up irst or
consider following the more reliable manual resizing instructions found later in this chapter.
WARNING