Wonderful use of Windows XP Recovery Console

  
        More and more users use the Windows 2000/XP operating system. Because of the NTFS partition, when these operating systems have problems, you can use the Recovery Console to fix them. This article uses Windows 2000 Professional as an example. Talk about the application of the recovery console.

Recovery Console is a simple mode of operation of Windows, it can not start the graphical interface and a command-line state restricted access to FAT and NTFS partitions, and a number of settings and operating system, somewhat similar to DOS
Operating system. Through the console, we can replace system files, shut down or disable a system service, disable or uninstall hardware devices, repair boot sectors, create new partitions, and format hard disk partitions.

recovery console's launch

start the Recovery Console There are two ways, let's look at the first method: For Windows 2000, we can start the computer with CD-ROM, and then install the program In the menu, press R to select "Repair Windows 2000 Installation", then press C in the repair menu to select "Repair Windows 2000 with Recovery Console"; the operation method under Windows XP is exactly the same. If you often want to enter the console, it seems a bit cumbersome to boot the system each time, so you can directly install the relevant options of the console into the boot menu. This is the second method. Put the operating system CD into the CD-ROM drive, then enter "E:\\i386\\winnt32/cmdcons" directly after the operation and press Enter (here, if your CD-ROM drive is E), you will see the interface of Figure 1, click "Yes" You can install the console option into the advanced boot menu so that you can access the console directly from the hard drive. In the next operation, press F8 after starting the computer, and enter the console by arrow in the advanced startup menu. If it is Windows XP operating system, after the computer starts, the screen of Figure 2 appears. You can also enter the console, and then you will see the interface of Figure 3. Here is the installed operating system. Select a corresponding number to enter. Here you also need to enter the administrator's password. When the prompt "c:\\Windows>" (or other depending on where your system is installed) appears on the screen, the user has successfully entered the console.

Recovery Console Usage

For security reasons, you can only access the hard disk "restricted" under the recovery console. "Restricted" means that you can only access the root folder, Windows system folder, removable storage media (such as CD-ROM, floppy drive). And in the console environment, you can only copy files from the floppy disk or CD to the hard disk, but not the files on the hard disk to a floppy disk or CD.
The restrictions mentioned above are not static. If you are not strict with security requirements and need to copy the files on the hard disk, you can also reset them through Group Policy (note that Windows XP Home does not have Group Policy). Enter "gpedit.msc" in Run and press Enter to open the Group Policy Editor and find the Recovery Console under Computer Configuration Windows Settings Security Settings Local Policies Security Options : Allow floppy disk copy and access to all drives and folders. Double-click to enable it, so you can copy the files after entering the console (Figure 4).

If you are new to the console, just type "Help" and press Enter to list all available commands at any time. And if you want to know the specific purpose of a command, you can get it by typing "Help command" and then hitting it back. Here are a few specific examples to illustrate how to use the console.



Repair of boot problems

Recovery of dual Windows system

If you have Windows 2000 installed on a computer that already has Windows XP installed, Will make Windows XP not start properly. This is because the boot file that can boot Windows XP is overwritten by the lower version of the same name file in Windows 2000. To repair Windows XP, you must repair the replaced boot file. There are two boot files we need to fix: ntldr and ntdetect.com, both of which are saved in the i386 folder on the Windows XP CD. So we can use the copy command to fix it in the console (assuming the CD is E, you can adjust it according to your actual situation):

copy e:\\i386\ tldr c:

copy e :\\i386\ tdetect.com c:

Enter the above commands, press Enter at the end of each line, so you can fix the dual boot problem of Windows XP and Windows 2000. Recovery



Windows and Linux dual system if you have Windows and Linux dual system installed, you may experience a problem after you uninstall Linux, that will let you start your computer after You choose to start with DOS
or with Windows. Although you have formatted the Linux partition, this option may still exist. In this case, you need to use the fixmbr command. Enter "fixmbr" in the console and press Enter. The system will display some precautions and ask you to make sure that you don't care about those matters. Enter "Y" directly and press Enter. If the repair is successful, the corresponding prompt will be displayed on the command line. . This way, when you start, you will not be allowed to choose whether to start Linux.

Partitioning and formatting operations on the hard disk

Although in Windows you can re-partition or format the hard disk through the management tool, but you may encounter an unexpected situation that you must control To complete the operation in Taichung, you need to use the format and diskpart commands. First of all, we use diskpart to partition the hard disk. It should be noted that the "hard disk" here only refers to the unused hard disk space. If you want to re-partition the Windows system disk, it is not possible in the console.

rare diskpart command is a simple graphical interface, so we do not have to memorize complex parameters, not to worry about a parameter error caused by improper operation data loss. Enter "diskpart" in the console and press Enter. You can see that this interface is the same as the interface for selecting partitions when you install Windows 2000. Press the arrow to select the undivided space, then press the "C" key to start a new partition, and enter the size of the partition you want to create. After the carriage return, a partition is created. However, the partition created directly in this way cannot be used because it is not formatted, so we also use the format command to format the newly created partition. Press ESC to exit the diskpart interface and return to the console. The format command here has several parameters:

format [driver:] [/q] [/fs:file-system]

where [driver:] is the format you want to format The partition of the partition; [/q] can be quickly formatted, that is, the hard disk partition is not detected after formatting; [/fs:file-system] can specify which file system to use to format the partition.

or in the earlier example, we want the new partition E quick format NTFS file system, then enter in the console "format e: /q /fs: ntfs", Enter, and enter "Y" to confirm the operation, wait for a while to format it.

Enabling and Disabling a Service or Device

There are many important system services in Windows that make Windows systems work. If you accidentally disable an important service, it is likely to cause the Windows system to fail to start and re-enable the corresponding service, which creates a vicious circle. Fortunately, we still have a console, and you can freely enable any service or set the startup type of the service in the console.
In another case, you update a hardware device drivers
, cause the system to not start, you can disable the device in the console, and then go on to Windows restore the correct driver.

The commands we use here are "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 the wish to enable The name of the service or device; [startup_type] is the startup type, that is, automatic, manual, and disabled; [startup_type] indicates different startup types, and there are five types of startup 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 you want to disable.

Here we take a look at the specific operation with use, we will try to disable the Messenger service in the console, and set the startup type of the service is disabled, then we restart it. Into the console, it is best to know what the consequences of your operation before disabling any services, and you can run listsvc to check the running status of various system services. You should see that the Messenger service is started. Type "disable messenger" and press Enter. At this point the Messenger service has been disabled and you can still see it via the listsvc command. If you want to re-enable this service and set the service to run automatically with the system, you need to enter "enable messenger service_boot_start" and press Enter.

Copyright © Windows knowledge All Rights Reserved