Thursday, November 22, 2012

How to use UniBeast with InstallESD.dmg

Update 3: See below for a (supposed) workaround for UniBeast MountainLion 1.7 (I have not tried out v1.7 yet. Let me know if it works for you, though).

Update 2: See below for a workaround for UniBeast MountainLion 1.6.1.

Update: As commented below by osxtosh, this trick only works with UniBeast 1.5.3 and below.

UniBeast only needs InstallESD.dmg from the Install OS X ***.app. So, if you already have that file, you do not need to download the installer from Apple AppStore anymore. All you need to do is to create a directory structure (so called package) to satisfy UniBeast.

% cd /Applications
% mkdir -p "Install OS X Mountain Lion.app/Contents/SharedSupport"
% cd "Install OS X Mountain Lion.app/Contents"
% cp path_to_InstallESD.dmg SharedSupport/
% mkdir -p "_MASReceipt"
% dd if=/dev/random count=$[RANDOM % 4000] bs=1 of=_MASReceipt/receipt
% echo 'com.apple.InstallAssistant.MountainLion' >> _MASReceipt/receipt
% dd if=/dev/random count=$[3000 + RANDOM % 4000] bs=1 >> _MASReceipt/receipt

Remember to change Mountain Lion to the appropriate version that you took InstallESD.dmg from. Repeat the last three commands if the size of generated receipt is smaller than 4800 bytes.

18 comments:

  1. Cool, that helped me!

    ReplyDelete
  2. This trick does not work with UB 1.6.1 -- they have figured this trick and locked it out.
    Log file shows: ./preinstall: Piracy attempt detected, no MAS receipt found, exiting

    ReplyDelete
  3. it works with UniBeast MountainLion 1.5.3 version, more about it can be found here How to create bootable Mountain Lion 10.8.2 USB installer using UniBeast

    ReplyDelete
  4. I have updated the post with two more commands to workaround UniBeast MountainLion 1.6.1.

    ReplyDelete
  5. Thx you so much :X

    ReplyDelete
  6. thx! working fine :)

    ReplyDelete
  7. Worked great. Thanks.

    ReplyDelete
  8. not working for unibeast 1.7 anymore

    ReplyDelete
  9. For unibeast 1.7 you need to expand unibeast package and remove some lines from preinstal file in dsmos.pkg. Whole process can be found here - http://osx86.transformnews.com/how-to-create-bootable-mountain-lion-10-8-2-usb-installer-using-unibeast/

    ReplyDelete
  10. I updated this post with workaround for v1.7.

    ReplyDelete
  11. Got the solution fellas, i donwlaoded an untouched version of ML and then copied it's installer in applications, anyone want it
    mail me on ashfaqprogamer@gmail.com

    ReplyDelete
  12. Just tested on 1.7, It works, Thanks

    ReplyDelete
  13. Just tested and works perfectly on unibeast 1.7

    ReplyDelete
  14. Cám ơn thầy, google vòng vòng lại ra bài hướng dẫn của thầy. Quả là không đâu xịn bằng thầy, chạy 1.7 ngon nha :P

    ReplyDelete
  15. Works as-is from Mac OS X Snow Leopard (preparing OS X 10.9 Mountain Lion); receipt was 10,184 bytes. Not sure about INSTALL, but that's an entirely other story.

    ReplyDelete
  16. cai nay chay ngon tren 10.8.3, va t dang thu vs 10.8.4, cam on ban nhieu :)

    ReplyDelete
  17. Từ bản unibeast 2.0 trở lên sẽ khó khăn hơn rất nhiều. Có lai còn bản 1.7 ko cho xin với
    http://myhackmac.blogspot.com/2013/01/unibeast-17x-failed-install-workaround.html

    ReplyDelete
    Replies

    1. % cp path_to_InstallESD.dmg SharedSupport this line of command does not work no such file or directoy error what to do sir ans me

      Delete