by 0942v8653 · 11y ago · 0 comments
diskutil unmount /dev/diskNs1
to diskutil unmountDisk /dev/diskN
The former does not work if the disk has multiple partitions.Also you may want to put that command before the dd, because most people will have to run it.