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倍,还是很有成效的。

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

推荐阅读更多精彩内容

  • 孩子吃母乳到两岁零四个月,断奶后,有一段时间惯性使然,冷不丁对妈妈采取袭胸行为。 每次她一现“进攻”苗头,我马上进...
    雪梨喵喵阅读 1,371评论 0 0
  • 嘉善花艺培训,媞亚花艺,花艺师的成长基地! 如今花的应用越来越广泛了,婚礼,宴会,酒店,都需要花艺作为时尚浪漫的点...
    媞亚花艺阅读 3,984评论 0 0
  • “简约不是少,而是没有多余,足够也不是多,而是刚好你在。
    juan目的导向阅读 1,072评论 0 0
  • 逸之何春雷阅读 3,720评论 3 22
  • 《爱的五种语言》4-8章 可执行行动片段之谦和的话语 我之所以选择这段,是因为我对部分的内容印象特别深刻,我尝试着...
    我是高太阅读 1,040评论 0 0