Subscribe to Windows IT Pro
June 13, 2000 08:47 AM

Key Recovery Console Commands

Windows IT Pro
InstantDoc ID #8957
Rating: (1)

the system tells you that the old start type was SERVICE_SYSTEM_START. Note this information so that you can use the Enable command to reverse the process when you're finished troubleshooting.

Diskpart. The Diskpart command partitions a disk. The command can take command-line arguments (type help diskpart to get a list of arguments that Diskpart accepts), but the easiest way to use this command is to type

diskpart

A text screen will list the partitions on your disk. Use the up arrow and down arrow keys to choose a partition or unpartitioned space. After you choose a partition, press the D key to delete the partition. To create a new partition in unpartitioned space, type C.

The system asks you to specify a size for the new partition. When you're finished, press Esc to return to the console. You'll need to use the Format command to format the new partitions.

Enable. The Enable command lets services or drivers start during a boot. The command accepts two arguments—the service name and the start type (if you don't enter a start type, Enable prints a list of valid start types). For example,

enable cdrom SERVICE_SYSTEM_START

enables the cdrom service and sets the service to start when the system boots.

Exit. The Exit command shuts down the RC and restarts the computer.

Expand. The Expand command expands the cabinet (.cab) files that Win2K Pro Setup uses. At a recovery prompt, Expand behaves similarly to the command-prompt version of Expand, but the command accepts slightly different arguments. Use the help expand command to get details about those arguments.

Fixboot. The Fixboot command can save you from disasters such as inadvertently installing NT or Windows 9x after you've installed Win2K Pro—in which case you can't boot Win2K Pro. Fixboot writes a new boot sector that makes the drive bootable and takes one argument—the drive letter to run on. For example,

fixboot c:

writes a new boot sector on the C drive.

Fixmbr. The Fixmbr command attempts to fix the boot partition's Master Boot Record (MBR) and might help you resolve the problem when the system refuses to boot. The command takes one argument—the name of the device that needs a new MBR. If you leave the name blank, Fixmbr will write the new MBR to the default boot device (usually your C drive).

Format. The Format command reformats a bad disk or formats a partition that you create using Diskpart. The only arguments that Format accepts are the drive letter, /Q (quick format), and /FS (file system), which accepts FAT, FAT32, or NTFS as options. For example,

format g: /Q /FS:FAT32

uses quick format to format drive G as FAT32. If you don't specify a file system, format will default to NTFS, which works on a Win2K-only system and can cause problems in a dual-boot environment.

Listsvc. The Listsvc command lists every service and driver on the system, as well as the start type. If you have a system that tries to boot but crashes because of a driver problem, Listsvc might help you. Write down all service names that appear on the blue screen, then start the RC. Type listsvc and look for the service names you wrote down. Then, use Disable to prevent the suspect driver from starting, and exit. If the system doesn't start, boot to the RC and try again.

Logon. In a multiboot environment, the Logon command lets you log on to another partition. Logon lists the partitions, lets you select one, and asks for the administrative password (this procedure is similar to the procedure you use to start the RC).

Map. The Map command lists the drive letters for all drives, as well as the formats that apply to each drive, the size of each drive, and the NT physical device associated with each drive. For example, Map might display the following information for drive C:

C: FAT162047MB
\Device\Harddisk0\Partition1

Map also accepts an optional command-line argument: arc. Map will display the physical-drive mapping in Advanced RISC Computing (ARC) format, which you typically find in the boot.ini file:

C: FAT162047MB
multi(0)disk(0)rdisk(0)
partition(1)

Systemroot. The Systemroot command sets the current directory to the Win2K Pro system directory tree's root (usually C:\winnt).

Recovery commands can be quite useful in reviving your system. When nothing else fixes the problem, the RC might hold the solution.

Related Content:

ARTICLE TOOLS

Comments
  • Anonymous User
    7 years ago
    Feb 28, 2005

    good info

  • don short
    9 years ago
    Nov 07, 2003

    All very well but....
    anytime i've tried to delate a partition or run format I get the reply
    unable to delete partition (or unable to format) as setup files are in use on this drive. I would love to be able to fully wipe and start with a clean disk but I can never seem to get there.

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.