How can i install Raspbian OS to my SD card without installing any additional software or application on my Mac. Most of tutorials found on google will require to install SD Formatter or didn't provide detail steps.
Asked
Active
Viewed 1.1k times
1 Answers
31
Download raspbian image from Raspbian website
Extract the 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 example above X will be 2
- Unmount SD card
$ sudo diskutil unmount /dev/diskXs1
- Go to download directory and use
dd
command to format and copy Raspbian image to SD card
$ sudo dd bs=1m if=./2017-04-10-raspbian-jessie.img of=/dev/rdiskX
- Eject SD card
$ sudo diskutil eject /dev/rdiskX
- Insert SD card to Raspberry PI and start playing with it!

Ryan
- 3,085
- 5
- 27
- 31
-
is `of=/dev/rdiskX` or `of=/dev/diskX`? – roschach Sep 17 '18 at 14:54
-
1@FrancescoBoi Use `of=/dev/rdiskX`. Both will work but "rdisk" will run much faster because it basically writes directly to the disk rather than through a buffer. – Mike Flynn Jan 20 '19 at 06:45
-
Is it more likely that you'd encounter corruption or something writing direct to disk rather than through a buffer? – Ubunfu Mar 07 '20 at 18:12
-
I get an error: `dd: invalid number: ‘1m’` I think it should be **1M** not "1m". – catchdave Sep 05 '20 at 22:14