All Projects → eprigorodov → mkosxinstallusb

eprigorodov / mkosxinstallusb

Licence: Apache-2.0 License
Linux shell script that creates USB flash drive booting OS X installer

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to mkosxinstallusb

OS-X-Yosemite-on-Unsupported-Macs
Install OS X Yosemite on Unsupported Macs
Stars: ✭ 23 (-32.35%)
Mutual labels:  boot, yosemite, maverick
Usbdeviceswift
wrapper for IOKit.usb and IOKit.hid written on pure Swift that allows you convenient work with USB devices
Stars: ✭ 156 (+358.82%)
Mutual labels:  usb, osx
MiniNT5-Tools
small Windows 10 (based on Windows PE) with customised tools
Stars: ✭ 34 (+0%)
Mutual labels:  usb, boot
Rufus
The Reliable USB Formatting Utility
Stars: ✭ 16,917 (+49655.88%)
Mutual labels:  usb, boot
Glim
GRUB Live ISO Multiboot
Stars: ✭ 452 (+1229.41%)
Mutual labels:  usb, boot
Multibootusb
Create multiboot live Linux on a USB disk...
Stars: ✭ 1,042 (+2964.71%)
Mutual labels:  usb, boot
Kindd
A kindful dd, written in qt-quick.
Stars: ✭ 93 (+173.53%)
Mutual labels:  usb, boot
GrubFM-Installer
GrubFM Installer
Stars: ✭ 27 (-20.59%)
Mutual labels:  usb, boot
Multiboot-Toolkit
Create a bootable disk
Stars: ✭ 96 (+182.35%)
Mutual labels:  usb, boot
node-beagle-boot
A node.js USB bootloader server for BeagleBone for booting it into mass storage mode
Stars: ✭ 17 (-50%)
Mutual labels:  usb, boot
Headsetcontrol
Sidetone and Battery status for Logitech G930, G533, G633, G933 SteelSeries Arctis 7/PRO 2019 and Corsair VOID (Pro) in Linux and MacOSX
Stars: ✭ 392 (+1052.94%)
Mutual labels:  usb, osx
buddy-linux
Do you remember "Wubi Ubuntu Installer"? This project is both a replacement and an improvement of Wubi. You will be able to install your Debian (or derived) distribution on a PC without repartitioning it, simply by using a secondary/external boot device (like a USB drive).
Stars: ✭ 17 (-50%)
Mutual labels:  usb, boot
Vmware Usb Osx
Easily create a bootable USB installer for VMware ESXi / vSphere Hypervisor
Stars: ✭ 286 (+741.18%)
Mutual labels:  usb, osx
Ehal
Embedded Hardware Abstraction Library
Stars: ✭ 84 (+147.06%)
Mutual labels:  usb, osx
Darklightning
Simply the fastest way to transmit data between iOS/tvOS and OSX
Stars: ✭ 286 (+741.18%)
Mutual labels:  usb, osx
Aqtinstall
aqt: Another (unofficial) Qt CLI Installer on multi-platforms
Stars: ✭ 234 (+588.24%)
Mutual labels:  osx, installer
Opencore Vanilla Desktop Guide
Host for files for the OpenCore Vanilla Desktop Guide
Stars: ✭ 299 (+779.41%)
Mutual labels:  osx, boot
30daymakeos
《30天自制操作系统》源码中文版。自己制作一个操作系统(OSASK)的过程
Stars: ✭ 4,127 (+12038.24%)
Mutual labels:  osx, boot
MultiOS-USB
Boot operating systems directly from ISO files
Stars: ✭ 106 (+211.76%)
Mutual labels:  usb, boot
pyamlboot
Amlogic USB Boot Protocol Library
Stars: ✭ 34 (+0%)
Mutual labels:  usb, boot

mkosxinstallusb

Linux shell script that creates bootable USB flash drive with OS X installer.

OS X installer application contains a disk image "InstallESD.dmg" that can be used to create a bootable USB flash drive. The procedure is well described in the media, see references below.

This script automates process on Linux platform, doing essentially the following:

mkdir -p /mnt/OSX_InstallESD /mnt/OSX_BaseSystem /mnt/usbstick

# convert installer disk image to raw format
dmg2img "Install OS X <Version>.app/Contents/SharedSupport/InstallESD.dmg" InstallESD.img
kpartx -a InstallESD.img
mount /dev/mapper/loop0p2 /mnt/OSX_InstallESD

# convert base system disk image to raw format
dmg2img /mnt/OSX_InstallESD/BaseSystem.dmg BaseSystem.img
kpartx -a BaseSystem.img
mount /dev/mapper/loop1p1 /mnt/OSX_BaseSystem

# partition the USB flash drive, /dev/sdX
sgdisk -o /dev/sdX
sgdisk -n 1:0:0 -t 1:AF00 -c 1:"disk image" -A 1:set:2 /dev/sdX
mkfs.hfsplus -v "OS X Base System" /dev/sdX1
mount /dev/sdX1 /mnt/usbstick

# copy installer files
rsync -aAEHW /mnt/OSX_BaseSystem/ /mnt/usbstick/
rm -f /mnt/usbstick/System/Installation/Packages
rsync -aAEHW /mnt/OSX_InstallESD/Packages /mnt/usbstick/System/Installation/
rsync -aAEHW /mnt/OSX_InstallESD/BaseSystem.chunklist /mnt/usbstick/
rsync -aAEHW /mnt/OSX_InstallESD/BaseSystem.dmg /mnt/usbstick/
sync

Usage: ./mkosxinstallusb.sh </dev/sdX> "Install OS X <Version>.app", where </dev/sdX> is a block device for target USB flash drive, e.g. /dev/sdb.

Known problems:

References:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].