I'm trying to duplicate a complete image with Raspbian and a custom video installation software multiple times; I bought eight identical Micro SD cards (SanDisk 32 GB). I made a master image, I copied it using
dd. Now I'm trying to write that image to the other seven cards. I'm using Disk Image Writer on Gnome to do so. This went fine for the first six cards, but somehow the seventh is rejected, saying its capacity is too small (700 MB or so are missing). That one had been formatted before, so my hope is this is just a bug in the image writer. Because technically the cards should be 100% the same size.
What can I do? Can I force to write the image nevertheless? (The actual data only occupies like 2/3 of the 32 GB). Can I "shrink" the existing
.img by throwing away some of the blank space? Can I reformat the card with a trick to look like a brand new one?
Edit: Here is what
fdisk -l is giving me:
Disk raspi-player-0.1.0.img: 29.7 GiB, 31914983424 bytes, 62333952 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xee957452 Device Boot Start End Sectors Size Id Type raspi-player-0.1.0.img1 8192 137215 129024 63M c W95 FAT32 (LBA) raspi-player-0.1.0.img2 137216 62333951 62196736 29.7G 83 Linux