How to use Windows Console

Source: Internet
Author: User
Windows XP (including Windows 2000) console commands are a very effective tool for diagnosing and testing and restoring system functions in some unexpected situations. (Of course, you can press F8 after the system is started and insert the XP system CD-Rom to enter) This Time, I hope to help you:

Bootcfg

Run the bootcfg command to start the configuration and recover the fault (for most computers, namely the boot. ini file ).
The bootcfg command that contains the following parameters is only available when the fault recovery console is used. You can use the bootcfg command with different parameters at the command prompt.

Usage:

Bootcfg/default sets the default boot item.

Bootcfg/Add add Windows installation to the boot list.

Bootcfg/rebuild repeat all Windows Installation procedures and allow users to select the content to be added.

Note: Before using bootcfg/rebuild, use the bootcfg/Copy command to back up the boot. ini file.

Bootcfg/scan scans all disks used for Windows Installation and displays the results.

Note: These results are statically stored and used for this session. If the disk configuration changes during this session, to obtain an update scan, you must restart the computer and then scan the disk again.

Bootcfg/List lists existing entries in the bootstrap list.

Bootcfg/disableredirectProgramDisable redirection.

Bootcfg/redirect [portbaudrrate] | [usebiossettings]

Enable redirection by specifying the configuration in the boot loader.

Example:
Bootcfg/redirect COM1 115200
Bootcfg/redirect usebiossettings

Hkdsk

Create and display the disk status report. The chkdsk command can also list and correct disk errors.

The chkdsk command containing the following parameters is only available when the fault recovery console is used. You can use the chkdsk command with different parameters at the command prompt.

Vol [drive:] [chkdsk [drive:] [/P] [/R]

None

If no parameter is specified, the chkdsk displays the disk status in the current drive.

Drive: Specifies the drive for chkdsk check.
/P performs a thorough check even if the drive is out of the chkdsk Check range. This parameter does not change the drive.
/R locate the bad sector and restore readable information. The/p parameter is implicit.

Note:

The chkdsk Command requires the autochk.exe file. If the file cannot be found in the startup directory (\ % SystemRoot % \ system32 by default), you will try to find it in Windows installation CD. If you have a computer with multiple boot systems, make sure that you use this command on a drive containing windows.

Diskpart

Create and delete partitions on the hard drive. The diskpart command is only available in the fault recovery console.

Diskpart [/Add |/delete] [device_name | drive_name | partition_name] [size]

None

If no parameter is specified, the diskpart command starts the Windows character mode version of diskpart.

/Add

Create a new partition.

/Delete

Delete an existing partition.

Device_name

The device to create or delete partitions. The device name can be obtained from the output of the map command. For example, the device name:

\ Device \ harddisk0

Drive_name

Partitions to be deleted, expressed as drive letters. It is used only with/Delete. The following is an example of a drive name:

D:

Partition_name

Partitions to be deleted in the partition name. It can be used instead of drive_name. It is used only with/Delete. The following is an example of a partition Name:

\ Device \ harddisk0 \ partition1

Size

The size of the partition to be created, in MB. It is used only with/Add.

Example

In the following example, partitions are deleted:

Diskpart/delete \ device \ harddisk0 \ partition3
Diskpart/delete F:

In the following example, a 20 mb partition is added to the hard disk:

Diskpart/Add \ device \ harddisk0 20

Fixboot

Write a new Partition Boot Sector to the system partition. The fixboot command can be used only when the fault recovery console is used.

Fixboot [Drive]

Parameter drive

The drive to be written to the boot sector. It replaces the default drive (that is, the system partition that the user logs on ). For example, drive: D:

Example

The following command example writes a new Partition Boot Sector to the system partition of drive D:

Fixboot D:

NOTE: If no parameter is specified, the fixboot command writes a new Partition Boot Sector to the system partition that the user logs on.

Fixmbr

Fix the master startup record of the disk. The fixmbr command is available only when the fault recovery console is used.

Fixmbr [device_name]

Parameters

Device_name

The device (drive) to write the new Master Boot Record ). The device name can be obtained from the output of the map command. For example, the device name:

\ Device \ harddisk0

Example

The following command example writes a new Master Boot Record to a specified device:

Fixmbr \ device \ harddisk0

NOTE: If device_name is not specified, the new Master Boot Record is written to the boot device, that is, the drive of the Master System is loaded.
If the system detects invalid or non-standard Partition Table tags, it will prompt the user to continue executing the command. Do not continue unless you have problems accessing the drive. Writing a new primary Boot Record to the system partition may damage the partition table and cause the partition to be inaccessible.

Format

Format the specified drive to the specified file system. The format command with the following parameters is only available when the fault recovery console is used. You can use the format command with different parameters at the command prompt.

Format [drive:] [/Fs: file-system]

Parameters

Drive:

Specify the drive to be formatted. The disk cannot be formatted from the fault recovery console.

/Q

Quickly format the drive. Do not scan the drive to see if there is any bad area, so you should only use this parameter for previously formatted drives.

/Fs: file-System

Specify the file system to use: fat, FAT32, or NTFS. If no file system is specified, the existing file system format is used.

Map

Display the ing between drive letter and physical device name. This information is useful when running fixboot and fixmbr commands.

The map command is available only when the fault recovery console is used.

Map [arc]

Parameters

Arc

Indicates that the map command displays the device name rather than the device name of the advanced Proteus computing (ARC. The following is an example of the arc device name:

Multi (0) disk (0) RDISK (0) Partition (1)

The equivalent device name is:

\ Device \ harddisk0 \ partition1

Example

In the following example, the physical device name is mapped to the drive letter using the arc device name:

Map arc

Note: If the arc parameter is not used, the map command displays the device name. The map command also displays the file system type and the size of each disk (MB ).

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.