

It is possible to copy with other tools (tar, cpio), just supply parameters preserving the most of file metadata. Rsync -aAEHW -P /mnt/installesd/BaseSystem.chunklist /mnt/usbstick/ Rsync -aAEHW -P /mnt/installesd/Packages /mnt/usbstick/System/Installation/ Rm -f /mnt/usbstick/System/Installation/Packages Mkfs.hfsplus -v "OS X Base System" /dev/sdb1Ĭopy missing installer files (beware of ending /): rsync -aAEHW -info=progress2 /mnt/basesystem/ /mnt/usbstick/ Mount /dev/mapper/loop1p1 /mnt/basesystemįormat the USB flash drive as HFS+: sgdisk -o /dev/sdb But writing it directly to the USB drive does not work, because that would create a partition with almost no free space and still lacking some important files.Įxtract base system image BaseSystem.dmg, convert into raw and mount too: dmg2img /mnt/installesd/BaseSystem.dmg BaseSystem.img InstallESD.dmg contains another disk image, BaseSystem.dmg, which is a bootable installer disk. Mount /dev/mapper/loop0p2 /mnt/installesd Working as a root, convert InstallESD.dmg into raw image format and mount it using kpartx: dmg2img InstallESD.dmg InstallESD.img InstallESD.dmg is an image of a GPT disk with HFS+ partition which contains installer files, but is not bootable itself. Manually it's as mentioned in MacWorld, but using the Linux tools: There's a ready script that automates this whole process.
