PiShrink icon indicating copy to clipboard operation
PiShrink copied to clipboard

Always getting 40GB images after shrinking about 8GB of data.

Open peregrines2 opened this issue 8 months ago • 2 comments

Hi!

I am trying to shrink multiple Micro SD cards containing Victron Venus OS images (4 partitions each system). Data size is only about 8GB Unfortunately I am getting 40GB images - whatever I try :( I am using Ubuntu! Any hints what I am doing wrong? Thank You!

Image

peregrines2 avatar May 09 '25 10:05 peregrines2

That size is outside of PiShrink's control. Something you could try doing is running e4defrag and see if after that you can shrink the partition more. Try it on the live system and if it lets you shrink the image more after I'll add it into the script!

Drewsif avatar May 10 '25 02:05 Drewsif

I had the same issue and discovered you need to make sure the file system is expanded using raspi-config or resize2fs. This no longer happens automatically in Bookworm. Doing this I was able to actually shrink the image.

JohnZable avatar Sep 13 '25 23:09 JohnZable