Bootcfg
The bootcfg command initiates configuration and failback (for most computers, the boot.ini file).
The bootcfg command with the following parameters is only available when using the Recovery Console. A bootcfg command with different parameters can be used at the command prompt.
Usage:
bootcfg /default Sets the default boot entry.
bootcfg /add Adds a Windows installation to the boot list.
bootcfg /rebuild Repeats the entire Windows installation process and allows the user to select what to add.
Note: Before using bootcfg /rebuild, you should first back up the boot.ini file with the bootcfg /copy command.
bootcfg /scan Scans all disks used for Windows installation and displays the results.
Note: These results are stored statically and used for this session. If the disk configuration changes during this session, to get an updated scan, you must first restart your computer and then scan the disk again.
bootcfg /list Lists the entries already in the boot list.
bootcfg /disableredirect Disable redirection in the boot loader.
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 a status report for the disk. The Chkdsk command also lists and corrects errors on the disk.
The chkdsk command with the following parameters is only available when using the Recovery Console. The chkdsk command with different parameters can be used at the command prompt.
vol [drive:] [ chkdsk [drive:]
[/r]
Parameters None
If you do not take any parameters, chkdsk will display The state of the disk in the current drive.
drive: Specify the drive to be checked by chkdsk.
/p Perform a thorough check even if the drive is not within the scope of chkdsk. This parameter does not make any changes to the drive.
/r Find bad sectors and recover readable information. Implicit the /p parameter.
Notes
The Chkdsk command requires the Autochk.exe file. If the file cannot be found in the boot directory (default is \\%systemroot%\\System32), try to find it on the Windows installation CD. If you have multiple machines that boot your system, you must ensure that you use this command on a drive that contains Windows.
Diskpart
Create and delete partitions on your hard drive. The diskpart command is only available when using the Recovery Console.
diskpart [ /add /delete] [device_name drive_name partition_name] [size]
Parameters None
If you do not take any parameters, the diskpart command will start the Windows character mode of diskpart version.
/add
Create a new partition.
/delete
Delete an existing partition.
device_name
Devices to create or delete partitions. The device name is available from the output of the map command. For example, the device name:
\\Device\\HardDisk0 drive_name
The partition to be deleted represented by the drive letter. Only used with /delete. The following is an example of a drive name:
D:
partition_name
The partition to be deleted, represented by the partition name. Can be used instead of drive_name. Only used with /delete. The following is an example of a partition name:
\\Device\\HardDisk0\\Partition1
Size
The size of the partition to be created, expressed in megabytes (MB). Used only with /add.
Example
The following example will delete the partition:
diskpart /delete \\ Device\\ H
ardDisk0\\ Partition3
diskpart /delete F:
The following example will add a 20 MB partition to the hard disk:
diskpart /add \\ Device\\ HardDisk0 20
Fixboot
To the system The partition is written to the new partition boot sector. The fixboot command can only be used when using the Recovery Console.
fixboot [drive]
Parameter Drive
The drive to be written to the boot sector. It will replace the default drive (that is, the system partition where the user logs in). 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: Without any arguments, the fixboot command will write a new partition boot sector to the system partition where the user is logged in.
Fixmbr
Repair the master boot record of the boot disk. The fixmbr command is only available when using the Recovery Console.
fixmbr [ device_name]
Parameters
device_name
Device (drive) to be written to the new master boot record. The device name is available from the output of the map command. For example, device name:
\\Device\\HardDisk0
Example
The following command example writes a new master boot record to the specified device:
fixmbr \\Device\\HardDisk0
Note
If you do not specify device_name, the new master boot record will be written to the boot device, which is the drive that loads the primary system.
If the system detects an invalid or non-standard partition table tag, the user will be prompted to continue with the command. Do not proceed unless you have problems accessing the drive. Writing a new master boot record to the system partition can corrupt the partition table and cause the partition to become inaccessible. Format
Formats the specified drive to the specified file system. The format command with the following parameters is only available when using the Recovery Console. The format command with different parameters can be used at the command prompt.
format [ drive:] [ /fs:file-system]
Parameters
drive:
Specify the drive to be formatted. You cannot format a floppy disk from the Recovery Console.
/q
Quickly format the drive. Do not scan the drive for bad areas, so only use this parameter for previously formatted drives.
/fs:file-system
Specify the file system to use: FAT, FAT32, or NTFS. If a file system is not specified, the existing file system format will be used.
Map
Displays the mapping of drive letters to physical device names. This information is very useful when running the fixboot and fixmbr commands.
The map command is only available when using the Recovery Console.
Map [ arc]
Parameters
arc
Indication The map command displays advanced RISC calculation (ARC) device names instead of device names. 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
The following example maps the physical device name to the drive letter using the ARC device name:
map arc
Looking for the right You are helpful.
When installing Windows XP, if an administrator account is set, the administrator administra
Under WinXP system, the shutdown computer icon in the start menu is lost. How to r
First, PConline solution 1. Unplug the network; 2. Re-enter WinXP security mode, Panda The burning
Set it up as follows! Click Control Panel→Regional and Language Options→Region Opt
Tips for using disk scanning under Windows XP
How to cancel the power-on password and power-on login box
How to remove the sharing restrictions of Windows XP system files
Experts introduce you to the knowledge of software routers.
How to view system startup items tips by command
How to not display windows xp recently run files
Re-examine Windows XP's 20% reserved bandwidth
Retrieving the new SP2 feature that was abandoned by Microsoft: dual-user login at the same time
How to implement simple optimization of Windows XP
Win7 language bar ch can not delete how to do?
Win10 close update restart method Win10 update automatically restart solution
Why did the Win10 system change "my computer" to "this computer"?
Win 10 how to create a new local account
The IIS configuration file backdoor
XP eight-year binding user Windows7 "Wo Lidou"
u disk boot disk installation win10 preview version of graphic tutorial
Win8 Modern game can not be archived solution
The most basic skills of computer enthusiasts Reinstalling the system
Windows Vista startup management lost or corrupted troubleshooting