Lesson 4: The Boot.ini File
In this lesson, you will learn about the Boot.ini file. When you install Windows 2000 on an Intel-based computer, Windows 2000 Setup saves the Boot.ini file
in the active partition. Ntldr uses information in the Boot.ini file to display the Please Select The Operating System To Start menu, from which you select
the operating system to start. In this lesson, you will learn how to modify the Boot.ini file, including modifying ARC paths and using the optional Boot.ini switches.
After this lesson, you will be able to
Explain the purpose and function of the Boot.ini file.
Estimated lesson time: 15 minutes
Components of the Boot.ini File
The Boot.ini file includes two sections, [boot loader] and [operating systems], which contain information that Ntldr uses to create the Please Select The Operating System To Start menu. A typical Boot.ini file might contain the following lines:
[boot loader] |
The [operating systems] section of a Boot.ini file that is created during a default installation of Windows 2000 Professional contains a single entry for Windows 2000. If your computer is a Windows 2000 and Windows 95- or 98-based dual-boot system, the [operating systems] section also contains an entry for starting the system using the other operating system, for example, C:\ ="Previous Operating System on C". If you installed Windows 2000 on a computer and kept an installation of NT 4 on another partition of the same computer, the
[operating systems] section also contains an entry for starting the system using this version of Windows NT, for example, C:\ ="Windows NT Workstation Version 4.00".
ARC Paths
During installation, Windows 2000 generates the Boot.ini file, which contains Advanced RISC Computing (ARC) paths pointing to the computer's boot partition. (RISC stands for reduced instruction set computing, a microprocessor design that uses a small set of simple instructions for fast execution.) The following is an example of an ARC path:
multi(0)disk(0)rdisk(1)partition(2) |
Table 22.6 describes the naming conventions for ARC paths.Table 22.6 ARC Path Naming Conventions
Convention | Description |
---|---|
Multi(x) | scsi(x) | The adapter/disk controller. Use scsi to indicate a SCSI controller on which SCSI BIOS is not enabled. For all other adapter/disk controllers, use multi, including SCSI disk controllers with the BIOS enabled. The x represents a number that indicates the load order of the hardware adapter. For example, if you have two SCSI adapters in a computer, the first to load and initialize receives number 0, and the next SCSI adapter receives number 1. |
Disk(y) | The SCSI ID. For multi, this value (y) is always 0. |
Rdisk(z) | A number (z) that identifies the disk (ignored for SCSI controllers). |
Partition(a) | A number (a) that identifies the partition. |
In both multi and scsi conventions, multi, scsi, disk, and rdisk numbers are assigned starting with (0). Partition numbers start with (1). All nonextended
partitions are assigned numbers first, followed by logical drives in
extended partitions.See Figure 22.3 for some examples of how to determine the ARC pathname.The scsi ARC naming convention varies the disk(y) parameter for successive disks on one controller, while the multi format varies the rdisk(z) parameter.
Figure 22.3 ARC paths
Boot.ini Switches
You can add a variety of switches to the entries in the [operating systems] section of the Boot.ini file to provide additional functionality. Table 22.7 describes some of the optional switches that you can use for entries in the Boot.ini file.Table 22.7 Boot.ini Optional Switches
Switch | Description |
---|---|
/basevideo | Boots the computer using the standard VGA video driver. If a new video driver isn't working correctly, use this switch to start Windows 2000, and then change to a different driver. |
/fastdetect=[comx | comx,y,z.] | Disables serial mouse detection. Without a port specification, this switch disables peripheral detection on all COM ports. This switch is included in every entry in the Boot.ini file by default. |
/maxmem:n | Specifies the amount of RAM that Windows 2000 uses. Use this switch if you suspect that a memory chip is bad. |
/noguiboot | Boots the computer without displaying the graphical boot status screen. |
/sos | Displays the device driver names as they are loading. Use this switch when startup fails while loading drivers to determine which driver is triggering the failure. |
Modifications to Boot.ini
You can modify the timeout and default parameter values in the Boot.ini file by using System Properties in Control Panel. In addition, you can manually edit these and other parameter values in the Boot.ini file. For example, you might modify the Boot.ini file to add more descriptive entries for the Please Select The Operating System To Start menu or to include various switches to aid in troubleshooting the boot process.During Windows 2000 installation, Windows 2000 Setup sets the read-only and system attributes for the Boot.ini file. Before editing the Boot.ini file with a text editor, you must make the file visible and turn off the read-only attribute. You can change file attributes by using My Computer, Windows Explorer, or the
command prompt. You use My Computer or Windows Explorer to change file attributes, as follows:
Double-click the icon for the drive containing the Boot.ini file. On the Tools menu, click Folder Options. In the Folder Options dialog box, click the View tab. Under Hidden Files And Folders, click Show Hidden Files And Folders, and then click OK. In the My Computer or Windows Explorer window, on the View menu, click Refresh. Right-click Boot.ini, and then click Properties. On the General tab, under Attributes, clear the Read-Only check box, and then click OK.
To change file attributes by using the command prompt, change to the folder containing the Boot.ini file, if necessary, and then type
attrib -s -r -h boot.ini |
Once you have changed the attributes of the Boot.ini file, you can open and modify the file using a text editor.
Lesson Summary
In this lesson, you learned that when you install Windows 2000 on an Intel-based computer, Windows 2000 Setup saves the Boot.ini file in the active partition. Ntldr uses information in the Boot.ini file to display the Please Select The Operating System To Start menu, from which you select the operating system to start. You can edit the Boot.ini file, including modifying ARC paths and using the optional Boot.ini switches.