Replacing XOM With Boot Camp

From OnMac.net Wiki
Jump to: navigation, search
Error creating thumbnail: Unable to save thumbnail to destination
Back to BootCamp

This page describes how to install Boot Camp, if you previously had the XOM patch installed, without having to reformat, repartition, or lose any data whatsoever (as long as everything goes as it should, that is).

This procedure comprises several steps, some of which are likely to wipe your harddrive completely if you do something wrong. It's probably a good idea to make a backup before proceeding.

If you wish to know how to back up your system you, visit the How_To_Backup_your_Mac page.

You may follow all of these steps except the last and third-to-last if you just want to upgrade your firmware.

Disclaimer: I've only tested this procedure once, and it worked for me. I have no guarantees that it will work for you, as well. You might very well completely hose your system.


Installing the Mac OS X 10.4.6 update

This is straightforward. Just use Software Update.

This will also un-bless xom.efi and thusly uninstall the XOM hack.

Saving the MBR and clearing it [1]

In this step, the Windows-compatible partition table (MBR for Master Boot Record) will be backed up and then cleared.

Open upp Terminal.app, in /Applications/Utilities/Terminal.app. For those who know their way around the terminal, you should do something like below. Detailed steps afterwards.

$ sudo fdisk -e /dev/rdisk0
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
Enter 'help' for information
fdisk: 1> p
Disk: /dev/rdisk0       geometry: 9729/255/63 [156301488 sectors]
Offset: 0       Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EF    0   0  41 -   25 127  14 [        40 -     409600] <Unknown ID>
*2: 0C   26   0   1 - 1023 254  63 [    417690 -   20948760] Win95 FAT32L
 3: AF 1023 233  32 - 1023 254  22 [  21381160 -  134658144] HFS         
 4: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
fdisk: 1> erase
fdisk:*1> edit 1
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
Partition id ('0' to disable)  [0 - FF]: [0] (? for help) EE
Do you wish to edit in CHS mode? [n] 
Partition offset [0 - 117210240]: [63] 1
Partition size [1 - 117210239]: [117210239] (press Enter here)
fdisk:*1> p
Disk: /dev/rdisk0       geometry: 7296/255/63 [117210240 sectors]
Offset: 0       Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EE    0   0   2 - 1023 254  63 [         1 -  117210239] 
 2: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 3: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 4: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
fdisk:*1> w
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> q
$ 

For n00bs:

  1. Type sudo fdisk -e /dev/rdisk0, enter.
  2. Type p, enter.
  3. Note the output exactly, and save it EXTERNALLY (for example, on your webmail or something.) in case something goes wrong. You will be needing this information later.
  4. Type erase, enter
  5. Type edit 1, enter
  6. Type EE, enter, enter, 1, enter, enter.
  7. Type p, enter, and verify that you have almost exactly this output (differing only in the 'large numbers'):

Disk: /dev/rdisk0       geometry: 7296/255/63 [117210240 sectors]
Offset: 0       Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EE    0   0   2 - 1023 254  63 [         1 -  117210239] 
 2: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 3: 00    0   0   0 -    0   0   0 [         0 -          0] unused      
 4: 00    0   0   0 -    0   0   0 [         0 -          0] unused      

  1. Type w, enter, y, enter, q, enter

The new MBR will be set the next time you reboot. Do this now.

(Credits to shteve)

Installing the firmware upgrade [2]

Download the apropriate firmware for your Intel machine. Follow the instructions in the firmware upgrader.

Downloading Boot Camp, burning the tools CD [3]

Download the Boot Camp installer, launch /Applications/Utilities/Boot Camp Assistant.app , follow the instructions for burning a drivers CD.

Restoring the MBR

In this step, we restore the MBR partition table. Note that if you do this, Boot Camp Assistant doesn't seem to work anymore.

Launch the terminal and enter sudo fdisk -e /dev/rdisk0. Pressing p (and then enter) will print the current partition table. We want it to look like the one you've saved. It looked something like this:

Disk: /dev/rdisk0       geometry: 9729/255/63 [156301488 sectors]
Offset: 0       Signature: 0xAA55
         Starting       Ending
 #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
------------------------------------------------------------------------
 1: EF    0   0  41 -   25 127  14 [        40 -     409600] <Unknown ID>
*2: 0C   26   0   1 - 1023 254  63 [    417690 -   20948760] Win95 FAT32L
 3: AF 1023 233  32 - 1023 254  22 [  21381160 -  134658144] HFS         
 4: 00    0   0   0 -    0   0   0 [         0 -          0] unused      

  1. Now, to edit the first partition, type edit 1. It will ask you for the new details.
    1. For "Partition id", look in the "id" column for the first row in your saved data. It probably says EF, so type EF, and then enter.
    2. Just type enter for the next question to answer the default n for "no" on the CHS question.
    3. Look in the "start" column to answer the "Partition offset" question.
    4. For the first partition, it probably says 40.
    5. For the next question, look in the "size" column. Fill in whatever it says for you.
  2. Continue doing this for "edit 2" to edit the second row, (and of course "edit 3" and "edit 4" for the last two rows).
  3. When you're done, type w, enter to write to disk, answer y to the following question, type q, enter to exit, and then reboot your computer.


Install XP!

Just put the CD into the computer, reboot and hold C! Be sure to select the right partition for installation.


Endnode

I'm really tired, so I'd love if someone proofread this as it might contain typos or factual errors or stuff like that. --Nevyn 17:05, 6 April 2006 (CDT)