Resizing Existing Partitions; Automatic Resizing - Raspberry Pi User Manual

Hide thumbs Also See for Raspberry Pi:
Table of Contents

Advertisement

76
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 flex-
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

The Debian Linux distribution for the Raspberry Pi comes with a tool called
which loads when the system is booted for the first time . It can also be loaded manually at
any time by typing
provides an interface for many common configuration tasks, including the ability to resize
the root file system to make full use of the available space on an SD card automatically .
Using the raspi-config tool to resize the root file system can, in rare cases, result in data
WARNING
corruption. If you have data stored on the Pi which you can't afford to lose, back it up first or
consider following the more reliable manual resizing instructions found later in this chapter.
R A S P B E R R Y P I
at the console or in a terminal window . This tool
sudo raspi-config
U S E R G U I D E 
,
raspi-config

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents