InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   MBR disk dual boot messed up, SL and Vista (http://infinitemac.com/showthread.php?t=6162)

flackend 05-20-2010 04:23 PM

MBR disk dual boot messed up, SL and Vista
 
Hi,

I've had Snow Leopard and Vista dual booting for awhile, but I messed it up yesterday. I went to edit Vista's BCD with the BCDEdit command-line tool, but I got an error. Google said I needed to to set my Windows partition as active so I used the Windows Disk Management tool. But when I restarted the computer PC EFI didn't load. So I used the Windows Disk Management tool to set my SL partition as active...hence my problem.

Now PC EFI loads in GUI mode (before it loaded in non-GUI) with two options: Windows and Windows NTFS. The first loads Vista and the second (presumably SL) loads a black screen with a blinking cursor.

If I use the Windows Disk Management tool to set the Windows partition as active, it goes straight to windows. I booted into the SL install disk and used fdisk to set the SL partition as active. But I get the PC EFI same as described before.

I also tried to 'Repair Disk' from the Disk Utility on the installation disk and I get an error saying it failed the file system validation (because it thinks it's NTFS but it's actually HFS+).

The disk is MBR.

Is there a way for me to fix my problem? A tool to repair the partition or partition map?

I have an extra partition if it would help to have another installation of OS X to work from.

I also posted this question at insanelymac.

srs5694 05-20-2010 11:38 PM

I'd try re-installing your boot loader, or installing another one (Chameleon, Boot Think, or maybe even GRUB 2).

flackend 05-21-2010 02:35 AM

Fixed!

fdisk manual page

Boot to OS X installation disk.
Boot to OS X installation disk.
Open Terminal.
Code:

# fdisk -e /dev/rdisk0
-e Edit MBR interactively.
rdisk0 0 is the disk number. If you only have one hard drive 0 is most likely the correct number.
Code:

# print
Prints the disk partition map.
Note the number (#) of the partition to be changed.
Code:

# setpid 1
1 The partition number.
Code:

# AF
AF The ID for HFS+.
Code:

# write
Code:

# exit
Reboot.