Mac OS下刻录SD卡

        在MAC OS下刻录树莓派的img到SD卡的时候提示Resource is busy, 通过diskutil list查看是由于SD下的两个分区被挂载上了,包含/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命令进行刻录了,但是这个时候发现dd速度实在太慢了,8G的金士顿SD卡只有几MB的速度,实在是不能忍。通过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倍,还是很有成效的。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容