From Wiki
Revision as of 21:34, 15 July 2007 by (Talk) (reverted back to R031E5 due to vandalism)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Other languages:

Games Soundtracks Order Acomplia <br> English | Deutsch | 日本語版 | Français | Italiano | Português | 한국어 | Castellano | Srpski | 简体中文版 | Tiếng Việt | Bahasa Melayu | 正體中文版 +/-

Error creating thumbnail: Unable to save thumbnail to destination
Back to Main Page

Installation Images

XOM - The open source solution[edit]

Installing XP on an Intel iMac is a two step process.

  • Creating the XP installation CD
  • Partitioning the hard disk and intalling OSX and XP.

The process is 95% automated. There are two sections below, detailing each one of the two steps highlighted above.

In each section there are three subsections:

  • What you'll need (Lists the requirements (hardware/software/time) in order to complete the task.)
  • Quick instructions (No-nonsense instructions for those "in the know". Assumes an advanced level of knowledge.)
  • Step-by-step instructions (Can get pretty dull at times, but are quite helpful if you want to avoid making any mistakes and regretting it later. (A step by step video tutorial is also available)

Choose one set of instructions or choose both and cross-reference between them. The advanced instructions give a good overview of how far you've gone, and you can drill into the step-by-step instructions anytime you have doubts.

So, without further ado...

Creating the XP installation CD[edit]

A custom slipstreamed CD is required to install XP on a Mac. You may wish to try the Windows_XP_CD_Builder This has been tested by at least two users who had posted their results to the wiki. It never boots into the XP installer. If the included .EXE file does not appropriately copy the files and create the image, then you may wish to try the batch file instead. The file (xpmacbuilder.bat) is in the Sources folder.

You could also try two alternative automatic methods to create the CD under Mac OSX (since you already own a mac ;-) ). More info about this can be found here.

Please note that you must use your own copy of an XP install CD. It is not legal to use a ready-made slipstreamed CD downloaded from the Internet. Such practice is not endorsed by Please do not post links to torrents or other P2P networks containing copyright infringing material.

What You'll Need[edit]

  • An original XP PRO SP2 CDROM (It doesn't have to be bootable, but it should have a i386 directory in the root.)
  • The file
  • A PC with XP already installed (To do this without a PC with XP installed see section 2.4)
  • Nero Burning ROM
  • A blank CD (Preferrably a CD-RW, just in case it doesn't work first time)
  • 20–30 minutes

Creating the CD using mkisofs and a shell (OS X and *NIX)[edit]

Please note that there are two utilities which are able to automate the CD creation procedure:

  • An utility called xomhelper, which includes mkisofs and uses Applescript to prompt you through the creation process. It saves the ISO, and then burns the slipstream CD for those that don't want to tinker in shell. The xomhelper app is available in the forums Here.
  • A bash script (run from a terminal) which does a similar job. It is able to automatically download everything from the internet (including 20" mac xom.efi), auto detect your injected Windows CD and prepare the ISO to be burnt. . You can find it here.

This method uses cdtools/mkisofs which can be 
compiled for *NIX, Linux and Mac OS X.
The following instructions refer to Mac OS X but
with slight modification they can be applied to 
any UNIX like OS. </b>
  • Install XCode/Developer Tools.
  • Install Fink. Full documentation is available here. Or install darwinports. Full documentation for darwinports is avaiable here.
If you are using Fink on Intel Mac or using a beta version of Fink
you'll need to add the "unstable/main" entry in the "Trees:" line of your
fink.conf which is usually located at /sw/etc/fink.conf  

Make sure you edit the fink.conf within terminal I seems to fail when done with textedit Once fink is installed run the following commands in Terminal:

Insert your XP install CD. If you are using an ISO image then mount it through double-clicking in the Finder or from the command line by issuing an hdiutil attach imagename.iso. Then run these commands in the Terminal:

  • cd src

This is the src directory within the XP directory. Not the one in SW directory <b>The CD name will be unique, for the following command you will need to

obtain the name using the "mount" or "diskutil list" commands from within the 
Terminal, replace YOUR_XP_INSTALL_CD example with the name of your XP CD 
  • ditto /Volumes/YOUR_XP_INSTALL_CD .
  • cp -r ../patch/ ../boot.img ../xom.efi .
  • cp ../howto.txt howtomac.txt
  • mkisofs -b boot.img -no-emul-boot -boot-load-seg 1984 -boot-load-size 4 -iso-level 2 -J -joliet-long -l -D -relaxed-filenames -N -V XP_ON_MAC -v -x .DS_Store -o ../xp_on_mac.iso .
Watch out for the dot/period "." at the end of the mkisofs command line
this ensures that all files from the current working directory are added, 
if you leave out the dot, the command will fail 

Note that the mkisofs is long and may be wrapped on your screen. But it should be all one line. This will create an ISO that you will be able to burn with Disk Utility. The xom.efi and howto instructions are on the ISO as well to make things simple. Then, just follow the installation instructions.

This mkisofs boot CD creation process has been tested and verified on the following Intel Mac platforms:

  • cdrtools 2.01 built from source on a PowerMac G5
  • cdrtools 2.01 built using Fink 0.24.12 on a MacBook Pro.
  • cdrtools 2.01 built using Fink 0.24.12 on a iMac 20".
  • Toast 6.1.1 on a iMac 17".

The bootable CD has been tested on the following platforms:

  • iMac 17" & 20"
  • MacBook Pro.

If you are using a different *NIX OS then you will need to make two key changes to these instructions:

  • ditto should be replaced with cp -rp
  • To mount the CD you will need to use different commands.
    • For an ISO image: mount -o loop -t iso9660 imagename.iso mountpoint
    • For a physical CD: mount -t iso9660 /dev/cdrom mountpoint
  • You will need to verify that your kernel has support for Joliet extensions

These instructions were tested on Linux 2.6.14 and failed to produce a bootable image. Please review for accuracy. [edit]I have confirmed that the CD I created in linux (Slackware 10.2 custom kernel) also did not work. However, I followed the Mac instructions and it worked flawlessly. Since you have absolutely no need to be attempting this without a Mac, you might as well be using the Mac to create the CD since it does work.[/edit]

Partitioning the hard disk and Intalling OSX and XP[edit]

The Intel Mac needs to be repartitioned in order to do this. This procedure requires reformatting the HDD. I have not tried partition managers but if you're feeling adventurous you may try one. I do not guarantee results in those cases, though.

Note: The windows partition for dual booting XP has been successfully created without wiping out an existing Mac partition on a Mackbook Pro using the Intel Mac compatible beta version of Coriolis System's iPartition utility version 1.5.0b2 ( The steps for this are to use iPartition to first shrink the existing Mac partition and then to create a new MS-DOS partiton. Directions for using iPartition to perform these steps can be found via iPartition's help menu. Once an MS-DOS partition is available, since your Mac partition is still intact you can skip ahead to installing the xom.efi bootloader. As iPartition 1.5.0b2 is still in beta, this method is to be used at your own risk, so make sure your system is backed up. However, since you are contemplating repartitioning and reformatting your drive anyway (see the next step in this How-To), this shortcut may speed up the install by avoiding the repartition/reformat/install Mac OS X steps while also preserving the contents of your Mac partition.

WARNING: This procedure WILL WIPE YOUR HDD. Make sure to back up any files you don't want to lose.

See Backing Up OS X for some backup advice (don't worry, it's really easy).

Quick (Advanced) Instructions[edit]

  • Partition the disk in two using the OSX CD: FAT in the first and HFS+ in the second
  • Install OSX on the HFS+ partition.
  • Copy xom.efi (from into the hard disk
  • cd to the directory where you put xom.efi and type:
   sudo bless --folder . --file xom.efi --setBoot
  • Reboot, insert the XP CD, select windows using the arrows and wait about 3 minutes.
   Remember to switch to 640x480 mode if you are using a 20" iMac 
   by pressing F4 then F7 while choosing windows logo
I also found that I had to do this dance when installing on a Mac Mini connected to an Apple Cinema 
Display 20"
  • Choose the FAT partition you previously created.
  • Install. Make sure to remove the CD on subsequent boots otherwise you'll start the process over again.

Step-by-step instructions[edit]

  • Boot Mac with OSX Install CD
    • Insert the OSX Installation CD
    • Turn on the Mac while holding the C key.
   Hint: Don't release the C key until you see the grey apple logo.
  • Run Disk Utility
    • Hit Enter on the Language selection dialog
    • Select from the menu:
   Utilities->Disk Utility
  • Create two partitions, preferably of equal size:
   suggestion:  it may be better to make the partitions different sizes to make them easier to 
   identify during the XP installation.
  Partition *1 - Name: xp. Type: MS-DOS
  Partition *2 - Name: osx. Type: Mac OS extended Journal
    • On the left pane click on the internal hard disk (The first entry usually). Click on the disk entry, not on any subentries it may have.
    • On the right pane click on the partition button at the top.
    • From the "Volume Scheme" drop-down select "2 partitions"
    • Select the first partition on the partition map under the Volume Scheme drop-down:
      • Enter "XP" on the Name field
      • Select "MS-DOS File System" from the Format drop-down.
    • Select the second partition
      • Enter "OS X" on the Name field
      • Select "Mac OS Extended (Journaled)" from the Format drop-down
    • Click on the Partition button at the bottom right.
    • Click "Partition" on the pop-up warning dialog.
   Hint: You should now see under the disk entry on the left two subentries: "XP" and "osx"
  • Quit the disk utility by clicking on the Red button at the dialog top left.
  • Proceed to install OSX on the newly created OS X partition.
    • Click Continue on the bottom left of the install dialog.
    • Click Continue again
    • Click Agree on the pop-up dialog
    • Select the osx partition you just created. This partition should have a green arrow.
    • Click Continue
    • Click Continue
    • After a while, the computer reboots
  • Let the computer reboot into OS X and launch a shell window.
    • Once the computer reboots, wait for the movie to end and get through the registration process.
    • Once you get to the desktop go to:
   Go -> Utilities -> Terminal
  • Copy the xom.efi bootloader to the hard disk and bless it.
    • Copy the xom.efi file into your home directory.
    • In the terminal type:
   sudo cp xom.efi /System/Library/CoreServices  <-- you will have to enter your password here
   cd /System/Library/CoreServices
   sudo bless --folder . --file xom.efi --setBoot
  • Insert the slipstreamed XP CD you built into the Mac and reboot.
   Hint: To eject any disk inside press the eject key on the top right corner of your keyboard.
   You can also eject any disk while rebooting by pressing without releasing the F12 key, 
   or holding down the mouse button during boot.
    • Select the Apple menu (top left) and choose "Restart"
    • Click "Restart"
  • After rebooting, you should see a crystal Apple logo at the center of the screen. Use the arrow keys (up/down) to switch between OS X and Windows. Make sure the slipstreamed Windows XP CD is inside, select Windows and hit Enter.
    • If you forgot to insert the XP CD, you may insert it _before_ hitting Enter.
    • If you left a different CD inside, do the following:
      • Turn off the computer
      • Turn it back on _while_pressing_ the F12 key.
      • Don't let go of the F12 key until the CD is out.
      • Insert the XP CD.
    • Now select Windows and hit Enter if you haven't done so yet.

    • If you are using a Mac Mini don't hit Enter
      • These instructions will prevent XP Setup from failing at 0% Copying Files.
      • Press F4 (you will see a 'debug mode' message)
      • Press F7 (you will be prompted for some parameters)
        • X Resolution = 1280
        • Y Resolution = 1024
        • Hit enter for all the other prompts
        • If you see the 0: Boot Mac OS X prompt, press the Down arrow to change to 1: Boot Windows XP
    • If you are using a 20" iMac don't hit Enter
      • Press F4 (you will see a 'debug mode' message)
      • Press F7 (you will be prompted for some parameters)
        • X Resolution = 640
        • Y Resolution = 480
        • Hit enter for all the other prompts
    • If you are using a Non-English version of Windows XP, don't hit Enter
      • Press F4 (you will see a 'debug mode' message)
      • Press F7 (you will be prompted for some parameters)
        • X Resolution = 640
        • Y Resolution = 480
        • Hit enter for all the other prompts
   IMPORTANT NOTE: This will launch the XP setup. For about 2 and a half minutes
   there will be NO FEEDBACK WHATSOEVER.
    • After about 3 minutes, you will get the partition disk screen.
    • Select the XP partition. This partition should read:
   E: Partition1 (EFI) [FAT32]          200 MB (   196 MB free)
   C: Partition2  [Unknown]           78160 MB ( 78159 MB free)
   F: Partition3  [Unknown]           77839 MB ( 77839 MB free)
    • If the partition list does not show as written above, but contains "unpartioned spaces", you should select the upper "unpartioned space" and partition it with the Windows Installer by pressing C (partition ist, but do not erase it!). After that, the list will show the three Volumes E: C: and F as it should. Before continuing the installation you then should press F3 to abort the installation and restart your mac (you need to press F3 twice). The patched Installer now can startup with the correct partition scheme. It will take about 3 minutes again. But then you can go ahead and install XP on partition number 2.
    • Sizes may differ. The important thing is you MUST choose Partition 2.
   With the iMac 20 this step (booting from CD and formatting the partition) will need to be done twice. 
   the first time there is no drive letter in the #2 partition then in the second one there is a Drive letter</b>
    • The install prompts you for the format type to use: NTFS/FAT Quick/Slow
   <b>Note: Choosing FAT will allow read/write access to the Windows partition from OSX.
   Choosing NTFS will only allow you read only access from OSX.
   Note: If the partition is too large (more than 32 Gb), only the NTFS Quick/Slow options will be shown. Choose NTFS Quick (according to IntelFinal.m4v)
   It is VERY IMPORTANT that you get prompted with this step.
   If you are not prompted for a filesystem to install SOMETHING WENT TERRIBLY WRONG!!!
   YOUR INSTALL WILL NOT WORK in that case. MacBook Pro 2GHz will be presented with  
   different partition layout here's how to fix it  
   MacBookPro 2GHz
     Some users with MacBook Pros have reported their keyboards being nonfunctional at the stage
     of the Windows installations in which you choose a partition. The common cure is to power
     cycle the MacBook Pro (hold Power key for five seconds), make sure all USB devices are
     disconnected, and try again. In most cases, this will work.
  • After rebooting, do the following:
    • Press F2 to disable CD booting (there's no feedback, but you can press F2 many times, it doesn't hurt). Alternatively, eject the XP CD as per step 8.
    • Choose XP by using the down arrow.
    • Hit enter (if not using 20" iMac).
    • If you are using a 20" iMac or Mac Mini don't hit Enter. Repeat the 'press F4 - press F7' steps you did before.
    • If you are working with a Non-English version of Win XP don't hit Enter. Repeat the 'press F4 - press F7' steps you did before (make it 640x480). If you simply hit Enter, the second stage of the install might not start at all. I encountered this problem using the Hungarian version.
   NOTE: This time the wait is not that long... just sit tight and wait for about 30 secs.
  • The second phase of the XP installer starts. Complete it. After finishing this phase, the installer seems to hang. Simply wait enough to be sure the system is frozen and cycle power. To do this, just keep the power button depressed for about 5 seconds.
  • Restart Windows and finish the installation. Make sure to remove all CDs before choosing Windows.
     If the windows logo flips upside down instead of loading the installer, try starting 
     the windows installation over again from the section that starts "After rebooting, you 
     should see a crystal Apple logo at the center of the screen."
     In case during the boot you get a debugger telling that an int 13 has been caught, 
     just hit the key 'g' and enter twice (g, enter, g, enter)  
     and you should boot. (on a macbook pro).
     Note: If you are using a Non-English version of Win XP, Windows might not boot. 
     You have to repeat the 'f4, f7, 640x480' thing to boot into Windows. 
     To enable different video modes, open the Registry Editor, and add the following values:
     HKLM,"System\CurrentControlSet\Services\VgaSave","Description",0x00000000,"Provides basic linear frame buffer support for the Intel iMac" 
     HKLM,"System\CurrentControlSet\Services\VgaSave","DisplayName",0x00000000,"XpOnMac Display Controller (xom)"