Shrink/Expand Raspberry Pi Filesystem Images

Shrink/Expand Raspberry Pi Filesystem Images

This post documents a few tricks I found useful when making SD card images for Raspberry Pi projects, to minimize file size and download times while making full use of the SD card space. These instructions work for Raspbian Stretch images; not sure about older or newer versions.

The first time a Raspbian system boots, it runs a program to expand the filesystem to use the full size of the SD card. So, when you are using a Raspberry Pi system you automatically get the benefit of the full (e.g., 8GB) SD card size. The problem is that when you copy the card image you copy the whole 8GB, even if only 2GB is in use. That takes up a lot of unneeded space, and lengthens download times.

So, the first task is to reduce the size of the image to a minimum.


http://blog.febo.com/wp/?p=283


RaspberryPi
https://groups.io/g/RaspberryPi
***** share this with others ******


No comments:

Post a Comment

Note: only a member of this blog may post a comment.