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 point we should first consider using Windows' "Recovery Console" to rescue the system, which can be used to repair the system, disable or enable services, 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: "Missing or Corrupt Ntfs.sys" appears when you restart Windows XP after converting a partition from a FAT32 file system to an NTFS file system (Ntfs.sys is missing or Corrupted) Error message, causing the system to fail to start properly. How is this good?

Answer: Enter cd \\windows\\system32\\drivers 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, the drive letter is H, type copy h:\\i386\ tfs.sys c:\\windows\\system32\\drivers, and then exit the recovery console. , restart Windows XP.

System file NTLDR is lost

Q: The system does not 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 Recovery Console to COPY lost files from the system installation CD. Enter the Recovery Console, put the Windows 2000 installation CD into the CD-ROM drive (the drive letter is H:), enter copy h:\\i386\ tldr c:\\ and press Enter (copy the ntldr file from the CD-ROM drive to the root directory of the C drive) ), then enter copy h:\\i386\ tdetect.com c:\\ and press Enter (copy the ntdetect.com file from the CD to the root directory of the C drive). 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.", it means that the Boot.ini file is damaged or lost. You can copy the file to another computer with Windows 2000, copy it to the C drive, and then restart. Just fine. This method can solve the problem of most system file loss.

After deleting the SAM file by mistake


Q: I accidentally deleted the sam file under Windows/system32/config/in Windows XP, and the Windows XP account is lost. Now you can't 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 (the drive letter is H:), enter copy h:\\windows\ epair\\sam c:\\windows\\system32\\config \\sam and press Enter, copy the H:\\windows\ epair\\sam file to the c:\\Windows\\system32\\config 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 that you created in the system (the user information returns to the state of the new installation). 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: \\Windows\ epair directory, which is the registry and hardware information when the system is just installed.

Also, if you have forgotten your system's login password, you can use this solution to solve the problem.

Windows XP cannot start under multiple systems

Q: My computer is multi-system, I installed Windows XP, and then installed Windows 98. The result will be located in the root directory of the system boot partition. The Windows XP boot file is overwritten, causing the Windows XP system to fail to boot.

A: Start the Recovery Console, as shown, type "BOOTCFG /ADD" (add the Windows installation to the boot menu list), the Recovery Console will scan the Windows installation, after a few seconds After the scan is complete, then prompt you to select the installation to be added, select "1", then it will prompt you to enter the load identifier (that is, the name of the boot menu item, for example, you want to restore Windows XP system, you can enter "Windows XP") Next, it will prompt for the OS loading option. Type the fastdetect command, press Enter, type "EXIT", restart the computer, and 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 scan the Windows installation on all disks by executing the bootcfg /scan command. After finding Windows XP on the D drive, enter bootcfg /redirect to rebuild Boot.ini and use the copy command to Windows XP. Copy NTDETECT.com and NTLDR in the i386 directory on the installation CD 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 delete the Boot.ini and 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 edit the Boot.ini file.

Copyright © Windows knowledge All Rights Reserved