? ? ? ? 在MAC OS下刻錄樹莓派的img到SD卡的時(shí)候提示Resource is busy喘垂, 通過diskutil list查看是由于SD下的兩個(gè)分區(qū)被掛載上了,包含/dev/disk3s1和/dev/disk3s2, 通過sudo diskutil umountDisk /dev/disk3s1 和sudo diskutil umountDisk /dev/disk3s1 后,就可以通過sudo dd if=/Users/zgf/Downloads/ubuntu-mate-16.04.2-desktop-armhf-raspberry-pi.img | pv -s 8G | sudo dd of=/dev/disk3命令進(jìn)行刻錄了,但是這個(gè)時(shí)候發(fā)現(xiàn)dd速度實(shí)在太慢了,8G的金士頓SD卡只有幾MB的速度盈匾,實(shí)在是不能忍。通過google得知http://daoyuan.li/solution-dd-too-slow-on-mac-os-x/毕骡, 需要把disk3改為rdisk3削饵, 原因如下:
/dev/rdisk nodes are character-special devices, but are “raw” in the BSD sense and force block-aligned I/O. They are closer to the physical disk than the buffer cache. /dev/disk?nodes, on the other hand, are buffered block-special devices and are used primarily by the kernel’s filesystem code.
改過之后,速度提升了近4倍未巫,還是很有成效的兜辞。