Start your computer with a Windows xp cd and "welcome to use and install" appears.ProgramPress R to start the fault recovery console. If you are using a dual-boot or multi-boot computer, select the installation that requires access from the fault recovery console. Enter the administrator password as prompted. If the administrator password is blank, press Enter. Enter copy X: \ i386 \ ntldr c: \ (Press ENTER), copy X: \ i386 \ ntdetect.com c: \ (Press ENTER), (X: your optical drive, C: Operating System installation directory) if the system prompts whether to overwrite the file, Type Y, and then press Enter. To view information about a specific command, enter the HELP command name at the command prompt and press Enter. To exit and restart the computer, enter exit at the command prompt and press Enter. OK!
Additional information:
Ntldr is generally stored in the C root directory and is a system file with hidden and read-only attributes. It is mainly responsible for parsing the boot. ini file. If you do not have a clear understanding of it, we will take Windows XP as an example to introduce the role of ntldr in the system boot process.
During the boot process, Windows XP goes through three phases: Pre-boot, boot, and kernel loading. This is totally different from how Windows 9x directly reads the Boot Sector to start the system, ntldr will play a crucial role in the guiding process of these three phases.
1. Pre-boot phase
In the pre-boot phase, the computer does the following work: run the post program. The post program checks the total memory of the system and the status of other hardware devices, and loads the first physical sector of the disk to the memory, load and run the hard drive Master Boot Record. The Master Boot Record searches for the starting position of the active partition. Then, the Boot Sector of the active partition is loaded and executed, and then the ntldr file is loaded and initialized from the boot sector.
2. Pilot phase
During the boot phase, Windows XP will go through four phases in sequence: initial Boot Loader phase, operating system selection phase, hardware detection phase, and configuration selection phase.
(1) In the initial Boot Loader phase, ntldr will convert the computer's microprocessor from the real mode to the 32-bit flat memory mode. In the real mode, the system reserves KB of memory space for the MS-DOS, and the rest of the memory is seen as extended memory, in 32-bit flat mode, all memory is considered as available memory, then ntldr executes the appropriate small file system driver. At this time, ntldr can identify every file system partition in NTFS or fat format, and the initial Boot Loader stage ends.
(2) When the initial Boot Loader stage ends, it will enter the operating system selection stage. If multiple operating systems are installed on the computer, because ntldr has loaded the correct boot. when the INI file is started, the operating system menu is required. ntldr is from boot. find the partition location of the system file in the INI file. If you select the NT System, ntldr will run the ntdetect. com file. Otherwise, ntldr will load bootsect. Dos and hand over the control to bootsect. Dos. If the boot. there is only one operating system in the INI file or the timeout value is 0, then the menu screen of selecting the operating system will not appear, if the boot. if the INI file is invalid or does not exist, ntldr tries to start the system from the default system volume.
TIPS: After ntldr is started, if the system root directory contains hiberfil. if the Sys File is valid, ntldr reads hiberfil. information in the SYS file and restore the system to the state before hibernation. At this time, boot is not processed. INI file.
(3) When the Operating System Selection phase ends, the hardware detection phase is entered, and ntdetect. the COM file will collect the list of hardware information on the computer, and then return the list to ntldr, so that ntldr will load the hardware information to the hardware in the Registry "HKEY_LOCAL_MACHINE.
(4) After the hardware detection phase ends, the configuration selection phase will be displayed. If there are multiple hardware configuration lists, the configuration file selection menu will appear. If there is only one, it will not be displayed.
3. kernel Loading
During kernel loading, ntldr will load ntokrnl. EXE kernel program, then ntldr will load the hardware abstraction layer (HAL. DLL), and then the system will load the "hkey_machinesystem" key value in the registry. Then ntldr will read the "hkey_machinesystemselect" key value to determine which ControlSet will be loaded. The loaded ControlSet contains the driver of the device and the services to be loaded. Then, ntldr loads the underlying device driver whose start key value is 0 in the Registry "hkey_local_machinesystemservice. When the current ControlSet image of the ControlSet is loaded, ntldr passes the control to ntoskrnl. EXE, and the guiding process ends.
TIPS: If you press F8 at startup, you will see a variety of startup modes in the Startup menu. At this time, ntldr will use the startup parameters to load the NT kernel based on your selections, you can also. set the startup parameters in the INI file.