Recover Windows boot program

Source: Internet
Author: User
In Windows 2000 or XP, you can use the console to fix system failures. If some system files fail unexpectedly, they cannot be accessed even in safe mode. It is very troublesome to reinstall the system when such a problem occurs. In this case, the system console commands in Windows 2000 or XP may solve these problems. The Windows console is an effective special-effect tool for diagnosing, testing, and restoring system functions. It runs in command line mode. Therefore, you must remember the command names and parameters of a specific function. Here we will introduce the most practical commands and usage, hoping to help you use the Windows console.

There are two methods to restore the console by using the command: one is to start the CD boot with Windows XP, and then choose to restore the console with the command when starting, and the other is to install it when running XP. Specific Method: First insert the boot disk for Windows XP installation into the optical drive, select Run from the Start menu (or press "win key + R") to open the run dialog box, enter the command x \ 1386 \ winnt32.exe/javascons (where X is the drive letter for loading XP). When the system asks you whether to install the command to restore the console, select Yes and the installation wizard appears, then, select to skip network update. After the file is copied, the installation is successful. After restarting, you can see the Microsoft Windows XP Recovery Console option in the startup list.

Bootcfg: This is the most common command. After you enter bootcfg, you will see several of its parameters. Yes, it is used to configure the startup information, if your original system is Windows 98 + Windows XP, after Windows 98 is reinstalled, you will find that Windows XP cannot be started. Use the first method mentioned above to start Windows XP and restore the console, enter the bootcfg/Add or bootcfg/scan command. The former is to manually add the Windows XP startup list, in the format of multi (0) disk (x) RDISK (0) partition (Y), where X is the hard disk where XP is located, Y is the partition where XP is located, and the latter isProgramScans hard disks automatically and adds them automatically. In addition, bootcfg/copy is used to back up the boot. ini file of Windows XP, and bootcfg/default is used to configure the default boot item.

Diskpart: used to create and delete partitions on a hard drive. The syntax format is diskpart [/Add/delete] [device_name drive_name partition_name] [size]. Instance: delete F partition -- diskpart/delete F: Create a 200 MB partition -- diskpart/Add deviceharddisk0 200.

Fixboot: if the system partition is incorrect and cannot be started, it can be directly restored. The usage is as follows: fixboot [Drive]. Drive is the drive to be written into the Boot Sector. For example, fixboot D: writes a new Partition Boot Sector to the system partition of drive D. NOTE: If no parameter is specified, the fixboot command writes a new boot sector to the system partition that the user logs on.

Disable/enable: In the console, some advanced functions and services cannot be used. In this case, you must use these two commands to set or cancel various services. Disable disables system services or device drivers. Enable is used to enable these services and drivers. Usage: Disable/enable (Service name) (device_driver_name), servce_name, name of the System Service to be disabled or enabled. Device driver_name: name of the device driver to be disabled or enabled. Note: When disable is used, the name of the last Startup type will be displayed on the screen. Write down the name to use the enable command to restore the Startup Type as needed.

If you do not need the fault recovery console, You can manually delete it. Open "my computer" and double-click the drive where the fault recovery console is installed, which is assumed to be a drive C. Go to the C-drive root directory and delete the "mongocons" folder and cmldr file. Right-click the boot. ini file and select "properties". In the displayed window, clear the "read-only" check box and click "OK" to exit. Use NotePad to open the boot. ini file, delete the entries in the fault recovery console, save the file, close it, and then restore the read-only attribute of the boot. ini file.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.