<p/> <A NAME="758"><H1>Lesson 4: The Boot.ini File</H1></A> <p/>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.<p/> <font class=Quote>After this lesson, you will be able to</font> <p/>Explain the purpose and function of the Boot.ini file.<p/> <p/><font class=Quote>Estimated lesson time: 15 minutes</font><p/><p/><A NAME="759"><h2>Components of the Boot.ini File</H2></A> <p/>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:<p/><table cellpadding=5 width="95%"><tr><td> <pre>[boot loader] timeout=30 default=multi(0)disk(0)rdisk(1)partition(2)\ WINNT [operating systems] multi(0)disk(0)rdisk(1)partition(2)\ WINNT=&quot;Microsoft Windows 2000 Professional&quot; /fastdetect multi(0)disk(0)rdisk(1)partition(1)\ WINNT=&quot;Windows NT Workstation Version 4.00&quot;&quot; multi(0)disk(0)rdisk(1)partition(1)\ WINNT=&quot;Windows NT Server Workstation 4.00 [VGA mode]&quot; /basevideo /sos C:\ =&quot;Previous Operating System on C:&quot;&quot;</pre> </td></tr> </table> <p/>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, <font face="courier">C:\ =&quot;Previous Operating System on C&quot;</font>. 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, <font face="courier">C:\ =&quot;Windows NT Workstation Version 4.00&quot;</font>.<p/><A NAME="760"><h2>ARC Paths</H2></A> <p/>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:<p/><table cellpadding=5 width="95%"><tr><td> <pre>multi(0)disk(0)rdisk(1)partition(2)</pre> </td></tr> </table> <p/>Table 22.6 describes the naming conventions for ARC paths.<p/><font class=Quote>Table 22.6</font> ARC Path Naming Conventions<p/><table valign="top" cellpadding="5" width="95%"> <tr> <th>Convention</th> <th>Description</th> </tr> <tr> <td valign="top">Multi(x) | scsi(x)</td> <td valign="top">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.</td> </tr> <tr> <td valign="top">Disk(y)</td> <td valign="top">The SCSI ID. For multi, this value (y) is always 0.</td> </tr> <tr> <td valign="top">Rdisk(z)</td> <td valign="top">A number (z) that identifies the disk (ignored for SCSI controllers).</td> </tr> <tr> <td valign="top">Partition(a)</td> <td valign="top">A number (a) that identifies the partition.</td> </tr> </table> <p/>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.<p/>See Figure 22.3 for some examples of how to determine the ARC pathname.<p/>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.<p/><A HREF="'F22tk03x')"> </A> <p/><font class=Quote>Figure 22.3</font> ARC paths <p/><A NAME="761"><h2>Boot.ini Switches</H2></A> <p/>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.<p/><font class=Quote>Table 22.7</font> Boot.ini Optional Switches<p/><table valign="top" cellpadding="5" width="95%"> <tr> <th>Switch</th> <th>Description</th> </tr> <tr> <td valign="top">/basevideo</td> <td valign="top">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. </td> </tr> <tr> <td valign="top">/fastdetect=[comx | comx,y,z.]</td> <td valign="top">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.</td> </tr> <tr> <td valign="top">/maxmem:n</td> <td valign="top">Specifies the amount of RAM that Windows 2000 uses. Use this switch if you suspect that a memory chip is bad.</td> </tr> <tr> <td valign="top">/noguiboot</td> <td valign="top">Boots the computer without displaying the graphical boot status screen.</td> </tr> <tr> <td valign="top">/sos</td> <td valign="top">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.</td> </tr> </table> <p/><A NAME="762"><h2>Modifications to Boot.ini</H2></A> <p/>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.<p/>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:<p/> <p/> Double-click the icon for the drive containing the Boot.ini file.<p/> On the Tools menu, click Folder Options.<p/> In the Folder Options dialog box, click the View tab.<p/> Under Hidden Files And Folders, click Show Hidden Files And Folders, and then click OK.<p/> In the My Computer or Windows Explorer window, on the View menu, click Refresh.<p/> Right-click Boot.ini, and then click Properties.<p/> On the General tab, under Attributes, clear the Read-Only check box, and then click OK.<p/> <p/>To change file attributes by using the command prompt, change to the folder containing the Boot.ini file, if necessary, and then type<p/><table cellpadding=5 width="95%"><tr><td> <pre><font class=Quote>attrib -s -r -h boot.ini</font></pre> </td></tr> </table> <p/>Once you have changed the attributes of the Boot.ini file, you can open and modify the file using a text editor.<p/><A NAME="763"><h2>Lesson Summary</H2></A> <p/>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.<p/> - Microsoft Windows 1002000 Professional [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Microsoft Windows 1002000 Professional [Electronic resources] - نسخه متنی

Rick Wallace

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید






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]
timeout=30
default=multi(0)disk(0)rdisk(1)partition(2)\ WINNT
[operating systems]
multi(0)disk(0)rdisk(1)partition(2)\ WINNT="Microsoft Windows 2000
Professional" /fastdetect
multi(0)disk(0)rdisk(1)partition(1)\ WINNT="Windows NT Workstation
Version 4.00""
multi(0)disk(0)rdisk(1)partition(1)\ WINNT="Windows NT Server
Workstation 4.00 [VGA mode]" /basevideo /sos
C:\ ="Previous Operating System on C:""


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






















ConventionDescription
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


























SwitchDescription
/basevideoBoots 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:nSpecifies the amount of RAM that Windows 2000 uses. Use this switch if you suspect that a memory chip is bad.
/noguibootBoots the computer without displaying the graphical boot status screen.
/sosDisplays 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.

/ 156