@@ -16,45 +16,48 @@ On Mac OS you have the choice of the command line `dd` tool or using the graphic
16
16
17
17
Remember to replace `n` with the number that you noted before!
18
18
19
- - If this command fails, try using `disk` instead of `rdisk`:
19
+ - If this command fails, try using `disk` instead of `rdisk`:
20
20
21
- ```
22
- sudo dd bs=1m if=path_of_your_image.img of=/dev/diskn
23
- ```
21
+ ```
22
+ sudo dd bs=1m if=path_of_your_image.img of=/dev/diskn
23
+ ```
24
24
25
25
## Command line
26
26
27
27
- If you are comfortable with the command line, you can image a card without any additional software. Run:
28
28
29
29
`diskutil list`
30
30
31
- - 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:
32
33
33
34
`diskutil unmountDisk /dev/disk<disk# from diskutil>`
34
35
35
36
e.g. `diskutil unmountDisk /dev/disk4`
37
+
38
+ - Copy the data to your SD card:
36
39
37
40
`sudo dd bs=1m if=image.img of=/dev/rdisk<disk# from diskutil>`
38
41
39
42
e.g. `sudo dd bs=1m if=2015-05-05-raspbian-wheezy.img of=/dev/rdisk4`
40
43
41
- 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
42
45
coreutils installed. In that case you need to use ``1M``:
43
46
44
- `sudo dd bs=1M if=image.img of=/dev/rdisk<disk# from diskutil>`
47
+ `sudo dd bs=1M if=image.img of=/dev/rdisk<disk# from diskutil>`
45
48
46
49
This will take a few minutes, depending on the image file size.
47
50
You can check the progress by sending a `SIGINFO` signal pressing <kbd>Ctrl</kbd>+<kbd>T</kbd>.
48
51
49
- If this command still fails, try using `disk` instead of `rdisk`:
52
+ - If this command still fails, try using `disk` instead of `rdisk`:
50
53
51
- ```
52
- e.g. `sudo dd bs=1m if=2015-05-05-raspbian-wheezy.img of=/dev/disk4`
53
- ```
54
- or
55
- ```
56
- e.g. `sudo dd bs=1M if=2015-05-05-raspbian-wheezy.img of=/dev/disk4`
57
- ```
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
+ ```
58
61
59
62
## Alternative method
60
63
0 commit comments