cele_82 Posted July 20, 2007 Share Posted July 20, 2007 First I want to know if know it correctly: The MBR is the first part of the disk and it contains the data about how the disk is partitioned and which is the partition to boot. Every OS partition has in it a bootloader, for example Windows partition has NTLDR bootloader, OSX partition has Darwin Bootloader. IS IT RIGHT? MY PROBLEM: I have installed OSX and XP in the same disk with no trouble and pain, and Acronis to manage the boot. In a later reinstallation of XP (with OSX partition active damn...) XP has "deleted" the Acronis and also the Darwin Bootloader. I've tried to reinstall Acronis but it doens't see no longer the OSX system only the XP. Without Acronis installed If I make acrive the OSX partition it boot and says "NTLDR missing", if I make XP partition active it boots normally. I know that I can use chain0 method but I don't want cause in a short future I want to delete Windows and use only OSX. SOLUTIONS ALREADY TESTED: I've tried to use sudo fdisk -e /dev/rdisk0 but it restore only the MBR(like fixmbr in Windowss and the MBR works cause Windows boot if I want) WHAT I NEED IS TO REINSTALL DARWIN BOOTLOADER LIKE FIXBOOT COMMAND FOR WINDOWS. IDEAS??? Link to comment https://www.insanelymac.com/forum/topic/57651-reinstall-rewrite-darwin-bootloader/ Share on other sites More sharing options...
fissioner Posted July 20, 2007 Share Posted July 20, 2007 sudo fdisk -u /dev/rdisk0 reboot that copies the boot0 file to your master boot record (MBR) which = the first 512 bytes of your rdisk0. you may have to flag your osx partition as active which is: sudo fdisk -e /dev/rdisk0 fdisk> print fdisk> flag <#> (where # = the # of the OS X partition) http://en.wikipedia.org/wiki/Master_boot_record Link to comment https://www.insanelymac.com/forum/topic/57651-reinstall-rewrite-darwin-bootloader/#findComment-412038 Share on other sites More sharing options...
cele_82 Posted July 21, 2007 Author Share Posted July 21, 2007 Thanks for your answer but I've done doing this: 1. Remove any non Windows/Apple Bootloader (like Acronis,Grub, etc...) 2. Make OSX partition active 3. Boot from the Install DVD, open Terminal from Utility 4. Going to /usr/standalone/i386 folder of the DVD 5. write "dd if=boot1h of=/dev/disk0s1 bs=512 count=1 (see the end note for disk0s1) 6. Reboot and say welcome to Darwin Bootloader. Use disk0s1 or rdisk0s1 if your OSX partition is on the first disk (0) and on the first partition (1) If you can not boot again, boot from the install DVD pressing F8 (this will take you directly in OSX) and from terminal do: 1. sudo fdisk -e /dev/rdisk0 (if you have install OSX in the first disk of the system) 2. reinit 3. flag 1 (if the OSX is in the first partition, or 2 if it is in the second) 4. write 5. exit 6. reboot Also try to do: 1. sudo fdisk -e /dev/rdisk0 (if you have install OSX in the first disk of the system) 2. update 3. write 4. exit 5. reboot Hope that for someone this will be useful. Link to comment https://www.insanelymac.com/forum/topic/57651-reinstall-rewrite-darwin-bootloader/#findComment-412540 Share on other sites More sharing options...
Recommended Posts