![[Image: TAluJNe.png]](https://i.imgur.com/TAluJNe.png)
Recovering Windows 2000, Windows XP Os
Windows XP offers tools that enables you to get your system working again. Safe Mode, Last Known Good Configuration, Recovery Console, Repair Install and Automated System Recovery (ASR), these tools should be used in that order.
Start Windows into Safe Mode
If Windows won't start normally, you may be able to reach the desktop by using one of three Safe Mode options available at Advanced Boot Options menu.
Once you make it to Windows XP in Safe Mode, you can then investigate the problem and make the necessary changes (such as disabling or rolling back a device driver).
In Safe Mode, Windows uses default settings (VGA monitor, Microsoft mouse driver, no network connections, and the minimum device drivers required to start Windows).
Here’s how to start Windows Os into Safe Mode:
1. Press F8 key immediately after your system finishes the Power-On Self Test, which is usually indicated by a single beep.
2. Select either Safe Mode, Safe Mode with Networking or Safe Mode with Command Prompt option.
But what if your system won’t even start in Safe Mode?
Your next step should be booting with the Last Known Good Configuration.
Repairing Windows Using the Last Known Good Configuration
If you make hardware and driver settings changes and then find that the Windows won’t start, you can have Windows Os start using the control set registery key that worked the last time, this is called the Last Known Good Configuration.Here’s how to start Windows Os using the Last Known Good Configuration:
1. Press F8 key immediately after your system finishes the Power-On Self Test, which is usually indicated by a single beep.
2. Select the Last Known Good Configuration option.
And if the Last Known Good Configuration doesn’t work either don’t worry, there’s still hope in the form of the Recovery Console, a command-line tool that enables you to launch recovery tools, stop and start services, access files, and replace corrupted system files.
Recovering Using the Recovery Console
Microsoft Windows Recovery Console provides a recovery environment for Windows 2000 and Windows XP operating systems. Windows Recovery Console is a command-line console for troubleshooting non bootable Windows operating systems the Windows Recovery Console environment looks very much like DOS.
Commands have to be type at the Windows Recovery Console rather than working in the GUI of Windows.
Using the Recovery Console, you can perform any of the following tasks:
• Enable or disable services and drivers
• Create and format partitions
• Read, write, delete data on drive
• Copy files from floppy disk or CD/DVD media or USB drives to another location
• Copy or replace Windows system files
• Repair the boot sector or Master Boot Record (MBR)
• Fixes file system errors on the hard disk
• Rebuild Windows boot options
Windows Recovery Console can be access two different ways:
• Run from the Windows Installation CD.
• Can be selected at the boot time if it’s installed to Windows Os as a startup choice.
Installing the Windows Recovery Console
1. Within Windows 2000 or Windows XP, place your Windows 2000 or Windows XP Setup CD into the CD/DVD-ROM optical drive.2. Click Start Menu --> Run
3. From the Run dialog box, type CD_Drive_Letter:\i386\winnt32.exe /cmdcons
![[Image: VKqzRTN.png]](https://i.imgur.com/VKqzRTN.png)
Where the CD_Drive_Letter should be replace by the drive letter of the CD/DVD-ROM optical drive.
Launching Installed Recovery Console
To launch the Recovery Console from the hard disk drive follow below steps.1. Restart the PC.
2. When prompted to select operating system to start, select Microsoft Windows Recovery Console.
Start Windows Recovery Console from Windows Installation CD
1. Insert the Windows Setup CD into your CD/DVD-ROM optical drive.2. Restart the computer and look for a startup message that prompts you to press a key or key combination to modify the BIOS settings.
3. Configured the BIOS boot device order setting to start from a CD/DVD-ROM optical drive.
![[Image: uY4awFa.png]](https://i.imgur.com/uY4awFa.png)
4. If prompted, press any key to start the computer from the Windows Os Setup CD.
5. At the ‘Welcome to Setup’ screen press ‘R’ key to choose the ‘To Repair A Windows XP Installation Using Recovery Console’ option.
![[Image: KauzhUj.png]](https://i.imgur.com/KauzhUj.png)
6. Type the number that corresponds to your main Windows Os installation and press Enter. The Recovery Console prompts you to enter the Administrator password.
![[Image: vh7BSqb.png?1]](https://i.imgur.com/vh7BSqb.png?1)
7. Type the password and press Enter. On a system running Windows XP Home Edition Administarator password is blank by default, so just press Enter.
After you've logged on to Recovery Console, you can type help to see a list of all available commands. Type help commandname or use the /? switch after a command name to learn its syntax.
Recovery Console Commands List
Attrib
Sets or clears attributes (Read Only, Hidden, System) for a single file or folder.
Example
The following Command clears the read only, hidden, system attributes of the “Boot.ini” file.
Attrib -hsr C:\Boot.ini
The following Command clears the read only, hidden, system attributes of the “Boot.ini” file.
Attrib -hsr C:\Boot.ini
Batch
Runs the individual Recovery Console commands from a text file.
Example
The following command executes Recovery Console commands listed in the Commands.txt file.
Batch Commands.txt
Batch Commands.txt
Bootcfg
Automatically scans all local disks for Windows installations and configures and repairs entries in the operating system menu (Boot.ini).
Example
The following command rebuild a new Boot.ini file if one does not exist or corrupt.
Bootcfg /rebuild
The following command rebuild a new Boot.ini file if one does not exist or corrupt.
Bootcfg /rebuild
Cd or Chdir
Displays the name of the current directory or changes the current directory to another directory.
Example
The following command changes the Recovery Console current directory path to the C:\Windows.
Cd C:\windows
The following command changes the Recovery Console current directory path to the C:\Windows.
Cd C:\windows
Cls
Clears the screen.
Copy
Copies a single file to another location.
Example
The following command, the atapi.sy_ file located in the i386 folder on the Windows XP installation CD is copied to the C:\Windows directory as atapi.sys.
copy d:\i386\atapi.sy_ c:\windows\atapi.sys
The following command, the atapi.sy_ file located in the i386 folder on the Windows XP installation CD is copied to the C:\Windows directory as atapi.sys.
copy d:\i386\atapi.sy_ c:\windows\atapi.sys
Chkdsk
Checks the hard disk drive partition (NTFS/FAT) file system for errors and attempts to repair them.
Example
The following command repairs the C:\ partition file system errors and marks bad sectors.
chkdsk C: /r
The following command repairs the C:\ partition file system errors and marks bad sectors.
chkdsk C: /r
Del or Delete
Deletes one or more files.
Example
The following command deletes Example.txt file from C:\ partition.
Del c:\Example.txt
The following command deletes Example.txt file from C:\ partition.
Del c:\Example.txt
Dir
Displays a list of files and subdirectories in a directory.
Example
The following command displays files and directorys located at C:\ partition type:
Dir C:\
The following command displays files and directorys located at C:\ partition type:
Dir C:\
Disable
Using the Disable command, you can disable a Windows system service or driver. If you are unable to start Windows XP Professional in normal or safe mode, the cause might be an incorrectly configured driver or service that has caused a Stop message.
Example
The following command disable floppy disk driver.
Disable Flpydisk SERVİCE_DISABLED
The following command disable floppy disk driver.
Disable Flpydisk SERVİCE_DISABLED
Diskpart
The diskpart command is a Recovery Console command used to create or delete partitions on hard drives.
Example
Used without parameters, the diskpart command starts the Windows character-mode version of diskpart.
![[Image: QR2NdaX.png]](https://i.imgur.com/QR2NdaX.png)
Used without parameters, the diskpart command starts the Windows character-mode version of diskpart.
![[Image: QR2NdaX.png]](https://i.imgur.com/QR2NdaX.png)
Enable
Enables disabled services, if you are unable to start Windows XP Professional in normal or safe mode, the cause might be an incorrectly configured driver or service that has caused a Stop message.
Example
The following command configures the floppy disk driver to start manually.
Enable Flpydisk SERVICE_DEMAND_START
The following command configures the floppy disk driver to start manually.
Enable Flpydisk SERVICE_DEMAND_START
Exit
To quit the Recovery Console and restart the computer, use the Exit command.
Expand
Extracts a file from a compressed file.
Example
The following example extracts the file Msgame.sys from the Drivers cabinet file on a Windows Setup CD and copies it to C:\Windows\System\Drivers:
expand d:\i386\driver.cab /f:msgame.sys c:\Windows\system\drivers
The following example extracts the file Msgame.sys from the Drivers cabinet file on a Windows Setup CD and copies it to C:\Windows\System\Drivers:
expand d:\i386\driver.cab /f:msgame.sys c:\Windows\system\drivers
Fixboot
Writes a new partition boot sector to the system partition. The fixboot command is only available when you are using the Recovery Console.
Example
The following example writes a new partition boot sector to the system partition in drive D:
Fixboot d:
The following example writes a new partition boot sector to the system partition in drive D:
Fixboot d:
Fixmbr
Repairs the master boot record of the boot disk. The fixmbr command is only available when you are using the Recovery Console.
Example
The following example writes a new master boot record to the device specified
fixmbr \Device\HardDisk0
The following example writes a new master boot record to the device specified
fixmbr \Device\HardDisk0
Format
Formats a disk.
Example
The following command does quick format of the C: partition.
format C: /q /fs:Ntfs
The following command does quick format of the C: partition.
format C: /q /fs:Ntfs
Help
You have a large but limited set of commands at your disposal. To see a list of those commands, type Help and press Enter.
Listsvc
Lists the services and drivers available on the computer.
Logon
Logs you on to an installation of Windows the logon command will list all detected installations of Windows and request the local administrator password for the installation to log you on.
Map
Map list drive letter to physical device mappings that are currently active. Enter Map command to view all drive letters of the partitions and devices connected PC.
Md or Mkdir
Creates a directory or subdirectory.
Example
The following command creates a folder named “MyFolder” on the C:\ partition.
Md C:\MyFolder
The following command creates a folder named “MyFolder” on the C:\ partition.
Md C:\MyFolder
More
Displays the contents of a text file.
Example
The following command displays the content of the Example.txt file.
More Example.txt
The following command displays the content of the Example.txt file.
More Example.txt
Net
Connects a network share to a drive letter.
Example
The following command connects to shared MyShare directory located at the My-PC computer with username User and password as pass.
net use \\My_PC\MyShare /user:User pass
The following command connects to shared MyShare directory located at the My-PC computer with username User and password as pass.
net use \\My_PC\MyShare /user:User pass
RD or Rmdir
Deletes a directory.
Example
The following command deletes Example directory.
Rd Example
The following command deletes Example directory.
Rd Example

