Bootcfg
The bootcfg command starts configuration and failure recovery (for most computers, i.e. files).
The bootcfg command with the following parameters is only available when using the Recovery Console. The bootcfg command with different parameters can be used at the command prompt.
usage:
bootcfg /default sets the default boot item.
bootcfg /add adds a Windows installation to the boot list.
bootcfg /rebuild repeats all Windows installation process and allows the user to select what to add.
Note: Before using bootcfg /rebuild, you should first backup the file through the bootcfg /copy command.
bootcfg /scan Scan all disks used for Windows installation and display the results.
Note: These results are stored statically and used for this session. If the disk configuration changes during this session, in order to obtain an updated scan, you must first restart the computer and then scan the disk again.
bootcfg /list Lists the existing entries in the boot list.
bootcfg /disableredirect Disable redirection in the bootstrap.
bootcfg /redirect [ PortBaudRrate] |[ useBiosSettings]
Enable redirection in the bootloader by specifying configuration.
example:
bootcfg /redirect com1 115200
bootcfg /redirect useBiosSettings
chkdsk
Create and display a status report for the disk. The Chkdsk command also lists and corrects errors on 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:] [/p] [/r]
Parameters None
If no parameters are taken, chkdsk will display the disk status in the current drive.
drive: Specify the drive to check for chkdsk.
/p Perform a thorough check even if the drive is not within the range of chkdsk. This parameter makes no changes to the drive.
/r Find the bad sector and restore the readable information. The /p parameter is implied.
Notice
The Chkdsk command requires a file. If the file cannot be found in the startup directory (default is \%systemroot%\System32), you will try to find it in the Windows Installation CD. If you have a multi-boot system computer, you must ensure that you use this command on a drive containing Windows.
Diskpart
Create and delete partitions on hard drives. The diskpart command is only available when using the Recovery Console.
diskpart [ /add |/delete] [device_name |drive_name |partition_name] [size]
Parameters None
If no parameters are taken, 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 a partition. The device name is obtained from the output of the map command. For example, device name:
\Device\HardDisk0
drive_name
Partition to be deleted in drive letter. Use only with /delete. Here is an example of drive names:
D:
partition_name
The partition to be deleted represented by the partition name. Can be used instead of drive_name. Use only with /delete. Here is an example of partition name:
\Device\HardDisk0\Partition1
size
The partition size to create is expressed in megabytes (MB). Used only with /add.
example
The following example will delete the partition:
diskpart /delete \ Device\ HardDisk0\ Partition3
diskpart /delete F:
The following example will add a 20 MB partition to the hard disk:
diskpart /add \ Device\ HardDisk0 20
Fixboot
Writes a new partition boot sector to the system partition. The fixboot command is only available when using the Recovery Console.
fixboot [drive]
Parameter Driver
The drive to be written to the boot sector. It will replace the default drive (i.e. 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 parameters, the fixboot command writes the new partition boot sector to the system partition that the user logs in.
Fixmbr
Repair the primary boot record of the boot disk. The fixmbr command is only available when using the Recovery Console.
fixmbr [ device_name]
parameter
device_name
The device (drive) to write a new master boot record. The device name is obtained 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 device_name is not specified, the new master boot record will be written to the boot device, i.e. the drive that loads the main system.
If the system detects an invalid or non-standard partition table mark, the user will be prompted to continue executing the command. Don't proceed unless you have problems accessing the drive. Writing a new master boot record to a system partition may corrupt the partition table and cause the partition to be 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]
parameter
drive:
Specifies the drive to format. The floppy disk cannot be formatted from the recovery console.
/q
Quickly format the drive. Do not scan the drive for bad areas, so use this parameter only for previously formatted drives.
/fs:file-system
Specifies the file system to use: FAT, FAT32, or NTFS. If the file system is not specified, the existing file system format will be used.
Map
Displays the mapping of the drive letter to the physical device name. This information is very useful when running fixboot and fixmb commands.
The map command is only available when using the Recovery Console.
Map [ arc]
parameter
arc
Instructs the map command to display the Advanced RISC Computing (ARC) device name instead of the device name. Here is an example of 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 a 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).