Under i just paste my terminal history that gave me a working usb drive. The "loop0p2" and the loop1p1 and the dev/sdX according to your usb mount.Īt some point you need to umount the usbdrive if "mount point busy" message. The only need you need to change on the lines are. On my machines there was already 12 loopsĮvery now and then use "df" just to see which partitions and names you have in your system. Kpartx you need to add -v (verbose) to see which loop is created so :kpartx -av InstallESD.img Run all the commands it as root! so use "sudo su" Only things that need to take into account are:
Rsync -aAEHW /mnt/OSX_InstallESD/BaseSystem.chunklist /mnt/usbstick/
Rsync -aAEHW /mnt/OSX_BaseSystem/ /mnt/usbstick/ Mkfs.hfsplus -v "OS X Base System" /dev/sdX1 # partition the USB flash drive, /dev/sdX Mount /dev/mapper/loop1p1 /mnt/OSX_BaseSystem # convert base system disk image to raw formatĭmg2img /mnt/OSX_InstallESD/BaseSystem.dmg BaseSystem.img Mount /dev/mapper/loop0p2 /mnt/OSX_InstallESD app/Contents/SharedSupport/InstallESD.dmg" InstallESD.img # convert installer disk image to raw formatĭmg2img "Install OS X. Mkdir -p /mnt/OSX_InstallESD /mnt/OSX_BaseSystem /mnt/usbstick There is no need to try using the script, as it works with the list of commands on the read me file. This works! I used it for making a usb from El Capitan installer, using the InstallESD.dmg that you find inside the InsallMacOSX.dmg. rsync supports also -X parameter, supposed to copy HFS+ extended attributes, but in practice it fails with the error "Operation not supported". 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.dmg /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
HOW TO ADD MAC TO DOMAIN EL CAPITAN FREE
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.