Advertisement
Guest User

How to manually boot OS X with Grub2 by SMX

a guest
Mar 29th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. Instructions by SMX
  2. How to boot OS X from usb without usb booting support in BIOS with grub2
  3. We go to command line
  4. press 'c' to bring up console if you are in the menu
  5.  
  6. We insert usb modules
  7. insmod usb
  8. insmod ohci
  9. insmod uhci
  10. insmod ehci
  11. insmod usbms --> this for usb mass storage
  12.  
  13. We insert partition and filesystem modules
  14. insmod part_mbr
  15. insmod part_gpt
  16. insmod hfsplus
  17.  
  18. We find devices
  19. usb --> check output for your device
  20. ls --> check output for (usb) devices
  21.  
  22. Identify device and do
  23. ls -l (usb1b,gpt2) --> example, replace usb1b,gpt2 with yours (same in the rest of tutorial)
  24.  
  25. Write down UUID
  26. Export uuid to a global variable
  27.  
  28. set uuid=YOURUUID --> replace YOURUUID with the one you wrote down
  29. export uuid
  30.  
  31. Now change root to your device
  32. set root=(usb1b,gpt2)
  33.  
  34. Check files are there with
  35. ls /
  36.  
  37. Set xnu uuid with
  38. xnu_uuid $uuid uuid
  39.  
  40. Load mach kernel and parameters with
  41. xnu_kernel /mach_kernel boot-uuid=${uuid} rd=*uuid -v --> insert any other parameter you need here
  42.  
  43. If you are booting a 64bit kernel you instead need
  44. xnu_kernel64 /mach_kernel boot-uuid=${uuid} rd=*uuid -v --> insert any other parameter you need here
  45.  
  46. Load Extensions:
  47. Option A: use caches:
  48. xnu_mkext /System/Library/Extensions.mkext
  49. xnu_mkext /Extra/Extensions.mkext
  50.  
  51. Option B: use folders:
  52. xnu_kextdir /System/Library/Extensions
  53. xnu_kextdir /Extra/Extensions
  54.  
  55. Optional: load Custom DSDT
  56. acpi -e /Extra/DSDT.aml
  57.  
  58. Boot the system with
  59. boot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement