Jump to content

MBR disk dual boot messed up, SL and Vista


2 posts in this topic

Recommended Posts

Hi,

 

I've had Snow Leopard and Vista dual booting for awhile, but I messed it up today. 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.

Link to comment
Share on other sites

Fixed!

 

fdisk manual page

 

Boot to OS X installation disk.

Open Terminal.

# 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.

# print

Prints the disk partition map.

Note the number (#) of the partition to be changed.

# setpid 1

1 The partition number.

# AF

AF The ID for HFS+.

# write

# exit

Reboot.

Link to comment
Share on other sites

 Share

×
×
  • Create New...