How to burn Raspberry Pi image on Mac

By admin, 16 六月, 2015

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

标签

评论

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"