怎样在Mac上制作树莓派映像文件

黄冠能 发布于 2015/06/18 12:15
阅读 1K+
收藏 1

很抱歉,由于我没有在Google上找到直接的答案,觉得这篇文章可能对外国人有用,所以用英文写了。

First, get image from Raspberry Pi Download Page. I choose Ubuntu Mate image for Raspberry Pi.

Unzip the image file with following command in terminal:

 

bzip2 -d ubuntu-mate-15.04-desktop-armhf-raspberry-pi-2.img.bz2

 

Insert Micro SD card in a card reader, then insert card reader into Mac USB port. Find the device file with df command as below:

 

 

~$ df

Filesystem    512-blocks      Used  Available Capacity  iused     ifree %iused  Mounted on

/dev/disk2     247665408 216687976   30465432    88% 27149995   3808179   88%   /

devfs                385       385          0   100%      666         0  100%   /dev

/dev/disk1s2  1464477344 408497672 1055979672    28% 51062207 131997459   28%   /Volumes/HD

map -hosts             0         0          0   100%        0         0  100%   /net

map auto_home          0         0          0   100%        0         0  100%   /home

/dev/disk3s1    11027232   3164792    7862440    29%        0         0  100%   /Volumes/NO NAME

We can find that /dev/disk3s1 is the sdcard in above example. So /dev/disk3 is the device file. In your case, it may be /dev/disk2. Confirm this, or you may lose your useful Mac disk data.

Now, unmount the card with following command (not eject it from Finder, or you will get error of "Operation not supported" when executing dd command).

 

sudo diskutil unmountDisk /dev/disk3

 

Burn it. Make sure there "r" before "disk" this time, it will skip buffers and much faster (but still need more than 10 minutes). Official document method with ddrescue doesn't work on Mac. It will complain: Direct disc access not available.

 

sudo dd if=ubuntu-mate-15.04-desktop-armhf-raspberry-pi-2.img of=/dev/rdisk3 bs=1m

 

原文链接:How to burn Raspberry Pi image on Mac

加载中
0
改着名儿玩
改着名儿玩
英文杠杠的,我都能看懂啦
返回顶部
顶部