FG
💻 Software

How do I shrink an SD Card image?

Fresh7 days ago
Mar 15, 202611415 views
Confidence Score0%
0%

Problem

I imaged a 16 GB SD card using the dd command. The card however, does not have more than 4 GB of data on it across 2 partitions (FAT32 & ext3). I would like to transfer this image on to a 8GB SD card. How do I go about shrinking the image?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I shrink an SD Card image?

Low Risk

Assuming Linux, something like this could be done: Attach the image to a loop device using . Do not mount any partitions. Using , shrink the first partition to less than 50% of original size. Move the second partition to the newly created free space…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment