Beta 42

Research and Development

Menu

Flash and Backup SD Card

Flash SD Card

Expand the Root Partition

After installing a new OS on your PI's SD card there is a lot of disk space missing on the card. By expanding the root partition of the card that missing space can be regained.

Open the PI’s configuration screen in the terminal window by typing:

sudo raspi-config

Run the bottom option to make sure you have the latest version of the configuration software:

update

Run the second option:

expand_rootfs

Click Finish and select YES when it asks for a reboot.

Backup SD Card

First use fdisk to get the device id of you SD card (check the size):

fdisk -l

Then use dd to make a diskimage (change /dev/sdb with what you found with fdisk -l):

dd bs=4M if=/dev/sdb of=image1-`date +%d%m%y`.img

or this to make a compressed image:

dd bs=4M if=/dev/sdb | gzip > image1-`date +%d%m%y`.img.gz