How to install Raspbian to SD card on Mac

How can I install Raspbian OS to SD card without installing any additional software or application on my Mac. Most tutorials found on google will need to install SD Formatter or not provide detailed steps.

+3


source to share


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

  1. Unmount SD card.

$ sudo diskutil unmount /dev/diskXs1



  1. 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

  1. Remove SD card.

$ sudo diskutil eject /dev/rdiskX

  1. Insert your SD card into the Raspberry PI and start playing with it!
+9


source







All Articles