Backup/restore SD drive on Mac
Migrating your data to another SD disk drive.
This shows how you can backup and restore an SD card, handy if you are transferring images or data or an OS from one card to another.
Using the Terminal just type the following to find out where your disk is.
diskutil list And you end up with something like the following.
You can see the flash drive inserted into the Mac as disk2.
To backup, I’m doing this with a Raspberry Pi OS SD card, so I can migrate from 8GB to 16GB to fit more camera photos on it and to negate resetting up everything when tinkering goes wrong. This will take several minutes to process, so be patient, also make sure you have the correct disks named, otherwise you can corrupt your main disk drive here using sudo, YOU ARE WARNED, THIS IS YOUR RESPONSIBILITY!
Format your shiny new disk by using (Mac only described here) the Diskutility to Erase the disk with the MS-DOS (FAT) format.
Then, unmount the disk otherwise you will get a Resource Busy notice…
Then, start the flash process for the new card, this may take a while, if nothing is happening this is a good sign so let it run it’s course…
Hope this helps someone out there :)