| Computer Education | |||||||
|
|
|
Boot.ini is an important system file with crucial boot functions.
Here we discuss what it does and how to edit it.
Boot MenusIf more than one option is available in boot.ini, a menu will be displayed at boot up listing the choices. An example of the boot menu for a dual-boot system with the added option of Safe Mode in Windows XP is shown below. These entries are determined by the contents of boot.ini.
Structure and Contents of Boot.ini FilesSome examples of boot.ini files are given in the table below. There are two sections in a boot.ini file. The first is [boot loader], which contains two settings that apply in general. The entry "timeout={ some decimal number}" is the time in seconds that the system waits before it loads the default operating system. This is set to 30 unless you make a change. The default system is determined by the next line "default={address of operating system} For most home PCs the entry is "default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS". The entry is used by Ntldr to find where the Windows operating system is located. The rather complicated-looking default line provides for advanced hardware options that are not common in home setups. (It is called the Advanced RISC Computing or ARC naming convention.) The most likely part that a home user might change is the partition number for systems where a dual-boot system is being used. Normally, a proper installation will make the necessary entries for the default and it is rare that any editing of the disk or partition numbers would be required. In multi-boot systems it is sometimes desirable to switch which operating system is the default but that is easily accomplished by methods discussed in the section on editing below. The second section of a boot.ini file is [operating systems]. It contains a list of the operating systems and bootable programs and where they are located. It can also include switches that configure a particular operating system or program. There are a number of switches that are discussed here. The names that appear in the boot display menu are taken from this section. The display names are those that are enclosed in quotation marks following an equals sign. The table below will help clarify the contents of boot.ini.
How to Edit Boot.ini FilesSince boot.ini is a text file, it can be edited with a text editor such as Notepad. However, the attributes must first be changed, Also, care must be taken to preserve the correct extension. Since any mistakes in editing might very well render your system unbootable, it is better to use one of the safer methods that are available. Before using any method, be sure to make a backup copy. One of the most common reasons for editing boot.ini is to reduce the "timeout" setting.in order to speed up booting. This is easily accomplished by using the System Configuration Utility (often called msconfig). Open Start-Run and enter "msconfig". The box shown below will open.
Click the tab "BOOT.INI" and the figure shown next will open. The contents of the boot.ini file are shown and a number of configuration settings are available. In the middle right is a box where the settings for Timeout can be changed. This example is for a dual-boot system and another common reason for editing is to change the default operating system in dual-boot setups. Note that there is a button "Set a Default" as well as buttons "Move Up" and "Move Down" (grayed out here). If there are multiple entries in the boot display, their order can be rearranged here. There are also a number of advanced options that experienced computer users may look at. These other functions are discussed in the Microsoft references given at the end of the article.
Another way to configure these two most commonly edited settings is to open the Start menu, right-click on "My Computer" and choose "Properties" from the context menu. The System Properties dialog box will open as shown below. In the section "Startup and Recovery" click the button "Settings".
The dialog box shown in the next figure will open. Both the Timeout setting and the default operating system can be changed here.
To add or delete an operating system or program from the boot display menu, use the "Edit" button on the right of the entry "To edit the startup options file manually, click Edit" as shown in the figure below. For example, if it is no longer desired to dual-boot a system, the unwanted operating system can be removed from the boot display menu this way.
The command line tool bootcfg.exeWindows XP Professional also has a command line utility for manipulating boot.ini called bootcfg.exe. (It may or may not be in a Home Edition installation.) It is described in this Microsoft reference. It can be used in the Recovery Console to repair a damaged boot.ini file or in a command window to edit entries to the file. There are a number of different switches and these are illustrated in the output to a command window shown below.
There is another set of switches for bootcfg when it is being run in the recovery console. These are discussed at this Microsoft reference. A discussion of using the tool to repair a damaged setup is discussed here. For example, a damaged boot.ini file can be scanned or deleted and a new version built. Addition of DEP switch in Windows XP SP2The security updates in service pack 2 for Windows XP included the addition
of capability for DEP (Data
Execution Prevention). DEP configuration for the system is controlled
through switches in the boot.ini file. Some features of DEP are
turned on by default with a boot.ini switch
Most current processors can use DEP although some older systems may not. There have been some reports that these older systems can be slowed down if DEP is enabled. More details on configuring the settings for DEP are given on a separate page. Note about Windows VistaIt should be noted that Vista uses a different way of managing the boot process. There is no longer a text file called boot.ini. Boot information is stored in a Registry-like file called the Boot Configuration Data (BCD) store. Extensive information on the new boot process can be found at this Microsoft site. Vista comes with a command-line tool bcdedit.com for configuring BCD. However, the command-line tool is rather complicated to use and a free editor called EasyBCD has a graphical user interface that is simpler to use. Microsoft references |
|
| << Home page | ©2002-2010 Victor Laurie | Home page >> |