Skip to content

Commit d5701f7

Browse files
committed
Merge pull request raspberrypi#239 from LukeLR/master
Improved description of image installation for mac
2 parents 877cd22 + 6225f8d commit d5701f7

File tree

1 file changed

+26
-7
lines changed
  • installation/installing-images

1 file changed

+26
-7
lines changed

installation/installing-images/mac.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,53 @@ On Mac OS you have the choice of the command line `dd` tool or using the graphic
1111
- From the terminal run:
1212

1313
```
14-
sudo dd bs=1m if=path_of_your_image.img of=/dev/diskn
14+
sudo dd bs=1m if=path_of_your_image.img of=/dev/rdiskn
1515
```
1616
1717
Remember to replace `n` with the number that you noted before!
1818
19+
- If this command fails, try using `disk` instead of `rdisk`:
20+
21+
```
22+
sudo dd bs=1m if=path_of_your_image.img of=/dev/diskn
23+
```
24+
1925
## Command line
2026
2127
- If you are comfortable with the command line, you can image a card without any additional software. Run:
2228
2329
`diskutil list`
2430
25-
- Identify the disk (not partition) of your SD card e.g. `disk4` (not `disk4s1`):
31+
- Identify the disk (not partition) of your SD card e.g. `disk4` (not `disk4s1`).
32+
- Unmount your SD card by using the disk identifier to prepare copying data to it:
2633
27-
`diskutil unmountDisk /dev/<disk# from diskutil>`
34+
`diskutil unmountDisk /dev/disk<disk# from diskutil>`
2835
2936
e.g. `diskutil unmountDisk /dev/disk4`
37+
38+
- Copy the data to your SD card:
3039
31-
`sudo dd bs=1m if=image.img of=/dev/<disk# from diskutil>`
40+
`sudo dd bs=1m if=image.img of=/dev/rdisk<disk# from diskutil>`
3241
33-
e.g. `sudo dd bs=1m if=2015-05-05-raspbian-wheezy.img of=/dev/disk4`
42+
e.g. `sudo dd bs=1m if=2015-05-05-raspbian-wheezy.img of=/dev/rdisk4`
3443
35-
This may result in an ``dd: invalid number '1m'`` error if you have GNU
44+
- This may result in an ``dd: invalid number '1m'`` error if you have GNU
3645
coreutils installed. In that case you need to use ``1M``:
3746
38-
`sudo dd bs=1M if=image.img of=/dev/<disk# from diskutil>`
47+
`sudo dd bs=1M if=image.img of=/dev/rdisk<disk# from diskutil>`
3948
4049
This will take a few minutes, depending on the image file size.
4150
You can check the progress by sending a `SIGINFO` signal pressing <kbd>Ctrl</kbd>+<kbd>T</kbd>.
51+
52+
- If this command still fails, try using `disk` instead of `rdisk`:
53+
54+
```
55+
e.g. `sudo dd bs=1m if=2015-05-05-raspbian-wheezy.img of=/dev/disk4`
56+
```
57+
or
58+
```
59+
e.g. `sudo dd bs=1M if=2015-05-05-raspbian-wheezy.img of=/dev/disk4`
60+
```
4261
4362
## Alternative method
4463

0 commit comments

Comments
 (0)