write img file to sdcard on mac

1, show disk details on mac terminal,Or use df -h
diskutil list

2, find the sdcard disk(here is '/dev/disk2'),then unmount it
Or U will get error like 'Resource busy' for disk mounted
diskutil unmount /dev/disk2
Or trydiskutil unmountDisk /dev/disk2

3, then,write the imge to sdcard,It should be sometimes
sudo dd if=kali-2.1-rpi2.img of=/dev/disk2 bs=512k
More
sudo dd if=kali-2.1-rpi2.img of=/dev/disk2 bs=512k conv=noerror,sync
The parameter 'noerror' of conv is the process will skip it if occur error,
and the 'sync' is for fill the error location with empty data for stablity of the file system.
xzcat kali-$version-rpi2.img.xz | dd of=/dev/sdb bs=512k
Official site command is(for xz file)

$ ref
img download

最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 安装Docker ToolBox Image-镜像 国内源阿里云--登陆进入管理界面,在操作手册选择系统,按步操作...
    ShindouHiro阅读 616评论 0赞 0
  • 我的手啊,很遭罪,体现在我时不时的好奇心泛滥,就会练琴(尤克里里),我是在2015年的下半年,某一天实在无聊,就在...
    瀚文ILoveU阅读 308评论 0赞 0
  • 在实际项目上,一般是通过服务总线跟jms交互,oracle esb是oracle公司提供的服务总线产品简称osb,...
    阿三君阅读 765评论 0赞 1
  • 《最好的我们》已经接近尾声,被剧里流淌的青春气息深深感染,搁浅在心房角落里的回忆升腾而起,有幸在最美的年华经历了一...
    梳槐阅读 658评论 0赞 2

友情链接更多精彩内容