TopazBar Posted November 15, 2006 Share Posted November 15, 2006 This guide is for restoring our nice, working hackintosh's darwin bootloader. Basically, Vista RTM foobars our working MBR's bootloader and you get "HFS+ partition error". In following, I will assume we have one HDD with two partitions: part#1 = OSX and part#2 = Vista 1. Boot off OSX dvd disc in single user mode (press F8 and type -s) 2. At single user prompt fdisk -e /dev/rdisk0 flag 1 update write quit 4 reboot At this point OSX should boot up, just like prior to Vista installation. 1 In a terminal window, su root fdisk -e /dev/rdisk0 flag 2 quit 2 reboot Vista will say "\Window\system32\winload" corrupted, and it will tell you to insert Vista disc and recover. Follow directions from Vista and recover, then reboot. Check Vista boots and works fine. 1. Boot off OSX dvd disc for single user one last time (press F8 and type -s) 2. At single user prompt fdisk -e /dev/rdisk0 flag 1 quit 3. reboot You will discover that Vista recovered and left MBR's darwin bootloader intact . Happy ending. Link to comment Share on other sites More sharing options...
psionic68 Posted November 19, 2006 Share Posted November 19, 2006 Thanks very much This solution works great Much Appreciated!!!! Link to comment Share on other sites More sharing options...
TopazBar Posted November 20, 2006 Author Share Posted November 20, 2006 Great to hear your feedback. Thanks very much This solution works great Much Appreciated!!!! Link to comment Share on other sites More sharing options...
ksec Posted November 22, 2006 Share Posted November 22, 2006 What about if i had Vista as Partition 1 and OSX as partition 2? I am a bit lost with all these guides ( i have more then 20 tab open right now and all of them point to similar but slightly different direction ) I try to use Easy BCD but does not seem to work? Link to comment Share on other sites More sharing options...
TopazBar Posted November 22, 2006 Author Share Posted November 22, 2006 I think the guide will work if partitions reversed. There is nothing in osx and vista that they want to be in particular partition. Just substitute flag x with reverse partition number, and report back. What about if i had Vista as Partition 1 and OSX as partition 2? I am a bit lost with all these guides ( i have more then 20 tab open right now and all of them point to similar but slightly different direction ) I try to use Easy BCD but does not seem to work? Link to comment Share on other sites More sharing options...
atlnte Posted November 22, 2006 Share Posted November 22, 2006 I found that doing this in a linux console fixed it too. If you have an extra live cd laying around, this would probably be quicker. su fdisk /dev/hda p (lists partitions) t (assigns a type) (Choose the Mac Partition) af (changes type to af) w (writes the changes to the disk) I found it on some site (lost it) Link to comment Share on other sites More sharing options...
drjman Posted January 11, 2007 Share Posted January 11, 2007 TOPAZ BAR Thanks a lot! This worked great for me (HP zd8000). My partitions were switched so i Flagged 2 and all is well! Thanks Again! Link to comment Share on other sites More sharing options...
Innocent Devil Posted January 11, 2007 Share Posted January 11, 2007 if u have linux installed or u r using GRUB bootloader just press c to bingup the grub console type : geometry (hd0) this give u the filesystems of all partitions from that find OS X partition (id :AF) type: unhide (hd0,2) makeactive (hd0,2) to boot OS X from GRUB type: root (hd0,2) makeactive chainloader +1 Link to comment Share on other sites More sharing options...
3Flight Posted January 13, 2007 Share Posted January 13, 2007 Hi! I had this HPS+ error, so I followed your instruction and loaded from OSX CD, entered singleuser mode, done everything that should be done, rebooted, and got no error but Darwin loader, which gave me 10 secs to enter console. I waited and I guess it started to load OS. Lines of text appeared very quicky on the screen, then screen changed resolution, and then was a little pause, after which computer rebooted and I got back to Darwin. So OS X doesn't boot, I guess(never seen it before). What should I do? Link to comment Share on other sites More sharing options...
RaMDaY Posted January 19, 2007 Share Posted January 19, 2007 nice.....this helped a lot thanks Link to comment Share on other sites More sharing options...
cyclonefr Posted January 26, 2007 Share Posted January 26, 2007 awesome ! just change su root with sudo -s enjoy Link to comment Share on other sites More sharing options...
wongtony Posted March 22, 2007 Share Posted March 22, 2007 thanks a lot it works great just fixed the HFS partition problem Link to comment Share on other sites More sharing options...
auqs10 Posted March 22, 2007 Share Posted March 22, 2007 This is the easiest way to boot both OSX86 and Vista installed on single HDD but separate primary partitions. Thanks for guidance, it was the best solution. Link to comment Share on other sites More sharing options...
bonbof Posted March 24, 2007 Share Posted March 24, 2007 right, but what about Vista on another HDD driven by ITE driver? Darwin can`t see ITE drives. "fixboot" at XP R console fixes Xp only and Vista`s REPAIR fixes Vista only erasing everything else. I`m using Acronis OS Selector to boot x86 & Xp, but want my Vista back too. How to edit BCDEDIT.exe? Link to comment Share on other sites More sharing options...
PolishOX Posted April 27, 2007 Share Posted April 27, 2007 If you are triple booting and your setup is as follows: XP = 1 Vista = 2 OSX86 = 3 Could you just switch these flags? Your tutorial in this case would switch the flag from 1 (osx) to 3 and 2 (vista) to 2. Since Vista handles XP's bootloader, there would be no need to edit the flag for XP? Correct? Am I following this thread correctly? Link to comment Share on other sites More sharing options...
devilhood Posted April 29, 2007 Share Posted April 29, 2007 PolishOX, that is correct. As long as Vista boots fine, XP should boot fine, and the Mac + XP co-exist better than Vista. The best solution is to use the Darwin Boot Loader, or if the Chain0 method works for you I suppose you could use Vista's Boot Loader and edit it with EasyBCD. I covered the HFS+ error and PID problem in greater detail in my dual-boot guide, which is still relevant for triple booters, so it should apply in your case. Link to comment Share on other sites More sharing options...
Future_Gohan Posted June 29, 2007 Share Posted June 29, 2007 Ok, I have Xp on the first partition, and OSX on my Second, But it still doesn't boot and get that same error. Should I do that same thing for vista? Link to comment Share on other sites More sharing options...
ManCas Posted August 24, 2007 Share Posted August 24, 2007 Works AWESOME!!!! thanks a lot man!. The only thing I had to do different was setting the windows part active thru the Vista install disc. This might has something to do with the fact that I installed OS x after Vista. Cheers and thanks again Link to comment Share on other sites More sharing options...
saurabhchauhan Posted August 26, 2007 Share Posted August 26, 2007 This guide is for restoring our nice, working hackintosh's darwin bootloader.Basically, Vista RTM foobars our working MBR's bootloader and you get "HFS+ partition error".In following, I will assume we have one HDD with two partitions: part#1 = OSX and part#2 = Vista1. Boot off OSX dvd disc in single user mode (press F8 and type -s) 2. At single user promptfdisk -e /dev/rdisk0flag 1updatewritequit4 rebootAt this point OSX should boot up, just like prior to Vista installation.1 In a terminal window, su rootfdisk -e /dev/rdisk0flag 2quit2 rebootVista will say "\Window\system32\winload" corrupted, and it will tell you to insert Vista disc and recover.Follow directions from Vista and recover, then reboot. Check Vista boots and works fine.1. Boot off OSX dvd disc for single user one last time (press F8 and type -s) 2. At single user promptfdisk -e /dev/rdisk0flag 1quit3. rebootYou will discover that Vista recovered and left MBR's darwin bootloader intact .Happy ending.Good guide however i have not tried it i will tell you what i did and i am hoping that you could help me to start with scratch.i have installed 10.4.6 jas without any issues however i am using acronis os selector i can see that it identifies my windows xp and unknown os ,when i click on unknown os it loads up the x86 boot and i can see two options there one says windows ntfs and the other below that which is diskos2(this is the 10.4.6)when i select diskos2 and press enter it tries to load it i can see all the texts seem to be displayed on the screen (too fast to read) and next screen wents blank and computer reboots...what i have tried 1 -v and -x before selecting the partition-did't work2 Boot using your MacOS X install DVD again. When you reach the installer, choose Utilities=>Terminal. Now type 'cp /mach_kernel /Volumes/Apple\ MacOS\ X/' which copies an AMD and SSE2 patched kernel (the one the installer booted from) over the one on your main system. Reboot.did't workabout my computer processor 1.processor intel core 2 duo E63002.specifications intel® core™2 cpu 6300@1.86ghz3.instructions mmx,sse,sse2,sse3,ssse3,em64tmainboardmotherboardmanufacturer- asustek computer inc.model-p5ld2-vm-cr-sichipset-intel i945g/gzbios-american megatrends inc.graphic interface-PCI-EXPRESSRAM-DDR2 1024 mb (these all things verified by CPUID)display-nvidia 7200gs 256mb pci expresshard disk -160gb sata i will explain what i did i had only single primary and active partition of 60 gb© on which i have windows xp loaded,i have created a 10gb primary partition using a typical diskmanagement of windows i did not choose to format it either on ntfs or fat.the partition D was created as raw after that i have formatted that 10 gb partition using 10.4.6 install dvd through disk utility erased it in mac journaled installed it by seleting the patch through customise install however in 10.4.6 jas you just have to tick only one option which includes all pathes.everything went fine it prompted to reboot at the end and when i rebooted the acronis os selector identified that unknown operating system and when i click on it the darwin boot loader opens and when i select that partition which was created through disk utility (diskos2)it tries to load it i can see all the texts seem to be displayed on the screen (too fast to read) and next screen wents blank and computer reboots...it seems its loading bunch of files and after loading it it crashes..i am not sure what is the cause of this problem is it the hardware or the partition where osx is installed is still inactive that is why its not loading it up i dont know what to do..i am sure that i can get some help about it thanks please reply Link to comment Share on other sites More sharing options...
x4hu Posted November 2, 2007 Share Posted November 2, 2007 My setup: I installed vista first on partition 1. I have files on partition 2 (softwares, documents,..). I reduced the partition 2 of 20GB to install osx I have now 3 partitions. then i did : fdisk -e /dev/rdisk0 flag 3 update write quit reboot ...And it worked fine ! OSX is booting again ! Thanks a lot. Now i'm looking for some way to install a dual boot I'll report when i'll do it. Link to comment Share on other sites More sharing options...
Shubham Posted November 14, 2007 Share Posted November 14, 2007 I love you. This fixed me up...almost Now I'm getting an error (I dont even know if its an error) like this guy: http://www.youtube.com/watch?v=TSWdDiEve9U Where it says "boot:" nothing works when i type something and press enter. I did some research and people said something about a "boot flag" Can someone please tell me what i did wrong or what is going wrong? please please please help Link to comment Share on other sites More sharing options...
kumadam Posted December 5, 2007 Share Posted December 5, 2007 Here's what worked for me. Try also using diskpart to change your OSx Partition ID to AF, if you fail with this tutorial. (Probably, the steps explained in the tutorial was necessary also.) Thanks for the help. Changing the Partiton ID Under Vista run cmd dispart select disk1 select partition 3 setid ID=af quit The numbers after disk and partition should be changed to point your OSx86 partition. Hope this helps. Link to comment Share on other sites More sharing options...
PolishOX Posted December 5, 2007 Share Posted December 5, 2007 The concept is better explained like this for a triple boot example: WINDOWS XP rdisk0s1 WINDOWS VISTA rdisk0s2 OSX rdisk0s3 Boot using installation disc for WINDOWS VISTA. Make active and fix boot. Boot using installation disc for WINDOWS XP. Make active and fix boot. Boot using installation DVD for OSX. Make active by fix boot. Using the flag command above, update, write, quit, and reboot. What happens and why you must do this: Each installation requires the hdd to be active (because OSes are selfish {censored} bastards and want to be the center of attention). So each installation sets itself active on a primary partition then installs. Afterwards/during the installation, each OS writes itself to the MBR as the primary OS. Vista handles the boot for XP (by default) so we fix VISTA. Then we fix XP so VISTA can properly handle XP. Finally, since we want OSX/Darwin handling everything, we fix OSX and we are finally done. We have successfully instructed OSX to be the primary hdd and primary OS in the MBR. Enjoy multi boot handled by OSX/Darwin. Some things you might want to do when you are finished: You WILL need to edit your boot.plist to increase the timeout so it will display your boot choices. Without editing boot.plist, you will have to press F8 during every boot and this sucks ass. Edit boot.plist. Don't be a scared little {censored}! The PC/Laptop will boot to a black screen (Darwin) and will list 3 choices. Choice 1 will be XP but will be named Windows. Choice 2 will be VISTA but will be named Windows 2. Choice 3 will be OSX but will be named OSX. To name each boot choice, rename the hdds. WINDOWS -> Right click C: (While inside XP) Rename -> WINDOWS XP WINDOWS 2 -> Right click C: (While inside Vista) Rename -> WINDOWS VISTA OSX -> Will be named whatever you decided to name your hdd during 1st OSX boot. And will be the 1st Boot choice in your darwin list. Don't worry about Drive LETTER. Let the OPERATING SYSTEMS sort that out for you; they will change properly depending on which OS you boot. In XP, Vista will be drive D: and in Vista XP will be drive D. OSX won't be seen by XP OR VISTA unless you install MACDRIVE. Hope explaining the concept also helps a few people. Link to comment Share on other sites More sharing options...
kiepas Posted December 29, 2007 Share Posted December 29, 2007 I have HFS+ Partition Error (kalyway Leo 10.5.1) 1st Partition FAT (Blank) 2nd Partition HFS+ AF LEO 3rd Partition FAT (BlanK) i tried fdisk -u /dev/disk0 no success then fdisk -e /dev/disk0 flag 2 update write quit reboot wit no success help me plz Link to comment Share on other sites More sharing options...
PolishOX Posted December 29, 2007 Share Posted December 29, 2007 I have HFS+ Partition Error (kalyway Leo 10.5.1) 1st Partition FAT (Blank) 2nd Partition HFS+ AF LEO 3rd Partition FAT (BlanK) i tried fdisk -u /dev/disk0 no success then fdisk -e /dev/disk0 flag 2 update write quit reboot wit no success help me plz Read syntax error...you must specify DISK. /dev/rdisk0s# Link to comment Share on other sites More sharing options...
Recommended Posts