Windows XP system failure straw

  

Windows operating system system failure should be taken for granted, for most friends, if even the security mode or other startup options do not work, probably only that The ultimate move is to reinstall the system. It is probably discovered by Microsoft's conscience. In the two new versions of WIN2000 and WINXP, we left a lifeline for system failure, that is, the recovery console.
Using the Recovery Console, you can perform operations including enabling and disabling services, formatting drives, reading and writing data on local drives (including drives formatted as NTFS file systems), and performing many other administrative tasks. . The Recovery Console is especially useful if you need to repair your system by copying a file from a floppy or CD-ROM to your hard drive, or if you need to reconfigure a service that prevents your computer from starting properly. However, this method can only be used by advanced users who can use basic commands to identify and locate problematic drivers and files. In other words, to use the Recovery Console, you must be an administrator, that is, you need to know your system administrator's username and password.
First, start the fault recovery console:
Start the fault recovery station has the following two methods:
1, direct start. If you are unable to boot your computer, you can run the Recovery Console from the installation CD. Start your computer with the WINXP installation CD. When starting the text-based installation, follow the prompts and press R to select the repair or recovery option. If you have a dual boot or multiboot system, you can select the drive you want to access from the Recovery Console. When prompted, enter the password for the system administrator. Then at the system prompt, type the "Recovery Console" command, type help to get a list of command names, or type the help command name to get the specified command. You can enter "exit" when you want to exit the Recovery Console command and restart your computer after the last operation is complete.
2, installation start:
You can also install the Recovery Console on your computer in advance, so that you can still use the Recovery Console when you cannot restart Windows. The Recovery Console option can be selected from the list of available operating systems when the system boots. After starting the Recovery Console, you must select the drive you want to log in to (if you have a dual boot or multiple boot system) and you must log in with an administrator password. You can then use the commands provided by the console to perform simple operations (such as changing to a different directory or viewing a directory, etc.) and more powerful operations (such as repairing boot sectors, etc.). To install the Recovery Console as a boot option, insert the installation CD into your CD-ROM drive while Windows is running, click Start - Run, type G:i386winnt32.exe /cmdcons, where G stands for the CD-ROM drive letter. At this time, a prompt window will appear on the screen asking if you want to install. After selecting "Yes", the system will start to copy the file. Finally, you will be prompted to complete the installation of the System Recovery Console.
If you want to delete the installed Recovery Console, you can open "My Computer", double-click the hard drive where the Recovery Console is installed, select "Folder Options" on the "Tools" menu, click View - Show All Files and Folders, clear the Hide Protected Operating System Files check box, and then click OK. Delete the cmdcons folder in the root directory, delete the cmldr file in the root directory, right-click the boot.ini file in the root directory, click Properties, clear the Read Only check box, and then click OK. Open the boot.ini file in Notepad and delete the entry in the Recovery Console, such as "C:CMDCONSBOOTSECT.DAT="Microsoft Windows XP Recovery Console" /cmdcons". Just close the file and save it.
Second, the fault recovery console can use the command:
It should be said that most of the DOS commands can be used in the recovery console, including attrib, cd, chkdsk, cls, copy, del, dir , format, ren, rd, etc., their use is similar to the previous one, but it also has some functions that enhance some of the commands, such as the rd command is to delete the specified directory, the original no command parameters, this time add two Parameters: [/S] - used to delete the directory tree, that is, delete all subdirectories and files under the directory and directory, equivalent to the deltree command in the previous version; [/Q] - use the /S parameter above to delete the directory tree The system will ask the user to confirm if they really want to delete. If the /Q parameter is used at the same time, "rd /S /Q", the confirmation will be canceled when the delete operation is performed, which is equivalent to the /Y parameter of the deltree command. Another function of the format command is to format the specified drive to the specified file system. A new parameter is added to XP: [/FS]—Format the disk according to the specified file system type (FAT, FAT32, NTFS), for example "format" E: /FS:NTFS" means to format the E disk into NTFS format. If a file system is not specified, the existing file system format will be used.
Here are a few commands that are very effective for system failure recovery:
1. The Bootcfg:bootcfg command is used to configure and restore the boot file, boot.ini.
2, Disable and Enable: These two commands are used to disable /start or enable system services or device drivers.
3, Expand: used to extract files from compressed files.
4, Fixboot: write the new partition boot sector to the specified partition.
5, Fixmbr: Repair the master boot record of the specified disk.
6, Help: Display the list of commands used in the Recovery Console.
7, Listsvc: List the services and drivers available on the computer.
8, Set: display and set environment variables.
Due to the length of the relationship, I can not list their specific usage here, you can go to view their command help instructions, if you want to understand the operation of the SET command, you can enter the "Help Set" you can see .

Copyright © Windows knowledge All Rights Reserved