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. So, I needed to first convert this file into an image:Dmg2img InstallMacOSX.dmg InstallMacOSX.imgThen mount the image: In Linux Mint, I usedRight-click -> "Open With Other Application." -> "Disk Image Mounter"(but there are plenty of other ways to do this)Inside, there was a large file called "InstallMacOSX.pkg", which I could extract using p7zip, or (in Linux Mint):Right-click -> "Open With Other Application" -> Archive Manager"Inside THERE could be found the InstallESD.dmg!However, the sha1 hash did match any of the values at:Openssl sha1 InstallESD.dmg -> 732f873cbcf38d9e544e659d2429bd4444416cdaI 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-> see the line starting with "supported_checksums=".", and just added it to the end before the last closing quote)Also, make sure your USB thumb drive is completely empty before you start the script. Dmg file from Apple's support page:However, this contains a file called "InstallMacOSX.dmg", rather than "InstallESD.dmg". The only need you need to change on the lines are.The "loop0p2" and the loop1p1 and the dev/sdX according to your usb mount.At some point you need to umount the usbdrive if "mount point busy" message.Under i just paste my terminal history that gave me a working usb drive.Thanks all of the above for pointing into the right direction!I already extracted from the installer the file InstallESD and is sitting in the working directory40 mount /dev/mapper/loop14p2 /mnt/OSX_InstallESD41 dmg2img /mnt/OSX_InstallESD/BaseSystem.dmg BaseSystem.img43 mount /dev/mapper/loop15p1 /mnt/OSX_BaseSystem48 man partprobe #got a message that the partition was not going to be visible untill I use partprobe or reboot50 sgdisk -n 1:0:0 -t 1:AF00 -c 1:"disk image" -A 1:set:2 /dev/sdb55 mkfs.hfsplus -v "OS X Base System" /dev/sdb160 rsync -aAEHW /mnt/OSX_BaseSystem/ /mnt/usbstick/61 rm -f /mnt/usbstick/System/Installation/Packages62 rsync -aAEHW /mnt/OSX_InstallESD/Packages /mnt/usbstick/System/Installation/63 rsync -aAEHW /mnt/OSX_InstallESD/BaseSystem.chunklist /mnt/usbstick/64 rsync -aAEHW /mnt/OSX_InstallESD/BaseSystem.dmg /mnt/usbstick/After hours of trial and error, I was finally able to install OSX 10.11 "El Capitan" on my used iMac (mid 2009)!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)Instead, I downloaded the "El Capitan" installer. App/Contents/SharedSupport/InstallESD.dmg" InstallESD.imgMount /dev/mapper/loop0p2 /mnt/OSX_InstallESD# convert base system disk image to raw formatDmg2img /mnt/OSX_InstallESD/BaseSystem.dmg BaseSystem.imgMount /dev/mapper/loop1p1 /mnt/OSX_BaseSystem# partition the USB flash drive, /dev/sdXSgdisk -n 1:0:0 -t 1:AF00 -c 1:"disk image" -A 1:set:2 /dev/sdXMkfs.hfsplus -v "OS X Base System" /dev/sdX1Rsync -aAEHW /mnt/OSX_BaseSystem/ /mnt/usbstick/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/Only things that need to take into account are:Run all the commands it as root! so use "sudo su"Kpartx you need to add -v (verbose) to see which loop is created so :kpartx -av InstallESD.imgOn my machines there was already 12 loopsEvery now and then use "df" just to see which partitions and names you have in your system. So This:Mkdir -p /mnt/OSX_InstallESD /mnt/OSX_BaseSystem /mnt/usbstick# convert installer disk image to raw formatDmg2img "Install OS X.
![]() ![]() Yosemite For Thumb Drive Mac And Formatted![]()
0 Comments
Leave a Reply. |
Details
AuthorKelly ArchivesCategories |