If the command reports
dd: /dev/rdiskN: Resource busy
you need to unmount the volume first
sudo diskutil unmountDisk /dev/diskN
If the command reports
dd: bs: illegal numeric value ,
change the block size
bs=1m
to
bs=1M
If the command reports
dd: /dev/rdiskN: Operation not permitted
go to
System Preferences
-> Security & Privacy
-> Privacy
-> Files and Folders
-> Give Removable Volumes access to Terminal
If the command reports
dd: /dev/rdiskN: Permission denied
the partition table of the SD card is being protected against being overwritten by Mac OS.
Erase the SD card's partition table using this command:
$ sudo diskutil partitionDisk /dev/diskN 1 MBR "Free Space" "%noformat%" 100%
That command will also set the permissions on the device to allow writing.
Now issue the
dd
command again.
|