Installing Artbox to an SD Card on a Mac
by Dara Gill
On a Mac, ISO files tend to encounter problems when trying to make a bootable SD Card through traditional programs like Disk Utlity. This two step process will first convert the ISO image supplied by Artbox to a DMG image file. Then we can then copy the .DMG to a bootable SD Card using terminal for use in a Raspberry Pi.
To Convert ISO to DMG
1. Open Terminal.
2. Make sure the ‘Artbox_0.6.3.iso’ file you downloaded is on your desktop. You’ll need 16GB free on your hard drive to complete this method. Now type in the following command replacing the two ‘#####’ below with the name of your mac home folder:
hdiutil convert /Users/#####/Desktop/Artbox_0.6.3.iso -format UDRW -o /Users/#####/Desktop/Artbox_0.6.3.dmg
The file will now convert as indicated by the progress bar. This should take a minute or two. The DMG file is now on your desktop ready for use in the next part.
To install Artbox DMG on SD Card
To install ‘Artbox_0.6.3.dmg’ onto SD Card we need to first find out what the SD “identifier” is. The identifier indicates what drive path the OS has given the SD Card, similar to C:\ or D:\ on Windows. This will be important so we can tell terminal which disk to write the DMG to.
1. Insert SD Card.
2. Open Terminal.
3. Type in the following command to show all the disks connected to your computer:
You are looking for a disk that is roughly the same size of your SD Card. It will also have the same name as indicated in Finder. Below is an example of how and 8GB SD Card called ‘NO NAME’ would appear. What we need is ‘Identifier’ disk number, which in the example case below is ‘disk3’ [ignore the ‘s1’ part].
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *7.9 GB disk3
1: DOS_FAT_32 NO NAME 7.9 GB disk3s1
4. Next we have to erase and format the SD Card so Artbox can be written to it. We use the following command line function – please replace the ‘XXXXX’ with the name of the identifier of your SD Card (e.g. disk3).
diskutil partitionDisk /dev/XXXXX 1 "Free Space" "unused" "100%"
Terminal will now eject the SD card and erase it. This will take about a minute. The card will not appear in Finder again until the end of this process.
5. We need to to load the ‘Artbox_0.6.3.dmg’ to the card. Firstly, make sure the DMG file is on your desktop. Now type in the following command replacing the ‘#####’ with the name of your home folder – and the ‘XXXXX’ with the name of the disk identifier from step 4.
[Note: In the code below we have added the letter ‘r’ to the start of the disk identifier, please also add the ‘r’ as this speeds up the writing of the data to the SD Card dramatically.]
sudo dd if=/Users/#####/Desktop/Artbox_0.6.3.dmg of=/dev/rXXXXX bs=1m
6. Please put in your password as promoted and hit enter. The card will then begin writing. You view the progress by typing ‘ctrl-t’. When the it has finished it will give you a read out similar to this:
7517+0 records in
7517+0 records out
7882145792 bytes transferred in 1262.355907 secs (6243996 bytes/sec)
Time to write will vary, in the example above it took about 21 minutes at 6243996 bytes/sec.
Another indication that it has all gone well is the SD Card should be mounted on your desktop and called ‘Untitled’. Eject it, and now its ready to be used in the Raspberry Pi!