![]() ![]() (I had tried it once before with a partially occupied USB drive, and it ran out of space before it could finish). In my case, I actually plugged it into the mac and formatted it with Disk Utility to "OS X Extended (Journaled)" (GUID Partition table) before I started. > see the line starting with "supported_checksums=".", and just added it to the end before the last closing quote)Īlso, make sure your USB thumb drive is completely empty before you start the script. I am pretty sure the file is legit (since I downloaded it directly from Apple Support), so I edited the "mkosxinstallusb.sh" script and added it to the approved list However, the sha1 hash did match any of the values at: Inside THERE could be found the InstallESD.dmg! Right-click -> "Open With Other Application" -> Archive Manager" Inside, there was a large file called "InstallMacOSX.pkg", which I could extract using p7zip, or (in Linux Mint): (but there are plenty of other ways to do this) Right-click -> "Open With Other Application." -> "Disk Image Mounter" Then mount the image: In Linux Mint, I used So, I needed to first convert this file into an image:ĭmg2img InstallMacOSX.dmg InstallMacOSX.img However, this contains a file called "InstallMacOSX.dmg", rather than "InstallESD.dmg". Instead, I downloaded the "El Capitan" installer. I tried to use the internet installer that came with it, but it would not work without signing into the original owner's AppleID (even though I specifically went into iTunes to "De-Authorize this computer" before wiping the original installation) rsync supports also -X parameter, supposed to copy HFS+ extended attributes, but in practice it fails with the error "Operation not supported".Īfter hours of trial and error, I was finally able to install OSX 10.11 "El Capitan" on my used iMac (mid 2009)! 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/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 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. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |