geerlingguy / diet-raspbian

DEPRECATED - Trim the fat from the default Raspbian image.
http://files.midwesternmac.com/#raspberry-pi-images
34 stars 6 forks source link

Update directions for creating a clone - use fdisk #4

Closed geerlingguy closed 9 years ago

geerlingguy commented 9 years ago

Currently, whatever size SD card you're using will determine the ultimate size of the disk image created from this project... Instead of doing things this way, it would be best if we used fdisk to resize the main partition from 8GB/32GB/whatever down to maybe 1GB, then shut down the Pi and built the image off that.

Two things that need to be done:

geerlingguy commented 9 years ago

Woot, also down to 690M:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs          7.2G  690M  6.2G  10% /
geerlingguy commented 9 years ago

I'm going to switch back to using dd to fill in the free space for now. As long as you don't expand the partition to fill the drive using raspi-config initially, the disk will be 3 GB (for now).