XMEN BLOGGER: Raspberry Pi - Installing OS images on Mac

Sunday, January 29, 2017

Raspberry Pi - Installing OS images on Mac


From:
https://www.raspberrypi.org/documentation/installation/installing-images/mac.md



-Open a terminal, then run:

diskutil list

Identify the disk (not partition) of your SD card e.g. disk4, not disk4s1.

-Unmount your SD card by using the disk identifier, to prepare for copying data to it:

diskutil unmountDisk /dev/disk

where disk is your BSD name e.g. diskutil unmountDisk /dev/disk4

-Copy the data to your SD card:

sudo dd bs=1m if=image.img of=/dev/rdisk

where disk is your BSD name e.g. sudo dd bs=1m if=2017-01-11-raspbian-jessie.img of=/dev/rdisk4

This may result in a dd: invalid number '1m' error if you have GNU coreutils installed. In that case, you need to use a block size of 1M in the bs= section, as follows:

sudo dd bs=1M if=image.img of=/dev/rdisk

This will take a few minutes, depending on the image file size. You can check the progress by sending a SIGINFO signal pressing Ctrl+T.

If this command still fails, try using disk instead of rdisk, for example:

sudo dd bs=1m if=2017-01-11-raspbian-jessie.img of=/dev/disk4

or

sudo dd bs=1M if=2017-01-11-raspbian-jessie.img of=/dev/disk4

-After the dd command finishes, eject the card:

sudo diskutil eject /dev/rdisk3



Or using ApplePi Baker for macOS!!!



Summary:

$ diskutil list
$ diskutil unmountDisk /dev/disk3
$ sudo dd bs=1m if=SDimage.img of=/dev/rdisk3
$ diskutil eject /dev/rdisk3



Format USB disk ( and ExFAT):

$ diskutil list
$ diskutil unmountDisk /dev/disk3
$ diskutil eraseDisk ExFAT Files /dev/disk3

or...

$ diskutil eraseDisk JHFS+ SDcard /dev/disk3

Where "Files" and "SDcard" is the lavel of the device.

0 comentarios: