Create a bootable SDHC from a Mac: Difference between revisions

From Alpine Linux
(Sorry, learning wiki editor)
m (Categorized: Installation)
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Download alpine rpi file
== Prepare Partition ==


'''Prepare SDHC'''
[[File:OSXRpiSetupDiskUtility.png]]


Insert SDHC card in Mac (if new, it's likely to be formated FAT32)
* Open disk utility
* Select your SD Card
* Click Erase in the menu
* Set Format to MS-DOS (FAT)
* Set Scheme to Master Boot Record
* Click the Erase button


Open Terminal (Accessories > Terminal) and run the following:
== Unpack files ==


<code>df -h</code>
[[File:OSXRpiSetupTerminal.png]]


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)
* Open Terminal
* Check your SD Card is mounted (in this case named "ALPINE")
* Unpack files with <code>sudo tar xf ~/Downloads/alpine-rpi-[...]-armhf.rpi.tar.gz -C /Volumes/ALPINE</code>
* Eject disk, it should now be ready to be used in the Raspberry Pi


</code>sudo diskutil umount /dev/disk2s1
== After initial setup ==


sudo fdisk -e /dev/disk2s1</code>
After this preparation you should boot the Raspberry Pi with a keyboard and a HDMI screen connected, login as root and run <code>setup-alpine</code> and <code>lbu-commit</code>.


Ignore fdisk error: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
[[Category:Installation]]
 
<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 00:56, 19 September 2017

Prepare Partition

  • Open disk utility
  • Select your SD Card
  • Click Erase in the menu
  • Set Format to MS-DOS (FAT)
  • Set Scheme to Master Boot Record
  • Click the Erase button

Unpack files

  • Open Terminal
  • Check your SD Card is mounted (in this case named "ALPINE")
  • Unpack files with sudo tar xf ~/Downloads/alpine-rpi-[...]-armhf.rpi.tar.gz -C /Volumes/ALPINE
  • Eject disk, it should now be ready to be used in the Raspberry Pi

After initial setup

After this preparation you should boot the Raspberry Pi with a keyboard and a HDMI screen connected, login as root and run setup-alpine and lbu-commit.