Deep analysis of XP boot.ini

Source: Internet
Author: User
Tags constant contains ini modify version
Friends know that after the computer power on the self-test will appear a boot menu, which lists all the operating systems installed on this computer, users use the "↑" "↓" button can choose which system to enter. In fact, it all stems from a file called Boot.ini, which has been in the Windows system since windowsnt. Windows XP relies primarily on the Boot.ini file to determine which operating system categories the computer displays during the reboot (boot) process. Under normal circumstances, it is located in the C-packing directory, in the default state is a hidden read-only system configuration file. To view it, just remove its hidden attributes, open it in Notepad, or run Msconfig.exe in Start, and click BOOT in the System Configuration Utility dialog box that pops up. INI tab to get a glimpse of the truth. The following is the author of the computer in the Boot.ini file as an example, to everyone to explain.

BOOT. The common format for INI files is as follows:

[boot loader]

Timeout=30

Default=multi (0) disk (0) rdisk (0) partition (1) \ Windows

[Operating Systems]

multi (X) disk (Y) rdisk (Z) partition (Q) \windows= "Microsoftwindowsxp Professional"/fastdetect

SCSI (X) disk (Y) rdisk (Z) partition (Q) \win98= "MicrosoftWindows98"/fastdetect

The file is divided into boot loader (boot loading) and operating systems (operating system) two parts. In the Boot load section, TIMEOUT=XX represents the time that waits for the user to select the operating system, which defaults to 30 seconds and can be changed by the user as needed. DEFAULT=XXXX represents the operating system path that the system defaults to load by default, which is displayed as a highlight section that waits for the user to select at startup. But what is confusing to many users is what does "multi (0) disk (0) rdisk (0) partition (1)" mean?

This is actually named after the arc rule, which is a common way to identify devices in a x86 or RISC computer. The ARC name points to the partition where the operating system files are located, and for the disk device, the ARC name consists of the following:

(X) disk (Y) rdisk (Z) partition (Q)

The component section has two valid values, namely, multi and SCSI, which are used to indicate the hardware adapter. Multi represents a non-SCSI hard drive or a SCSI hard drive that is accessed by a SCSI BIOS, while SCSI represents a SCSI hard drive that is disabled by a SCSI BIOS. The x value represents the serial number (x starting from 0) on the same disk controller where the disk that contains the partition on which the system root of the OS resides.

Disk (Y): For a SCSI hard disk, the Y value represents the hard disk number (Y starting from 0) on the same disk controller where the partition on which the operating system root is located is located; for multi, the Y value is meaningless and constant is 0.

Rdisk (Z): For multi, the z value represents the hard disk number (Z starting from 0) on the same disk controller as the partition on which the operating system root is located, and for SCSI hard disks, the z value is meaningless and constant is 0.

Partition (q): The Q value indicates the ordinal number of the primary partition on the same hard disk that contains the partition of the system root of the operating system (Q starts with 1).

The Operating systems section lists the paths and checklists for all operating systems on this computer, including some switches such as/fastdetect,/basevideo, and/sos. These switch characters have special meanings and are generally not recommended for change.

OK, based on the above knowledge, we should have a more clear understanding of the Boot.ini document. As a result, we can modify it as needed. Take the author's computer for example, BOOT. INI file shows that the hard disk has two Windows XP Professional system (in fact, one for the Chinese version, one for the English version), by default, the boot hard disk on the third partition of the system (English version). If you want it to start the system on the first partition of the hard disk by default (Chinese version), and to differentiate, two Windows XP Professional are labeled separately. At this point, we can modify the Boot.ini file to achieve the purpose, as shown in Figure 2. Restart your computer to see if your desires are realized!

From the above, BOOT. INI is a very important system file, without it, the system will not be able to boot, so we usually need to make a necessary backup, but also to edit its methods. In particular, when installing multiple systems, the file is often corrupted if not in the order of installation from low to High (Windows98, Windows2000, Windows XP, Windows2003). If we had the means to revise and edit it, there would be no way to do it.

  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.