A typical simple example | [boot loader] timeout=30 default=multi( 0)disk(0) rdisk(0)partitio n(1)\WINDOWS [operating systems] multi(0)disk( 0)rdisk(0) partition( 1)\WINDOWS= "Microsoft Windows XP Professional" /fastdetect |
---|---|
Example with Recovery Console as an option | [boot loader] timeout=30 default=multi( 0)disk(0) rdisk(0)partitio n(1)\WINDOWS [operating systems] multi(0)disk( 0)rdisk(0) partition( 1)\WINDOWS= "Microsoft Windows XP Professional" /fastdetect C:\CMDCONS\BOOTSECT .DAT="Microsoft Windows Recovery Console" /cmdcons |
Example of a dual-boot system with XP on partition 2. Note that the location of Windows Me is given as C:\ | [boot loader] timeout=30 default=multi( 0)disk(0) rdisk(0)partitio n(2)\WINDOWS [operating systems] multi(0)disk( 0)rdisk(0) partition( 2)\WINDOWS= "Microsoft Windows XP Professional" /fastdetect C:\ = "Microsoft Windows Me " |
Example with Safe Mode as an option and "timeout" =10 seconds | [boot loader] timeout=10 default=multi( 0)disk(0) rdisk(0)partitio n(1)\WINDOWS [operating systems] multi(0)disk( 0)rdisk(0) partition( 1)\WINDOWS= "Microsoft Windows XP Professional" /fastdetect multi(0)disk( 0)rdisk(0) partition( 1)\WINDOWS= "Safe Mode" /safeboot:minimal /sos /bootlog |
Explanations for each part of BOOT.INI
[boot loader]
timeout=10
default=multi( 0)disk(0) rdisk(0)partitio n(2)\WINDOWS
[operating systems]
multi(0)disk( 0)rdisk(0) partition( 2)\WINDOWS="Microsoft Windows XP" /fastdetect
C:\ = "Microsoft Windows"
Option | Description |
multi(x) | This option is used with IDE and ESDI drives and is also used with SCSI drives for computers using Windows NT. The number used in the above example is "0", this number is the adapter's number and should always be "0" for computers that rely on the BIOS to load system files.
|
scsi(x) | If the computer has a SCSI controller and is not using BIOS to load the system files, the boot.ini may have "scsi(x)" instead of "multi(x). |
disk(x) | The disk on the controller. If "multi(x)" is used used, this value will always be "0". However, if "scsi(x)" is defined, this value will be SCSI address. |
rdisk(x) | Which disk on the controller is being used. In the above example we are using an rdisk of "1", which indicates the second disk on the primary controller is being used. This value may be between "0" and "3" and is always set to "0" when "scsi(x)" is being used. |
paritions(x) | Which partition the operating system is on. In the above example, the operating system is on the first partition of the drive. |
\WINDOWS=".. ." | Finally, the last portion of this line defines the directory of where windows is located and what the boot menu should display as the operating system. In the above example, the boot menu would display "Microsoft Windows XP Home Edition" as a selection. |
In the "[boot loader]" section above, the "timeout" entry is how many seconds (30 in this case) that the menu will remain onscreen before trying to boot up the "default" OS.
default=multi( 0)disk(0) rdisk(0)partitio n(2)\WINDOWS: -
Most of these lines use what are known as ARC (Advanced RISC Computing) paths to specify the location of various boot partitions. Almost every machine using ATA (EIDE / IDE) hard drives will have: "multi(0)disk( 0)". The multi(x) parameter is used to set the disk controller number, where x=0,1,2,... . The multi(x) parameter is always followed by disk(0); unless you're using a SCSI controller without the BIOS enabled.
The second line under the "[operating systems]" section is what you could call an alternate, backup or rescue copy of my main Win2000 OS which is located in the same volume as the main OS. A line like this will only be found if you install the Recovery Console files from your install CD onto your hard disk! Though its entry appears to differ radically from the usual
"multi(0)disk( 0)" + "rdisk(n)" + "partition(p) " + "\systemroot" format.
Modifying the Boot.ini
At the MS-DOS prompt, type:
c:
cd\
attrib -r -a -s -h boot.ini
edit boot.ini
While you can modify the Boot.ini file using the Startup and Recovery dialog, where you can select the default operating system, change the timeout value, or manually edit the file, the following method uses the command line utility, Bootcfg.exe.
Note The Bootcfg.exe utility is only available in Windows XP Professional. This utility is not available in Microsoft Windows XP Home Edition. Therefore, this section does not apply to Windows XP Home Edition.
1. Click Start, and then click Run. 2. In the Open text box, type cmd. 3. At the command prompt, type bootcfg /?. 4. The help and parameters for BOOTCFG.exe will display.
Adding an Operating System
At the command prompt, type:
Where Operating System Description is a text description (e.g. Windows XP Home Edition), and where # specifies the boot entry ID in the operating systems section of the BOOT.INI file from which the copy has to be made.
Removing an Operating System
At the command prompt, type:
Where # specifies the boot entry ID that you want to be deleted from the operating systems section of the BOOT.INI file (e.g. 2 for the second Operating system that is listed.
Setting the Default Operating System
At the command prompt, type:
Where # specifies the boot entry id in the operating systems section of the BOOT.INI file to be made the default operating system.
Setting the Time Out
At the command prompt, type: bootcfg /timeout# Where # specifies the time in seconds after which default operating system will be loaded.
1. | Right-click My Computer, and then click Properties. -or- Click Start, click Run, type sysdm.cpl, and then click OK. |
2. | On the Advanced tab, click Settings under Startup and Recovery. |
3. | Under System Startup, click Edit. |
- Insert the Microsoft Windows XP CD into the computer. Note: If you have a system recovery CD or restore CD these steps will likely not work for your computer.
- Reboot the computer with the CD and press any key when prompted to press any key to boot from the CD. If you do not receive this prompt and/or are not able to boot from the CD.
- Once in the Microsoft Setup menu press R to open the recovery console.
- Select the operating system you wish to use; if you only have Windows XP on the computer you will only have one prompt.
- Once prompted for the password enter the Admin password and press enter.
- Once at the command prompt type bootcfg /rebuild to start the rebuild process.
- The rebuild process will step you through a number of steps depending upon how many operating systems you have on the computer and how the computer is setup. Below is a listing of the common steps you are likely going to encounter.
* Prompt for the identified versions of Windows installed. When you receive this prompt press Y if the bootcfg command properly identified each of the Windows operating systems installed on the computer. It is important to realize this command will only detect Windows XP, Windows 2000, and Windows NT installations.
* Prompt to enter the load identifier. This is the name of the operating system for the boot.ini. For example, Microsoft Windows XP Home users would enter "Microsoft Windows XP Home edition".
* Prompt to Enter OS load options. When this prompt is received type /fastdetect to automatically detect the available options.
- Once you have completed all the available options in the rebuild and are back at the prompt type exit to reboot the computer.
No comments:
Post a Comment