[MACOS] Command "dd"

1.Unmount the Volume

diskutil list
...
sudo diskutil umount /Volumes/NO\ NAME/

2.For OS X, use /dev/rdisk2.

For some reason rdisk is faster than disk. I believe it has to do with buffers.

Also in general using the bs flag with dd helps with speed.



sudo dd if=xxx.usb of=/dev/rdisk2 bs=1048576
or


sudo dd if=xxx.usb of=/dev/rdisk2 bs=1m
the units must be in lower case letters (1m).
or
conv=sync (optional)

sudo dd if=xxx.usb of=/dev/rdisk2 bs=1m conv=sync

3.After the dd command finishes, eject the usbstick:


sudo diskutil eject /dev/disk2

Comments

Popular posts from this blog

Python3 + Django + uWSGI + Nginx On FreeBSD

arduino最小構成 (atmega328/8MHz/3.3V/内部クロック)FT232RLにてブートローダーの書き込み

FreeBSD: Configuring Apache to permit CGI