Computer can't get into the system anymore !!!! Urgent !!!!!

Enter with the XP installation disk and press R xp Failure Recovery Console and its commands

Bootcfg

The bootcfg command launches the configuration and failure recovery (i.e., the boot.ini file for most computers).

The bootcfg command with the following parameters is available only when using the Failover Console. The 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 full Windows installation process and allows the user to select what to add.

Note: Before using bootcfg /rebuild, backup 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, in order to get an updated scan, the computer must be restarted and then the disks scanned again.

bootcfg /list Lists the entries already in the boot list.

bootcfg /disableredirect Disables redirection in the boot boot loader.

bootcfg /redirect [ PortBaudRrate] |[ useBiosSettings]

Enables redirection in the boot bootloader by specifying the configuration.

Example:

bootcfg /redirect com1 115200

bootcfg /redirect useBiosSettings

hkdsk

Creates and displays a report on the status of the disks. the chkdsk command also lists and corrects disk Chkdsk command also lists and corrects errors on the disk.

The chkdsk command with the following parameters is available only when using the Failure Recovery Console. The chkdsk command with different parameters can be used at the command prompt.

vol [drive:] [ chkdsk [drive:] [/p] [/r]

Parameters None

Without any parameters, chkdsk displays the status of the disks in the current drive.

drive: Specifies the drive to be checked by chkdsk.

/p Performs a thorough check even if the drive is out of chkdsk's scope. This parameter does not make any changes to the drive.

/r Finds bad sectors and restores readable information. The /p parameter is implied.

Note

The Chkdsk command requires the Autochk.exe file. If you cannot find this file in the boot directory (default \%systemroot%\System32), you will try to find it on the Windows installation CD. If you have a computer with a multi-boot system, you must ensure that you are using this command on the drive that contains Windows.

Diskpart

Creates and deletes partitions on a hard disk drive. diskpart commands are only available when using the Failure Recovery Console.

diskpart [ /add |/delete] [device_name |drive_name |partition_name] [size]

Arguments None

With no arguments, the diskpart command starts the Windows character mode version of diskpart.

/add

Creates a new partition.

/delete

Deletes an existing partition.

device_name

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

\Device\HardDisk0

drive_name

Partition to be deleted in terms of drive number. Used only in conjunction with /delete. The following are examples of drive names:

D:

partition_name

Partition to be deleted by partition name. Can be used instead of drive_name. Used only in conjunction with /delete. The following is an example of a partition name:

\Device\HardDisk0\Partition1

Size

Size of the partition to be created, in megabytes (MB). Used only in conjunction with /add.

Example

The following example deletes a partition:

diskpart /delete \ Device\ HardDisk0\ Partition3

diskpart /delete F:

The following example adds a 20 MB partition to the hard disk:

diskpart /add \ Device\ HardDisk0 20

Fixboot

Writes the new partition boot sector to the system partition. You can use the fixboot command only if you are using the Failure Recovery Console.

fixboot [drive]

Parameters drive

The drive to which the boot sector will be written. 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 partitioned boot sector to the system partition on drive D::

fixboot d:

Note: Without any arguments, the fixboot command writes a new partitioned boot sector to the user's logged-in system partition.

Fixmbr

Fixes the master boot record of the boot disk. fixmbr is available only when using the Failure Recovery Console.

fixmbr [ device_name]

Arguments

device_name

The device (drive) to which a new master boot record is to be written. The device name can be 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 you do not specify device_name, the new master boot record is written to the specified device:

fixmbr name, the new master boot record will be written to the boot device, the drive on which the host system is loaded. If the system detects an invalid or non-standard partition table flag, the user is prompted whether 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 may corrupt the partition table and render the partition inaccessible.

Format

Formats the specified drive to the specified file system. The format command with the following parameters is available only when using the Failure Recovery Console. The format command with different parameters can be used at the command prompt.

format [ drive:] [ /fs:file-system]

Parameters

drive:

Specifies the drive to format. Floppy disks cannot be formatted from the Failure Recovery Console.

/q

Quickly formats the drive. Does not scan the drive for bad areas, so this parameter should be used only 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

Displays the mapping of drive numbers to physical device names. This information is useful when running the fixboot and fixmbr commands.

The map command is available only when using the Failure Recovery Console.

Map [ arc ]

Parameters

arc

The map command is instructed to display the Advanced RISC Computing (ARC) device name instead of the device name. The following is an example of an ARC device name:

multi(0)disk(0)rdisk(0)partition(1)

The equivalent device name is:

\Device\HardDisk0\Partition1

Example

The following example maps a physical device name to an ARC device name using the ARC device name 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 type of file system and the size (in MB) of each disk.

[ Last edited by jumper on 2003-11-2 at 11:17 ]

Attrib

Changes the attributes of an individual file or directory. This command sets or removes the read-only, system, archive, hidden, and compressed attributes assigned to a file or directory.

The attrib command with the following parameters is available only when using the Failure Recovery Console. The attrib

command with different parameters is available at the command prompt.

attrib [ +r|-r] [ +s|-s] [ +h|-h] [ +c|-c] [ [ drive:] [ path] filename]

Arguments

+r Sets the read-only attribute.

-r Clears the read-only attribute.

+s Sets system attributes.

-s Clears the system attributes.

+h Sets hidden attributes.

-h Clears the hidden attributes.

+c Sets the compression attribute.

-c Clears the compression attribute.

[ [ drive:] [ path] filename]

Specifies the location and name of a directory or file to process. You can change one file at a time or an entire directory.

Note: Multiple attributes of a file or directory can be changed with a single command.

Batch

Executes the command specified in the text file. batch command is available only when using the Failure Recovery Console. The Fault Recovery Console can be launched from the installation CD.

batch input_file [ output_file]

Parameters

input_file

Specifies a text file that contains a list of commands to be executed. input_file can consist of a drive letter and colon, a directory name, a filename, or a combination of these.

output_file

If specified, the command output is stored in a named file. If not specified, the output is displayed on the screen.

Example

The following example executes the batch file C:\Jobs\Find.txt and stores the output in the file C:\Jobs\Results.txt:

batch c:\jobs\find.txt c:\jobs\results.txt

Note: Batch files cannot contain nested batch commands.

Chdir (Cd)

Displays the name of the current directory, or changes the current folder.

The chdir command with the following parameters is available only when using the Failure Recovery Console. The chdir command with different parameters can be used at the command prompt.

chdir [drive:] [path] [ ...]

Or

cd [drive:] [ path] [ ...]

Arguments None

Without any arguments, chdir displays the name of the current drive and folder. Used only with a drive letter (e.g. cd C:), chdir will display the current directory on the specified drive.

[ drive:] [ path]

Specifies the drive (if not the current drive) and directory to change to.

[ ...]

Specifies the parent folder to change to. Insert a space between chdir and the two periods.

Note

chdir treats spaces as separators. Use quotes to expand directory names that contain spaces. For example:

cd "driver cache"

Chdir applies only to the system directory of the current Windows installation, removable media, the root directory of a hard disk partition, or a local installation source.

Copy

Copies individual files to other locations. The copy command with the following parameters is available only when using the Failure Recovery Console.

The copy command with different parameters can be used at the command prompt.

copy source [ destination]

Arguments

source

Specifies the location and name of the file to be copied. source can consist of a drive letter and colon, a directory name, a file name, or a combination.

destination

Specifies the location and name of the file or set of files to be copied to. destination can consist of a drive letter and colon, a folder name, a file name, or a combination.

Note

The source can be removable media, any directory in the system directory of the current Windows installation, the root directory of a drive, a local installation source, or the Cmdcons directory.

The target can be any location other than removable media that is the same as the source. If you do not specify a target, it defaults to the current directory.

The compressed files on the Windows installation CD are decompressed during the copy process.

Copy does not support wildcards.

Delete (Del)

Deletes individual files. The delete or del commands with the following parameters are available only when using the Failure Recovery Console. You can use the delete or del commands with different parameters at the command prompt.

delete [ drive:] [ path] filename

or

del [ drive:] [ path] filename

Arguments

[ drive:] [ path] filename specifies the location and name of the file to delete.

Note

Delete applies only to the system directory of the current Windows installation, removable media, the root directory of a hard disk partition, or a local installation source.

Dir

Displays a list of files and subdirectories in a directory. The dir command with the following parameters is available only when using the Failure Recovery Console. You can use the dir command with different parameters at the command prompt.

dir [ drive:] [ path] [ filename]

Parameters

[ drive:] [ path]

Specifies the drive and directory to view the list.

[ filename]

Specifies a specific file or group of files to view the list. Multiple filenames can be used. Filenames can be separated by spaces, commas, or semicolons. You can display a group of files using wildcards (?) in the filename parameter. and *) in the filename parameter to display a group of files.

Dir also lists the volume label and serial number of the disk, as well as the number of files listed, their cumulative size, and the amount of free space (in bytes) remaining on the disk. For each file and subdirectory, dir lists the file extension, the number of bytes in the file, the last modification date and time of the file, and the following file attributes, if available:

Abbreviations Attributes

d Directory

h Hidden Files

s System Files

e Encrypted

r Read Only

a Archived files

c Compressed

p Reanalyze points

Note:

Dir applies only to the system directory of the current Windows installation, removable media, the root directory of a hard disk partition, or a local installation source.

Expand

Extracts files from compressed files. This command allows you to extract driver files from a .cab file or compressed file.

The expand command with the following parameters is available only when using the Failure Recovery Console. The expand command with different parameters can be used at the command prompt.

expand source [ /F:filespec}] [ destination] [ /d] [ /y]

Arguments

source

Specifies the file to expand. Use this option if the source contains only one file. source can consist of a drive letter and colon, a directory name, a file name, or a combination. Wildcards cannot be used.

/f:size

If the source file contains more than one file, specify the names of the files to extract. Wildcards can be used for the files to be extracted.

destination

Specifies the destination directory and/or filename for the extracted files or each individual file.

/d

Lists the files contained in the CAB file without expanding or extracting them.

/y

No overwrite prompt when expanding or extracting files.

Example

The following example will extract the Msgame.sys file from the driver CAB file on the installation CD and copy it to C:\Windows\System\Drivers:

expand d:\i386\driver.cab\f:msgame.sys c:\\\ windows\system\drivers

The following example expands the compressed file Access.cp_:

expand d:\i386\acces.cp_c:\windows\system32\access.cpl

The following example lists all of the drivers in the CAB file of the driver that is on the installation CD. driver CAB file.

expand /d d:\i386\driver.cab

Highlights

The driver CAB file contains thousands of files, including most of the drivers provided by Windows. Expanding all the files from the CAB file to the hard disk takes a long time and a lot of disk space. It is recommended that you extract only the files you need from this file. Note

If no destination is specified, the files are copied to the current directory.

Removable media such as floppy disk drives or CD-ROMs cannot be specified as targets.

Mkdir (md)

Creates a directory or subdirectory. The mkdir command with the following parameters is available only when using the Failure Recovery Console. The mkdir command with different parameters can be used at the command prompt. mkdir [ drive:] path

or

md [ drive:] path

Arguments

drive:

Specifies the drive on which to create the new directory.

path

Specifies the name and location of the new directory. Wildcards cannot be used.

Note

kdir applies only to the system directory, removable media, root directory of a hard disk partition, or local installation source of the current Windows installation.

Rename (Rename)

Changes the name of an individual file. The rename command with the following parameters is available only when using the Failure Recovery Console. The rename command with different parameters can be used at the command prompt.

rename [ drive:] [ path] filename1 filename2

or

ren [ drive:] [ path] filename1 filename2

Parameters

drive:] [ path] filename1

Specifies the location and name of the file to be renamed. Wildcards cannot be used.

filename2

Specifies a new name for the file. You cannot specify a new drive or path when renaming a file. rmdir (Rd)

Deletes a directory. The rmdir command with the following parameters is available only when using the Failure Recovery Console. The mdir command with different parameters can be used at the command prompt.

rmdir [ drive:] path

or

rd [ drive:] path

Arguments

[ drive:] path

Specifies the location and name of the directory to be deleted. Wildcards cannot be used.

Note

The directory must be empty or the command fails.

Rmdir only applies to the system directory of the current Windows installation, removable media, the root directory of a hard disk partition, or a local installation source.

Type

Displays the contents of a text file. Use the type or more command to view a text file without modifying it. The type command with the following arguments is available only when using the Failure Recovery Console. You can use the type command with different arguments at the command prompt.

type [ drive:] [ path] filename

or

more [ drive:] [ path] filename

Arguments

[ drive:] path] filename

Specifies the location and name of the file to view. and name.

If you are using an NTFS drive and the filename contains spaces, you must cause the filename to be enclosed in quotation marks (").

More

Displays the contents of a text file. Use the more or type command to view a text file without modifying it. The more command with the following parameters is available only when using the Failure Recovery Console. You can use the more command with different parameters at the command prompt.

more [ drive:] [ path] filename

or

type [ drive:] [ path] filename

Arguments

[ drive:] path] filename

Specifies the location and name of the file to view. and name.

If you are using an NTFS drive and the filename contains spaces, you must cause the filename to be enclosed in quotation marks (").

Cls

Clears the screen.

The cleared screen shows only the command prompt and the insertion point.

Disable

Disables Windows XP, Windows 2000, or Windows NT 4.0 system services or device drivers. disable command is available only when using the Failure Recovery Console.

disable {service_name] |[ device_driver_name}

Arguments

service_name

The name of the system service to disable.

device_driver_nam

The name of the device driver to disable.

Example

The following example disables the Eventlog service:

disable eventlog

Note

The disable command sets the startup type of the specified service or driver to SERVICE_DISABLED.

When you use the disable command to disable a system service or device driver, the name of the last startup type of that system service or device driver is displayed on the screen. This name should be memorized so that you can use the enable command to restore the boot type to the last setting if needed.

***There are five boot types. The first three are: SERVICE_AUTO_START, SERVICE_DISABLED, and SERVICE_DEMAND_START. The corresponding standard startup types are: AUTO, DISABLED and MANUAL, which are usually configured using the "Services" in the "Computer Management" administration tool. The last two types, SERVICE_BOOT_START and SERVICE_SYSTEM_START, are typically used to configure how device drivers are loaded. For example, they are loaded when the computer is started or when Windows is started.

Enable

Enable Windows XP, Windows 2000, or Windows NT 4.0 system services or device drivers. enable command is available only when using the Failure Recovery Console.

enable {service_name |device_driver_name}[ startup_type]

Parameters

service_name

The name of the system service to enable.

device_driver_name

The name of the device driver to enable.

startup_type

The startup type to assign to the service or device driver. Valid startup types include:

SERVICE_BOOT_START

SERVICE_SYSTEM_START

SERVICE_AUTO_START

SERVICE_DEMAND_START

Examples

The following example sets the startup type of the Eventlog service to automatic or SERVICE_AUTO_START:

enable eventlog service_auto_start

Note

If the startup type is not assigned, the enable command lists the services or device drivers specified in service_name. name, the enable command lists the current startup type of the service or device driver specified in service_auto_start.

When you change the boot type with the enable command, the name of the last boot type is displayed. You should make a note of this name so that you can restore the boot type to the last setting if needed.

Exit

Shut down the Failover Console and restart the computer. exit is only available when using the Failover Console.

exit

Parameters None

help

Provides online information about the Failover Console command.

help [ commandname]

Parameters None

Lists the commands available in the Failure Recovery Console.

commandname

Provides information about the command, including the parameters used by the command.

Note

There are two ways to get online help for a command. You can specify the name of the command following the help command, or you can type the command name at the command prompt and the /? switch. For example, type the following command to get information about the extract command:

help extract

extract /?

Listsvc

Lists the services and drivers available on the computer. listsvc command is available only when using the Failure Recovery Console.

listsvc

Parameters None

Logon

Logs on to the Windows installation. the logon command is available only when using the Failure Recovery Console.

logon

Parameters None

Note

The logon command lists all detected Windows installations that require the installation's local administrator password to log on.

If 3 logon?

Take a look, I hope this helps

If you have any questions, you can add the IT Problems discussion group 68440797