I've built a beautifully crafted SD card for my application using a Raspberry Pi Zero. Before shipping it to my customer I've made a backup.
What I did on my Mac BookPro is
- Open DiskUtility
- Menu `File/New Image.../Image from "APPLE SD Card Reader Media"
- Choose "Compress image"
and wait.
The original SD card was 16GB.
The resulting DMG file (if mounted) gives
/dev/disk3 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme +16.1 GB disk3
1: Windows_FAT_32 boot 43.0 MB disk3s1
2: Linux 15.9 GB disk3s2
Then, using Etcher, I usually etch the resulting DMG to a new SD. But this time the resulting size is too big for the SD. Of course the original Card was a 16GB and I'm trying to copy it to another SD. I've tried changing several SD and the result is always the same. I don't know why.
I've done another backup of another SD card (different content) without compressing the image, and it seems to write back correctly.
Any idea on how to recover my data? Thanks Walter
dd
command to copy to smaller drives: raspberrypi.stackexchange.com/questions/82347/…dd
technique you can always know that. In fact, it can save to .IMG files (which are essentially .ISO) - However, in order to be use the easier methods it is imperative that you have image (or DMG) files that can match the SD cards you plan to use in the future. The Q&A referenced above was triggered by discovering that even though I was purchasing what I thought were all identical cards, one of the early cards was slightly larger so wouldn't fit. Saving images is more picky. Butdd
doesn't care. It may well turn out that a similar method may be applicable to Macs.