changes.
| | h2. About BOOT.INI |
| | |
| | A file called BOOT.INI stores information regarding the physical location(s) of your various Windows NT-based installations. NTLDR accesses this file to get a list of the installed operating systems and display them in the on-screen boot menu for the end user to pick and OS to load into. |
| | |
| | If you're getting a [BOOT.INI-related error|Troubleshooting Windows XP], then you need to create or update your BOOT.INI file to reflect the correct system information. |
| | |
| | h3. Location |
| | |
| | BOOT.INI is stored in the root of your "system" partition, which contains other files like NTLDR, NTDETECT, and a BOOT folder. |
| | |
| | h3. A typical BOOT.INI file: |
| | {noformat} |
| | [boot loader] |
| | timeout=30 |
| | default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS |
| | [operating systems] |
| | multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Professional" /fastdetect |
| | multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Windows Server 2003" /fastdetect |
| | {noformat} |
| | |
| | h4. \[boot loader\] |
| | |
| | The section entitled {{\[boot loader\]}} contains the global NTLDR settings. These include {{timeout}} which defines how long NTLDR will wait for the end user to select an OS, and {{default}} which tells NTLDR what OS to boot into if the timeout value runs out. |
| | |
| | h4. \[operating systems\] |
| | |
| | This section lists the operating systems installed on this physical machine. Each operating system has a line that describes its location in standard ARC path format. |
| | * {{multi(0)}}: The adapter of the hard disk that Windows is on. Keep it set to 0. |
| | * {{disk(0)}}: The physical disk number to load Windows from _if_ {{{_}multi{_}}} _is not used_. Since we're using {{multi}}, keep this 0 as well. |
| | * {{rdisk\(x)}}: The physical disk number to load Windows from. {{rdisk()}} begins counting from 0, so the first drive on your system is {{rdisk(0)}}, the second is {{rdisk(1)}}, and so on and so forth. |
| |  | _These numbers do not relate to the SATA channel numbers or the IDE primary/secondary - master/slave connections, but to the order of your drives *as seen by the BIOS*, so that rdisk(0) is the drive you are booting from etc._ |
| | * {{partition\(y)}}: The number of the partition on the drive {{rdisk\(x)}}. {{partition\(y)}} starts counting from 1, so the first partition is {{partition(1)}}, the second is {{partition(2)}}, etc. {{partition\(y)}} counts primary partitions first then counts logical partitions. The extended partition (the "container" for logical partitions) itself isn't counted, though. |
 |  | _These numbers are taken from the Partition Table in the Master Boot Record, which will generally be the order *in which they were created*, which will not necessarily be the same as the order in which they appear on the disk_ |
| | |
 | | Because of the two _italicised_ notes above, it can be quite difficult to identify the *correct* rdisk() partition() combination to describe your XP partition. For this reason alone, you might like to take the first of the following options to create BOOT.INI. |
| | |
| | h2. Rebuilding BOOT.INI |
| | |
| | There are multiple ways of re-creating BOOT.INI to get your system up and running once more, the simplest of which is to download [EasyBCD 2.0|http://neosmart.net/forums/showthread.php?t=642] and use it to add an XP entry to your Vista BCD. It will offer to create boot.ini for you and ensure that it accurately describes your XP system(s) and is correctly located and accompanied by the other necessary XP boot files which it will automatically copy to the correct location. All you need to do is say "yes please". |
| | |
| | h3. Manually Creating/Updating BOOT.INI |
| | |
| | If you're feeling masochistic and you want to create it manually instead of letting EasyBCD do the hard work for you, the historic instructions follow. |
| | |
| | # If you don't have a file called BOOT.INI on your boot partition (usually C:\), create a new file in notepad and save it to there, calling it "BOOT.INI" (with the quotes). |
| | # Copy this to the notepad window: |
| | {noformat}[boot loader] |
| | timeout=30 |
| | default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS |
| | [operating systems] |
| | multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP Professional" /fastdetect{noformat} |
| | # Update the {{rdisk(0)}} and {{partition(1)}} values to point to the correct disk and partition numbers. Refer to the information above for details on how this number is determined. Make this change to _both_ ARC path lines -- make sure they're both exactly the same. |
| | # Save your changes to BOOT.INI and exit notepad. |
| | # Reboot to test. |
| | |
| | h3. Automated Creation of BOOT.INI |
| | |
| | If you have a Windows XP or Windows 2000 CD lying around, you can use it to automatically re-create your boot.ini file to point to the correct partitions. |
| | |
| | # Insert your Windows 2000 or XP CD in the drive, and proceed to boot from it. |
| | # When prompted to "Press 'R' to enter Recovery Console," do so. |
| | # Once in the recovery console you may be asked for the Administrator password for security purposes. If you know it, enter it and hit <enter>. If you don't, use a Windows 2000 CD to bypass the prompt. |
| | # Enter this in the console: |
| | {noformat}bootcfg /rebuild |
| | exit{noformat} |
| | # The {{bootcfg}} command will search your hard drive for valid, available Windows NT-XP installations, and proceed to add each to boot.ini. You will be prompted to name each entry (give it any name you like) and provide load options (give it "/fastdetect" without the quotes). |
| | # The {{exit}} command will quit the Recovery Console. |
| | # Remove the 2000/XP CD from the drive and reboot. |
| | |
| | Boot.ini has been recreated and should do the trick. |
| | |
| | h3. By Repair Installing (In-Place Upgrade) Windows XP |
| | |
| | This is the proverbial "sledge-hammer to crack a nut", and will also require that you repair the Vista boot process subsequently, because any install of XP after Vista will regress the Vista boot to XP's NTLDR, which is incapable of being made to boot Vista. |