Create a bootable SDHC from a Mac: Difference between revisions

From Alpine Linux
(Sorry, learning wiki editor)
Line 1: Line 1:
Download alpine rpi file
[[File:OSXRpiSetupDiskUtility.jpg]]
 
[[File:OSXRpiSetupTerminal.jpg]]
'''Prepare SDHC'''
 
Insert SDHC card in Mac (if new, it's likely to be formated FAT32)
 
Open Terminal (Accessories > Terminal) and run the following:
 
<code>df -h</code>
 
look for the name of your sdhc device, something like /dev/disk2s1 it's critical you find the correct name, you can loose your hard drive data if you get it wrong)
 
</code>sudo diskutil umount /dev/disk2s1
 
sudo fdisk -e /dev/disk2s1</code>
 
Ignore fdisk error: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
 
<code>p
 
f 1
 
write
 
exit</code>
 
Lets remount the disk
 
<code>sudo diskutil mount /dev/disk2s1</code>
 
open alpine rpi tar.gz file and expand into a new folder
 
copy contents of that new folder to card
 
click eject card in Finder

Revision as of 13:59, 7 August 2015