Always getting 40GB images after shrinking about 8GB of data.
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!
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!
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.