Previously used Windows 98 era, if you encounter a system crash or other reasons could not enter Windows, we generally start using the boot disk to DOS down to troubleshoot errors. But now most people use Windows 2000 / XP, not only these operating systems themselves and DOS is not compatible, and because the NTFS partitions may be used, they have not started with the DOS boot disk to enter DOS.
So how do we fix these operating systems? In fact, Microsoft has thought of us, that is, the recovery console, in order to narrative, we will call it a console in the following, all in the Windows XP Professional Edition as an example (in fact this and The operation in Windows 2000 does not differ much).
What is a console
The console is a simple mode of operation of Windows, which can locate the FAT and NTFS partitions in the command line state, and set and operate on the system.
Through the console, we can replace the system file, turn off or disable a system service, disable or uninstall the hardware device, repair the boot sector, new partition, and format hard disk partitions.
How to start the console
For Windows 2000, we can boot your computer with an CD, then press R to select "Fix Windows 2000 Installation" in the setup menu, then press the "Fault Recovery Console to repair Windows 2000" from the repair menu.
For Windows XP, the computer is also powered on the CD, then press R to select the repair, you can enter the console directly.
If you often go to the console, then every time the CD start system seems to have trouble, you can also directly install the relevant options of the console into the boot menu, the method is this: put the disc in the CD drive, then Enter "D: / I386 / WINNT32 / CMDCONS" Enter "D: / I386 / WinNT32 / CMDCONS" Enter "D: You can see the interface of Figure 1, click" Yes "to install the console option to In the advanced launch menu, you can enter the console directly from your hard drive. This method is suitable for Windows 2000 and Windows XP.
Use console
It should be noted that you can only "have restrictions" to access your hard drive under the console due to safety. "Limited" means that you can only access root folders, Windows system folders, detachable storage media (eg, optical drives, floppy drives). And in the console environment, you can only copy the file from the floppy disk or disc, and you cannot copy the files on the hard disk to the floppy disk or disc.
The limitations mentioned above are not dead. If you are not strict on security requirements, and you need to copy files on your hard disk, you can also reset it through Group Policy (note that Windows XP Home Edition has no Group Policy) . Enter "gpedit.msc" in the run and enter the Group Policy Editor. Then in "Computer Configuration -Windows Settings - Security Settings - Local Policy - Security Options" Fault Recovery Console: Allows Panish Copy and Access to all drives and folders ", double click, and then enable it. This will copy the file from the console in this way. Figure
After the previous operation, I have put the console in the startup option, so that after starting the computer, you can see the interface of Figure II (if it is Windows 2000, then press F8, then enter in the Advanced Launch menu), we pass the arrow Select to enter the console.
Then you will then see the interface of Figure 4, which shows the installed operating system, select one of you wants to enter, press the appropriate number, and then carriage return. Here you also need to enter the administrator's password. When "C: / Windows>" appears on the screen, "C: / Windows>" prompts that have been successfully entered into the console. Figure if you are very strange to the console, you can list all available commands at any time as long as you enter "Help" and enter. And if you have to understand the specific use of a command, you can enter the "HELP command" and then enter the car.
Below we will explain the use of the console by demonstration of several most commonly used commands.
Guide question
Double Windows system recovery
If you install Windows 2000 on your computer that has already installed Windows XP, Windows XP will not start normally. This is because the boot file that can boot Windows XP is overwritten by the low version of the Windows 2000. To fix Windows XP, you must fix the replaced boot file.
The boot files we need to repair have two: NTLDR and NTDETECT.COM, both files are saved under the I386 folder of the Windows XP CD. So we can fix them in the console (here you assume that the optical drive is D, you can adjust according to your own actual situation):
Copy D: / i386 / NTLDR C:
Copy D: /i386/ntdetect.com C:
Enter the above commands, press Enter to the end of each line, so you can fix the dual startup of Windows XP and Windows 2000.
Recovery of Windows and Linux dual systems
If you have installed Windows and Linux dual systems, then you may have a problem after you uninstall Linux, you will make you choose to start with DOS or start with Windows after starting your computer. Although you have formatted Linux partition, this option may always exist. In this case, you need to use the fixmbr this command.
Enter "fixmbr" in the console and enter the carriage return, the system will display some precautions and want you to determine, don't pay attention to those things, enter "Y" directly, press Enter, if the repair is successful, then the corresponding prompt is displayed in the command line. In this way, it will not let you choose whether to start Linux when startup.
Partition and formatting operations for hard drives
Although in Windows you can re-partition or format the hard drive by administrative tools, it may encounter a burst to make them complete them in the console. Then, the format and diskpart commands played.
First we tried to partition the hard drive with DiskPart. Note that the "hard disk" here refers only to the unused hard disk space, if you want to restrict the Windows system disk, it is impossible to implement in the console.
It is rare that the diskpart command has a simple graphical interface so that we don't have to remember those complex parameters, and more don't have to worry about a parameter to make an error data loss. Enter "DiskPart" in the console and enter the interface of Figure 5. Is it very familiar? Selecting the interface when installing Windows XP is like this. Press the arrow to select the unparalleled space, then press the "C" button to start a new partition, and enter the partition size you want to build, and a partition is created after the carriage return. However, the partitioned partitioning directly cannot be used because it is not formatted. So we also use the format command to format new partitions.
Press ESC to exit the DiskPart interface and return to the console. The format command here is several parameters:
Format [Driver:] [/ q] [/ fs: file-system]
Where [Driver:] is the disk letter of the partition you want to format; [/ q] can be quickly formatted, that is, the hard disk partition is not detected; [/ fs: file-system] can specify which to use File system to format the partition. Or just now, we want to quickly format new partition E to NTFS file system, then enter in the console
"Format E: / Q / FS: NTFS", Enter, and enter "Y" to confirm the operation 1, wait for a while to format it.
Enable and disable a service or device
There are many important system services in Windows, which allow the Windows system to run normally. If you accidentally disable an important service, it is likely that the Windows system cannot start, and the system cannot start the system you can't re-enable the corresponding service, which causes a malignant loop. But in us, we also have a console and can be free to enable any service or substantive service starting type at will.
There is also a situation, you updated the driver of a hardware device, causing the system to start normally, then you can also disable the device in the console, then go to Windows to resume the correct driver.
Here we are using the commands "enable" and "disable".
The format of the enable command is
Enable [service_name | device_driver_name] [startup_type]
Where [Service_name | Device_Driver_name] is desired to enable service or device name, [startup_type] is the start type, which is automatic, manual and disabled. [startup_type] Represents different start types, five types available
Service_disabled
Service_boot_start
Service_system_start
Service_AUTO_START
Service_Demand_start
The format of the disable command is
Disable [service_name | device_driver_name]
Where [Service_name | Device_Driver_name] is the name of the service or device that wants to disable.
The lighting command is still very monotonous, we cooperate with specific operations to see how to use. We will try to disable the Messenger service in the console and set the service's startup type to disable, and then we restart it.
Enter the console, it is best to make any consequences of your operation before disabling any service, and you can first run Listsvc to see the running status of various system services, here you should see, the Messenger service is started.
Enter "Disable Messenger" and then enter the bus, then the Messenger service has been disabled, you can still see it through the listsvc command. And if you want to re-enable this service and set the service automatically run with the system, you will need to enter "Enable Messenger Service_Boot_Start" and then carries back.
The function of the fault recovery console is powerful, and sometimes will always save people in the water. Therefore, it is desirable that the examples of this article can cause you to pay attention to the console, and can explore carefully, I believe you can use the console to get better.