1

So I have created an image of my RaspberryPi setup(using Win32DiskImager). I am using 32gb sd cards and when I go to write the image to other cards it doesn't fit. I've seen lots of others have this same issue and most of them say to use the live gpart desktop to resize it which I've done with no luck. I've also tried truncating like seen here: Image of a 16Gb card containing unpartitioned space at the end: Truncating possible? with no luck.

So here is where I am at:

  • I've downloaded and started up http://gparted.org/livecd.php
  • I have successfully resized the partitions that have all the extra space. I've tried setting their format type to be both unformatted and cleared neither seem to help(when it came to creating the image)
  • My new total size of the drive is 25gb instead of the 29 it was. When I go to create the image of the disk now its still the same size as it was before.

Can anyone help with how do I actually get the image to be smaller in size so I can write to multiple other sdcards?

Thanks for any help or direction!

Silent
  • 113
  • 3

2 Answers2

1

I did this yesterday with an 8GB card (I made the partitions fit in about 7.5 GB) and the image worked when written to another card, despite Win32DiskImager reading out all 8GB (and writing it to another card). When we made the partitions smaller, it ensured that nothing important was lost with the new smaller card.

Before I made the partitions smaller, I had a similar problem where the NOOBs bootloader would complain about a corrupt settings partition on some cloned cards. I believe it was due to some of the cards having fewer sectors (less than 8GB worth) physically available.

0

It is not all that difficult to copy only the used part with dd and you will find LOTS of posts on this.

However if all you want to do is copy a card, just use the new SD Card Copier in the latest Raspbian. https://www.raspberrypi.org/blog/another-update-raspbian/

Milliways
  • 62,573
  • 32
  • 113
  • 225