Windows XP Recovery Console Application Example

  
When Windows 2000/XP/2003 has a startup failure, and it is invalid in Safe Mode or other modes, many of the first things that my friend thinks about is reinstalling the system. Actually not necessary. At this time, we should first consider using Windows' "Recovery Console" to save the system. It can be used to repair the system, disable or enable, format the disk, and perform some administrative tasks. In this issue, we will focus on examples of using the Recovery Console to solve some problems.
System file Ntfs.sys is missing
Q: The "Missing or Corrupt Ntfs.sys" error message appears when restarting Windows XP after converting the partition from the FAT32 system file to the NTFS file system, causing the system to fail to start properly. . How is this good?
A: Enter cd windowssystem32drivers in the recovery console and press ENTER. Then type ren ntfs.sys ntfs.old and rename the corrupted Ntfs.sys file to Ntfs.old. If the prompt does not find the Ntfs.sys file, the file is missing. Put the Windows XP installation CD into the CD-ROM drive. Assume that Windows XP is installed on the C drive and the drive letter is H. Type copy h:i386ntfs.sys c:windowssystem32drivers, then exit the recovery console and restart Windows XP.
System file NTLDR is lost
Q: The system can't start, suggesting that some files are missing. For example, Windows 2000 can't start, and the following error message appears: NTLDR is missing Press any key to restart, indicating that the NTLDR file is missing. what should I do?
A: For the loss of such system files, we can use the COPY lost files on the recovery console system installation CD. Enter the Recovery Console, put the Windows 2000 installation CD into the CD-ROM drive, enter copy h:i386ntldr c: and press Enter, then enter copy h:i386ntdetect.com c: and press Enter. If prompted to overwrite the file, type y and press Enter. Finally, type c:Boot.ini. If the contents of Boot.ini are displayed normally, you can restart it. The problem should be solved. If it is displayed as “ the system cannot find the specified file or directory. ”, that means the Boot.ini file is damaged or lost, you can copy the file to other Windows 2000 computer, copy it to the C drive, and then restart. This method can solve the problem of most system file loss.
After deleting the SAM file by mistake
Q: In Windows XP, the sam file under Windows/system32/config/was accidentally deleted. As a result, the Windows XP account is lost, and now you cannot enter the Windows XP login interface. Since there are a lot of software installed, would you like to restore Windows XP now without reinstalling the system?
A: Enter the recovery console, put the Windows XP installation CD into the CD-ROM drive, enter copy h:windowsrepairsam c:windowssystem32configsam and press Enter, copy the H:windowsrepairsam file to the c:Windowssystem32config folder.
Note: The Sam file under Repair is generated when Windows XP was installed. This operation will lose the installation system and the users and user groups you created in the system. If you have a system restore, you can successfully log in to Windows XP and restore to the latest restore point to restore all your user settings.
There are a lot of files in the system installation CD: windowsrepair directory, which is the registry and hardware information when the system is just installed.
In addition, if you have forgotten your system's login password, you can use this solution to solve the problem.
Windows XP can't be started under multiple systems
Q: My computer is multi-system, I installed Windows XP, and then installed Windows 98. The result will be the Windows XP startup file coverage in the root directory of the system boot partition. The Windows XP system could not be started.
A: Start the recovery console, as shown, type "BOOTCFG /ADD", the recovery console will scan the Windows installation, after a few seconds the scan is complete, then prompt you to choose the installation to be added, select “1”, then it will prompt you to enter the load identifier, and next step it will prompt for the OS load option. Type the fastdetect command, press Enter, type “EXIT", restart the computer, you can see that the long-lost multi-system boot menu is back. If there are other systems, continue with the above steps until all systems are added to the multi-system boot menu.
After deleting the Boot.ini file by mistake
Q: What should I do if I accidentally delete the boot file such as Boot.ini? The original Windows XP system is installed on the C drive. Now reinstall it and install the system on the D drive. After the installation, the C drive is formatted. As a result, the system files such as Boot.ini in the root directory of the C drive are gone. Is there any solution?
A: We can first execute the bootcfg /scan command to scan the Windows installation on all disks. After finding the Windows XP on the D drive, enter bootcfg /redirect to rebuild Boot.ini and use the copy command to install the Windows XP installation CD. NTDETECT.com and NTLDR in the i386 directory are copied to the root directory of the C drive. Finally, execute fixboot c: to write the Windows XP system partition to the boot sector.
If your computer is a dual system, if you delete or delete the system on the C drive, you can accidentally delete the Boot.ini. You can use this solution to recover. If it is a multi-system, you can refer to the previous case, create a boot menu, or manually boot.ini file.
Copyright © Windows knowledge All Rights Reserved