c0rk007hck Posted May 3, 2009 Share Posted May 3, 2009 This Tutorial learns you how to install the Chameleon bootloader on your Mac partition. This may help you when you get b0, boot0 or other errors, when the installer doesn't work. I created it for the people who are new to hackintosh ("noob friendly"). I bolded some pieces in the code section to make it more clear to understand. Tip : If your hackintosh doesn't boot anymore, you can follow this tutorial on a real mac / other hackintosh. 1. Open up the Terminal app 2. Use sudo -s to get root privileges. 3. First get the partition / disk where your Mac partition is diskutil list You should see something like this: 4. In this tutorial is the Mac disk disk0s2 5. Extract the Chameleon archive, go inside the i386 folder, and go back to the terminal. To do this, type "cd " (space after cd), and drag the i386 folder onto the terminal. Then hit return. 6. Install boot0 to the MBR: fdisk -f boot0 -u -y /dev/rdisk0 7. Install boot1h to the bootsector of your OS X partition: dd if=boot1h of=/dev/rdisk0s2 8. Copy the ‘boot’ file to your root partition: cp boot / Or if it's not your current volume: cp boot /Volumes/[volume name] 9. Now we will make our partition active. Our disk is disk0, so our code will be: sudo fdisk -e /dev/disk0f 2 write y exit It will look like: --------------------------------------------------------------- For Chameleon 2.0 only --------------------------------------------------------------- 10. Copy Themes and smbios.plist to your Extra folder. You can some themes in this forum, as well some smbios files. 11. Finally add any kexts you wish to /Extra/Extensions folder like you usually would. 2 Link to comment Share on other sites More sharing options...
maleorderbride Posted May 3, 2009 Share Posted May 3, 2009 Thanks! I managed to follow all of the steps (I think), but since I have a pretty severely mangled boot by now, it did not quite work. But that was not really a surprise. re-installing the OS'es right now. I did have one question about copying the boot file. You say to copy it to the root, so would I just type: cp boot /rdisk0s2 where 0s2=OS X install? What goes on the other side of that / ? Oh, and you certainly imply it, but one should cd to the extracted .pkg files. Silly noobs like me might scratch their head for a minute. Link to comment Share on other sites More sharing options...
c0rk007hck Posted May 3, 2009 Author Share Posted May 3, 2009 / means your current boot drive. Link to comment Share on other sites More sharing options...
HackBook Pro Posted July 1, 2009 Share Posted July 1, 2009 Thank you, man. Your tutorial worked like a charm :-D Link to comment Share on other sites More sharing options...
tvdang7 Posted September 13, 2009 Share Posted September 13, 2009 im getting fdisk : dev/rdisk0 : permission denied. whats that mean? Link to comment Share on other sites More sharing options...
alexismeji Posted September 27, 2009 Share Posted September 27, 2009 how would you go about doing this is if I have osx in one HD and win 7 in another one? Link to comment Share on other sites More sharing options...
c0rk007hck Posted September 28, 2009 Author Share Posted September 28, 2009 Try before executing this commands: "sudo -s", type your password (you don't see stars or something like that), and hit enter Link to comment Share on other sites More sharing options...
alexismeji Posted September 28, 2009 Share Posted September 28, 2009 I'm sorry, but I re-re-re-re-re your post and im still confused on what I have to do. Link to comment Share on other sites More sharing options...
mouki Posted September 29, 2009 Share Posted September 29, 2009 What i do if i get fdisk: could not open MBR file boot0: No such file or directory which archive i need to dl? (Chameleon-2.0-RC3-r658-bin.tar.gz) that one? and if yes where i need to extract? (root?) some map? Thank you. Link to comment Share on other sites More sharing options...
c0rk007hck Posted September 29, 2009 Author Share Posted September 29, 2009 Extract is somewhere, and use CD to get there, CD is a command, and not the 'CD-Drive'. Do this: 1. Extract the stuff 2. Determine which drive it is, using diskutil list 2. Type in the terminal 'cd ' < - Space after CD 3. Drag the i386 folder from chameleon 2 to the terminal window 4. Press enter 5. execute step 6 and later Link to comment Share on other sites More sharing options...
mouki Posted October 2, 2009 Share Posted October 2, 2009 Hi again man, sorry but im dummy )) i get always thesame fout. If i do step6 i get @no such file directory@ take a look please at the scrshoot please. thanks man for you routing ) Link to comment Share on other sites More sharing options...
c0rk007hck Posted October 3, 2009 Author Share Posted October 3, 2009 Don't copy and paste!! Just type line by line, and instead of typing cd <, type cd , and drag the i386 folder to the terminal, en type enter. Link to comment Share on other sites More sharing options...
DIGITALUnderworld Posted November 4, 2009 Share Posted November 4, 2009 Tried this, and got "fdisk: could not read MBR code: Is a directory" Is not working. Extract is somewhere, and use CD to get there, CD is a command, and not the 'CD-Drive'.Do this: 1. Extract the stuff 2. Determine which drive it is, using diskutil list 2. Type in the terminal 'cd ' < - Space after CD 3. Drag the i386 folder from chameleon 2 to the terminal window 4. Press enter 5. execute step 6 and later Link to comment Share on other sites More sharing options...
Wilse Posted November 15, 2009 Share Posted November 15, 2009 What i do if i get fdisk: could not open MBR file boot0: No such file or directory I'm getting this too. Link to comment Share on other sites More sharing options...
Vlada. Posted January 12, 2010 Share Posted January 12, 2010 Tried this, and got "fdisk: could not read MBR code: Is a directory" Is not working. That’s because people here usually offering half-resolving solutions, mostly because they think that we all should be familiar with terminal on Mac. This is ridicules, because most of the people here are actually pure PC users. That’s the reason why we have all this circus here on forum... However solution is simple for this problem... So you should type cd, then space and then drag and drop in to terminal i386 directory which is placed inside “sym” directory... Press “enter”... After that you can proceed with step 6. This should work... at least it is to me... Link to comment Share on other sites More sharing options...
oldnapalm Posted February 22, 2010 Share Posted February 22, 2010 Please check this Guys, the fdisk bundled with the binary releases contain a modified fdisk command. We modded it to update only the first 440 bytes in the MBR. In step 6 running ./fdisk -f boot0 -u -y /dev/rdisk0 should not mess with Windows 7 boot. Link to comment Share on other sites More sharing options...
thanoss43 Posted May 15, 2010 Share Posted May 15, 2010 Hello, I have SL installed on a pc laptop, booting with chameleon RC5. I want to dual boot windows xp. I know that if i install windows, pc will boot windows, not chameleon. I 'm thinking of booting with a boot CD, selecting Mac OS and from there install manually chameleon with your method. Will it work? All I want to do is to "tell" PC to boot to chameleon and then select the OS to boot (Mac or Win). Thanks Link to comment Share on other sites More sharing options...
XLR Posted July 14, 2010 Share Posted July 14, 2010 In step 6 running ./fdisk -f boot0 -u -y /dev/rdisk0 should not mess with Windows 7 boot. Do you know what may cause this? I'm getting bash: ./fdisk: No such file or directory Last login: Wed Jul 14 18:30:08 on ttys000 users-Mac:~ user$ sudo -s Password: bash-3.2# cd /Users/user/Desktop/AnVAL4 bash-3.2# ./fdisk -f boot0 -u -y /dev/rdisk0 bash: ./fdisk: No such file or directory bash-3.2# fdisk -f boot0 -u -y /dev/rdisk0 bash-3.2# dd if=boot1h of=/dev/rdisk0s2 2+0 records in 2+0 records out 1024 bytes transferred in 0.000672 secs (1523578 bytes/sec) bash-3.2# cp boot / bash-3.2# sudo fdisk -e /dev/disk0 Enter 'help' for information fdisk: 1> f 2 Partition 2 marked active. fdisk:*1> write Device could not be accessed exclusively. A reboot will be needed for changes to take effect. OK? [n] y Writing MBR at offset 0. fdisk: 1> exit bash-3.2# This is my diskutil list: Last login: Wed Jul 14 18:29:24 on console users-Mac:~ user$ diskutil list /dev/disk0 #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *500.1 GB disk0 1: EFI 209.7 MB disk0s1 2: Apple_HFS Macintosh HD 250.1 GB disk0s2 3: Microsoft Basic Data 249.7 GB disk0s3 users-Mac:~ user$ Thanks in advance. Link to comment Share on other sites More sharing options...
dspry Posted August 2, 2010 Share Posted August 2, 2010 Hey, I followed this after having no luck using Chameleon installers. Everything went smoothly and as the tutorial stated - but now my SL 10.6.4 hangs at the Apple screen with the loading circle. Any ideas? Will I have to reinstall the OS? Cheers Link to comment Share on other sites More sharing options...
gruel33 Posted August 2, 2010 Share Posted August 2, 2010 This is where I'm stuck as well.... Installed Chameleon RC5 (per directions) booted up using GraphicsEnabler=y and it hangs with the apple and loader... Tried again and forced the resolution and it still hangs during the loading BUT.... the apple and loader was showing the correct resolution...! 1920x1200x32... Feel like its is so close... Any suggestions why this is hanging during the load.... Tried safe mode as well... still hangs. I can reboot from my EFI rebel disk / select HD and then it will boot to the OS but then Im back to the resolution problem... Any suggestion....? thx Link to comment Share on other sites More sharing options...
rednous Posted August 2, 2010 Share Posted August 2, 2010 Do you know what may cause this?I'm getting bash: ./fdisk: No such file or directory Last login: Wed Jul 14 18:30:08 on ttys000 users-Mac:~ user$ sudo -s Password: bash-3.2# cd /Users/user/Desktop/AnVAL4 bash-3.2# ./fdisk -f boot0 -u -y /dev/rdisk0 bash: ./fdisk: No such file or directory the correct command is this: bash-3.2# fdisk -f boot0 -u -y /dev/rdisk0 Link to comment Share on other sites More sharing options...
oldnapalm Posted August 2, 2010 Share Posted August 2, 2010 Do you know what may cause this?I'm getting bash: ./fdisk: No such file or directory The package you are using doesn't contain fdisk (no fdisk in current directory), or maybe it's called fdisk440 like in Chameleon RC5. You can get it from Chameleon binaries and put it inside the i386 folder you are using. I followed this after having no luck using Chameleon installers. Everything went smoothly and as the tutorial stated - but now my SL 10.6.4 hangs at the Apple screen with the loading circle. Any ideas? Will I have to reinstall the OS? It happened after you installed Chameleon? How did you boot into Snow Leopard before? Use verbose mode to see the system messages, you are probably missing some kext. Link to comment Share on other sites More sharing options...
ToBeMac Posted September 11, 2010 Share Posted September 11, 2010 Thanks for the handy tutorial! Did all the steps successfully, at boot, i get the "Boot0: Done" msg. and nothing happens. It's an MBR HDD. by the way, maybe that's why am getting the error above. Any hint? Thanks in advance. ToBeMac Edit: I re-did the steps after making sure am dealing with the right partitions using "diskutil list" and the "p" command withing the fdisk menu and all went fine! Thanks again for the great tutorial! Link to comment Share on other sites More sharing options...
Peter_sm Posted November 28, 2010 Share Posted November 28, 2010 Thanks so much for this guide Works perfect, but for safety I did this on my USB disk, and then copy over necessary files to the USB, reboot and it works. //Peter Link to comment Share on other sites More sharing options...
ziruc Posted April 18, 2011 Share Posted April 18, 2011 Great!! Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts