8000 Note multiple partitions may need to be unmounted (#726) · macmpi/documentation@87e6ce2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 87e6ce2

Browse files
janickiJamesH65
authored andcommitted
Note multiple partitions may need to be unmounted (raspberrypi#726)
* Note multiple partitions may need to be unmounted * copy edits * copy edits
1 parent c460823 commit 87e6ce2

File tree

1 file changed

+24
-5
lines changed
  • installation/installing-images

1 file changed

+24
-5
lines changed

installation/installing-images/mac.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,40 @@ This will take a few minutes, depending on the size of the image file. To check
6767
6868
## Alternative method
6969
70-
**Note**: some users have reported issues with using this method to create SD cards.
70+
**Note**: Some users have reported issues with using this method to create SD cards, possibly because earlier versions of these instructions didn't note that it may be necessary to unmount multiple partitions on the SD card.
7171
7272
These commands and actions must be performed from an account that has administrator privileges.
7373
74-
- From the terminal run `df -h`.
74+
- From the terminal run `df -h`. For example:
75+
```
76+
$ df -h
77+
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
78+
/dev/disk1 233Gi 73Gi 159Gi 32% 1552273 4293415006 0% /
79+
devfs 189Ki 189Ki 0Bi 100% 654 0 100% /dev
80+
map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net
81+
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
82+
```
7583
- Connect the SD card reader with the SD card inside.
76-
- Run `df -h` again and look for the new device that was not previously listed. Record the device name of the filesystem's partition, for example `/dev/disk3s1`.
77-
- Unmount the partition so that you will be allowed to overwrite the disk:
84+
- Run `df -h` again and look for the new device which was not previously listed. Record the device name(s) of the filesystem's partition(s), for example `/dev/disk3s5` and `/dev/disk3s1`. Notice the last two lines:
85+
```
86+
$ df -h
87+
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
88+
/dev/disk1 233Gi 73Gi 159Gi 32% 1552273 4293415006 0% /
89+
devfs 189Ki 189Ki 0Bi 100% 654 0 100% /dev
90+
map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net
91+
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
92+
/dev/disk3s5 60Mi 20Mi 40Mi 33% 512 0 100% /Volumes/boot
93+
/dev/disk3s1 812Mi 740Mi 71Mi 92% 0 0 100% /Volumes/RECOVERY
94+
```
95+
- Unmount the partition(s) so that you will be allowed to overwrite the disk:
7896
7997
```
98+
sudo diskutil unmount /dev/disk3s5
8099
sudo diskutil unmount /dev/disk3s1
81100
```
82101
83102
Alternatively, open Disk Utility and unmount the partition of the SD card. Do not eject it. If you eject it, you will have to reconnect it.
84-
- Using the device name of the partition, work out the **raw device name** for the entire disk by omitting the final `s1` and replacing `disk` with `rdisk`. This is very important, as you will lose all data on the hard drive if you provide the wrong device name. Make sure the device name is the name of the whole SD card as described above, not just a partition of it, for example, `rdisk3`, not `rdisk3s1`. Similarly, you might have another SD drive name/number like `rdisk2` or `rdisk4`. You can check again by using the `df -h` command, both before and after you insert your SD card reader into your Mac. For example: `/dev/disk3s1` becomes `/dev/rdisk3`.
103+
- Using the device name of the partition, work out the **raw device name** for the entire disk by omitting the final `s#` and replacing `disk` with `rdisk`. This is very important, as you will lose 48BD all data on the hard drive if you provide the wrong device name. Make sure the device name is the name of the whole SD card as described above, not just a partition of it, for example, `rdisk3`, not `rdisk3s1`. Similarly, you might have another SD drive name/number like `rdisk2` or `rdisk4`. You can check again by using the `df -h` command, both before and after you insert your SD card reader into your Mac. For example: `/dev/disk3s1` becomes `/dev/rdisk3`.
85104
- In the terminal, write the image to the card with this command, using the raw device name from above. Read the above step carefully to make sure that you use the correct `rdisk` number here:
86105
87106
```

0 commit comments

Comments
 (0)
0