Site hosted by Angelfire.com: Build your free website today!
Appendix A: Installing or Upgrading to Windows XP

PreviousChapterContentsGlossaryNext

Setting Boot Options

Windows XP includes support for multiple partitions and multiple operating systems (it inherits this ability from Windows NT/2000). The boot program (Ntldr) is stored in the root folder of the first partition on the first disk. Ntldr reads the Boot.ini file, which is stored in the same folder, to find out which partitions you might want to boot from, which partition to use as the default, what to display in the boot menu, and how long to wait before loading the operating system from the default partition. If the boot menu contains only one option, you won't see it--Ntldr simply boots from that partition.

tip Ntldr and Boot.ini are hidden, protected system files. To see them in an Explorer window, choose Tools | Folder Options, click the View tab, and deselect the Hide Protected Operating System Files check box. Also choose Show Hidden Files and Folders.

Understanding the the Boot.ini File

A typical Boot.ini file looks like this:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS=
"Microsoft Windows XP Professional" /fastdetect
C:\="Microsoft Windows"

The [boot loader] section lists the timeout (the number of seconds that it waits before loading from the default partition) and the default (which partition is the default). The [operating systems] section lists all of the partitions that contain operating systems from which you can boot.

Lines that specify partitions tell the boot program (Ntldr) exactly where to find the Windows system folder for any version of Windows, like this:

multi(0)disk(0)rdisk(r)partition(p)\windowsfolder

The "multi" in this line means that Ntldr relies on the computer's BIOS to load the system files. R is the number of the disk attached to the hard disk adapter (0 for the first disk, 1 for the second disk, and so forth). P is the number of the partition on that hard disk (1 for the first partition, 2 for the second partition, and so forth). Partitions are numbered starting with primary partitions, then logical partitions. Unused space and MS-DOS Extended partitions (which you are unlikely to have) are omitted.

If you have a SCSI disk, the line looks like this:

scsi(a)disk(s)rdisk(lun)partition(p)\windowsfolder

A is the number of the SCSI adapter, s is the SCSI ID of the disk, lun is the logical unit number of the disk (usually 0), and p is the partition number on that list. (For more information about booting from SCSI disks, see article Q102873 in the Microsoft Knowledge Base at http://support.microsoft.com.)

In the [operating systems] section, each partition is followed by an equal sign and the string (text) that will appear in the boot menu. Previous versions usually appear simply as "Microsoft Windows," but you can edit this to specify the version of Windows or other information about the partition. For example, you might have "Windows XP Pro Test" and "Windows XP Pro Daily Use."

You can add a few switches to the end of partition lines in the [operating systems] section. (In the example in this section, one of the lines includes the /FASTDETECT switch.) The following are some of the switches that you can use for Windows XP, 2000, and NT 4.0 partitions:

tip In the [boot loader] section, set the timeout to 0 if you don't want Ntldr to display the menu. Set it to -1 if you want Ntldr to wait forever.

Editing Boot.ini

You can edit the Boot.ini file by using one of three Windows programs: The System Properties dialog box (which provides fewer choices), the System Configuration Utility (which displays the whole file for editing), or Notepad.

Editing Boot.ini from the System Properties Dialog Box

To display the System Properties dialog box, click Start, right-click My Computer, and choose Properties from the menu that appears. In the System Properties dialog box, click the Advanced tab. Click the Settings button in the Startup And Recovery section. You see the Startup And Recovery dialog box, shown in Figure A-4.
[figure]
Figure A-4: You can edit the Boot.ini file by changing settings in the System Startup section.

The settings in the System Startup section of the dialog box control part of the contents of the Boot.ini file. You can change the default operating system and the timeout by changing the first two settings. Don't deselect these check boxes, or you won't have time to make a selection from the boot menu. You can also click the Edit button to display and edit the Boot.ini file in Notepad--but proceed with care!

note The third setting in the System Startup section of the Startup And Recovery dialog box controls how long you have to choose to use the Recovery Console in the event that Windows won't start, if you have previously installed the Recovery Console. See Chapter 35 for details on the Recovery Console.

Editing Boot.ini from the System Configuration Utility

To see more of your Boot.ini options, run the System Configuration Utility by choosing Start | Run, typing msconfig, and pressing ENTER. Then click the BOOT.INI tab, as shown in Figure A-5.
[figure]
Figure A-5: Editing your Boot.ini file

The BOOT.INI tab is divided into two parts. The top part shows the actual contents of the current Boot.ini file. The lower part offers options that you can use to change the file. The options that appear in the lower part of the window enable you to start up in various startup modes. The options work as follows:

You can click the Advanced Options button to display the BOOT.INI Advanced Options dialog box, with these additional settings:

Most of these options should never be used without direction from a qualified technician, if you plan on retaining a stable XP installation.

Checking Your Boot.ini Entries

If you reinstall Windows or other operating systems, or copy or delete partitions, you may end up with Boot.ini entries for partitions that aren't really there. The System Configuration Utility can check the entries in your Boot.ini file and delete those that no longer refer to an installed operating system. Follow these steps to check your Boot.ini file:

  1. Choose Start | Run, type msconfig, and press ENTER.
  2. Click the BOOT.INI tab.
  3. Click Check All Boot Paths.
  4. If an entry no longer refers to the location of a valid operating system, Windows displays a message asking whether to delete the line from Boot.ini.
  5. Click Yes to remove the line (so the operating system won't appear on your boot menu) or No to leave it.

PreviousChapterContentsGlossaryNext