Recovering Windows Server 2003 on HP Integrity Servers

10
Recovery Console Commands
From the recovery console, you can run commands to perform simple operations such as changing to a
different directory or viewing a directory to complex tasks such as fixing the boot sector. At the system
prompt, type the Recovery Console commands; type help for a list of commands or help commandname
for help on a specific command.
Recovery Console provides the following commands:
attrib changes attributes on one file or folder.
batch executes commands that you specify in the text file, InputFile. OutputFile holds the output of
the commands. If you omit the OutputFile argument, output is displayed on the screen.
cd (chdir) operates only in the system directories of the current Windows installation, in removable
media, in the root directory of any hard disk partition, or in the local installation sources.
chkdsk: The /p switch runs Chkdsk even if the drive is not flagged as dirty. The /r switch locates
bad sectors and recovers readable information. This switch implies /p. Chkdsk requires Autochk.
Chkdsk automatically looks for Autochk.exe in the startup folder or in the boot folder. If Chkdsk
cannot find the file in the startup folder, it looks for the Windows Server 2003 installation CD. If
Chkdsk cannot find the installation CD, it prompts the user for the location of Autochk.exe.
cls clears the screen.
copy copies one file to a target location. By default, the target cannot be removable media, and
you cannot use wildcard characters. Copying a compressed file from the Windows Server 2003
installation CD automatically decompresses the file.
del (delete) deletes one file. Del operates in the system directories of the current Windows
installation, in removable media, in the root directory of any hard disk partition, or in the local
installation sources. By default, you cannot use wildcard characters.
dir displays a list of all files, including hidden and system files.
disable disables a system service or device driver.
diskpart manages partitions on hard disk volumes.
The /add option creates a new partition.
The /delete option deletes an existing partition.
The device-name argument is the device name for a new partition. One example of a device
name for a new partition is \device\harddisk0.
The drive-name argument is the drive letter for a partition that you are deleting, such as D:.
Partition-name is the partition-based name for a partition that you are deleting, and can be
used instead of the drive-name argument. One example of a partition-based name is
\device\harddisk0\partition1.
The size argument is the size in megabytes of a new partition.
enable enables a system service or device driver.
exit quits the Recovery Console and then restarts the computer.