How to install Raspbian to SD card on Mac
1 answer
-
Download the raspbian image from the Raspbian website
-
Extract zip file
-
Run
df -h
on any terminal
$ df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1 465Gi 278Gi 186Gi 60% 3262771 4291704508 0% /
devfs 191Ki 191Ki 0Bi 100% 660 0 100% /dev
map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
/dev/disk2s1 60Mi 20Mi 40Mi 34% 512 0 100% /Volumes/boot
Get disk number from df -h output. In the example above, X would be 2
- Unmount SD card.
$ sudo diskutil unmount /dev/diskXs1
- Go to your download directory and use the command
dd
to format and copy the Raspbian image to your SD card.
$ sudo dd bs=1m if=./2017-04-10-raspbian-jessie.img of=/dev/rdiskX
- Remove SD card.
$ sudo diskutil eject /dev/rdiskX
- Insert your SD card into the Raspberry PI and start playing with it!
+9
source to share