<p/> <A NAME="764"><H1>Lesson 5: Using the Recovery Console</H1></A> <p/>The Windows 2000 Recovery Console is a command-line interface that you can use to perform a variety of troubleshooting and recovery tasks, including<p/> <p/>Starting and stopping services.<p/>Reading and writing data on a local drive (including drives that are formatted with the NTFS file system).<p/>Formatting hard disks.<p/> <p/> <font class=Quote>After this lesson, you will be able to</font> <p/>Install and use the Recovery Console.<p/> <p/><font class=Quote>Estimated lesson time: 20 minutes</font><p/><p/><A NAME="765"><h2>Installing and Starting the Recovery Console</H2></A> <p/>To install the Recovery Console, insert the Microsoft Windows 2000 Professional CD into your CD-ROM drive, and close the Microsoft Windows 2000 CD dialog box, if it opens. Open the Run dialog box or a Command Prompt window in Windows 2000, change to the i386 folder on the Windows 2000 CD-ROM, and then run the winnt32 command with the /cmdcons switch. After you install the Recovery Console, you can access it from the Please Select Operating System To Start menu. You can also use the Windows 2000 Setup disks or the Windows 2000 Professional CD to start your computer and then select the Recovery Console option, when you are prompted to choose repair options, to access the Recovery Console.<p/>After you start the Recovery Console, you must specify which installation of Windows 2000 you want to log on to (if you have a dual boot or multiple boot configuration), and then you must log on as the Administrator user.<p/><A NAME="766"><h2>Using the Windows 2000 Recovery Console</H2></A> <p/>You can also run the Recovery Console from the Windows 2000 CD-ROM. The Recovery Console provides you with a limited set of administrative commands that you can use to repair your Windows 2000 installation. You can use the following steps to start the Recovery Console from a Windows 2000 Professional CD-ROM.<p/> <p/> Insert the Windows 2000 Professional CD-ROM into the CD-ROM drive and restart the computer. If your computer or the workstation you want to repair does not have a bootable CD-ROM drive, you will need to insert your Windows 2000 Setup Boot disk into your floppy disk drive, and then insert the additional Windows 2000 Setup disks when you are prompted to do so.<p/> When Setup displays the Setup Notification message, read it, and then press Enter to continue.<p/>Setup displays the Welcome To Setup screen. Notice that, in addition to the initial installation of Windows 2000, you can use Windows 2000 Setup to repair or recover a damaged Windows 2000 installation.<p/> Press R to repair a Windows 2000 installation.<p/>The Windows 2000 Repair Options screen appears. Notice that you can repair a Windows 2000 installation using the Recovery Console or the Emergency Repair Process.<p/> Press C to start the Recovery Console.<p/>If you have more than one installation of Windows 2000 on the computer, you will be prompted to select which installation you want to repair.<p/> Type <font class=Quote>1</font> and then press Enter.<p/>You are prompted to enter the Administrator's password.<p/> Type the Administrator password and then press Enter.<p/>A command prompt appears.<p/> Type <font class=Quote>Help</font> and press Enter for a list of the commands available.<p/> When you have completed the repair process, type <font class=Quote>exit</font> and press Enter.<p/>The computer will restart.<p/> <A NAME="767"><h2>Understanding the Recovery Console Commands</H2></A> <p/>There are a number of commands available in the Recovery Console. Table 22.8 describes some of these commands.<p/><font class=Quote>Table 22.8</font> Recovery Console commands<p/><table valign="top" cellpadding="5" width="95%"> <tr> <th>Command</th> <th>Description</th> </tr> <tr> <td valign="top">Chdir (cd)</td> <td valign="top">Displays the name of the current folder or changes the current folder</td> </tr> <tr> <td valign="top">Chkdsk</td> <td valign="top">Checks a disk and displays a status report</td> </tr> <tr> <td valign="top">Cls</td> <td valign="top">Clears the screen</td> </tr> <tr> <td valign="top">Copy</td> <td valign="top">Copies a single file to another location</td> </tr> <tr> <td valign="top">Delete (del)</td> <td valign="top">Deletes one or more files</td> </tr> <tr> <td valign="top">Dir</td> <td valign="top">Displays a list of files and subfolders in a folder</td> </tr> <tr> <td valign="top">Disable</td> <td valign="top">Disables a system service or a device driver</td> </tr> <tr> <td valign="top">Enable</td> <td valign="top">Starts or enables a system service or a device driver</td> </tr> <tr> <td valign="top">Exit</td> <td valign="top">Exits the Recovery Console and restarts your computer</td> </tr> <tr> <td valign="top">Fdisk</td> <td valign="top">Manages partitions on your hard disks</td> </tr> <tr> <td valign="top">Fixboot</td> <td valign="top">Writes a new partition boot sector onto the system partition</td> </tr> <tr> <td valign="top">Fixmbr</td> <td valign="top">Repairs the master boot record of the partition boot sector</td> </tr> <tr> <td valign="top">Format</td> <td valign="top">Formats a disk</td> </tr> <tr> <td valign="top">Help</td> <td valign="top">Lists the commands that you can use in the Recovery Console</td> </tr> <tr> <td valign="top">Logon</td> <td valign="top">Logs on to a Windows 2000 installation</td> </tr> <tr> <td valign="top">Map</td> <td valign="top">Displays the drive letter mappings</td> </tr> <tr> <td valign="top">Mkdir (md)</td> <td valign="top">Creates a folder</td> </tr> <tr> <td valign="top">More</td> <td valign="top">Displays a text file</td> </tr> <tr> <td valign="top">Rmdir (rd)</td> <td valign="top">Deletes a folder</td> </tr> <tr> <td valign="top">Rename (ren)</td> <td valign="top">Renames a single file</td> </tr> <tr> <td valign="top">Systemroot</td> <td valign="top">Sets the current folder to the systemroot folder of the system that you are currently logged on to</td> </tr> <tr> <td valign="top">Type</td> <td valign="top">Displays a text file</td> </tr> </table> <p/><p/><A NAME="768"><h2>Practice: Using the Windows 2000 Recovery Console</H2></A> <p/>In this practice you will use the Windows 2000 Recovery Console to troubleshoot a Windows 2000 installation that will not boot. You will also install and start the Recovery Console, and you will look at Help to determine the commands available in the Recovery Console. You will also use the Listsvc command to view the services and then use the Disable command to disable the Alerter service.<p/><A NAME="769"><h2>Exercise 1: Troubleshooting a Windows 2000 Installation</h2></A> <p/>In this exercise you troubleshoot a Windows 2000 installation and repair it by using the Recovery Console.<p/> <font class=Quote>To create a system boot failure</font><p/> <p/> Rename the file Ntldr to Oldntldr.<p/> Restart the computer.<p/>What error do you receive when attempting to restart the computer?<p/><a class='inlineblock cb lh2 dr tr p5' href='149'>Answer</a><p/> <p/> <font class=Quote>To use the Recovery Console to repair the installation</font><p/> <p/> Insert the Windows 2000 installation CD into the CD-ROM drive and restart the computer.<p/> <p/><font class=Quote>NOTE</font> If your computer is not equipped with a CD-ROM drive that is capable of booting from a CD-ROM, then also insert your Windows 2000 Setup Boot disk into your floppy disk drive for step 3. Insert the other three Windows 2000 Setup disks when you are prompted to do so. (To create the Setup disks, see <a class='inlineblock cb lh2 dr tr p5' href='150'>Appendix B</a>, &quot;Creating Setup Boot Disks.&quot;) <p/> <p/> When Setup displays the Setup Notification message, read it, and then press Enter to continue.<p/>Setup displays the Welcome To Setup screen.<p/> Press R to repair a Windows 2000 installation.<p/>The Windows 2000 Repair Options screen appears.<p/> Press C to start the Recovery Console.<p/> Type <font class=Quote>1</font> and then press Enter.<p/>You are prompted to enter the Administrator's password.<p/> Type <font class=Quote>password</font> and then press Enter.<p/>A C:\Winnt command prompt appears.<p/> Type <font class=Quote>cd ..</font> and press Enter to change to the root folder (C:\). Be sure to include a space between the &quot;cd&quot; and the &quot;..&quot; characters in the command.<p/> Type <font class=Quote>copy oldntldr ntldr</font> and press Enter.<p/> If there is a disk in your floppy drive, remove it. If your computer is capable of booting from the CD-ROM drive, remove the Windows 2000 Professional CD from your CD-ROM drive.<p/> Type <font class=Quote>exit</font> and press Enter.<p/>The computer reboots and should start normally.<p/> <A NAME="770"><h2>Exercise 2: Installing the Windows 2000 Recovery Console</h2></A> <p/>In this exercise, you will install the Recovery Console.<p/> <font class=Quote>To install the Recovery Console</font><p/> <p/> Log on as Administrator.<p/> Insert the Windows 2000 Professional CD into the CD-ROM drive.<p/> When the Microsoft Windows 2000 CD window appears, close it.<p/> In the Run dialog box, type <font class=Quote>&lt;cd_drive&gt;:\i386\winnt32 /cmdcons</font> (where &lt;cd_drive&gt; represents the letter assigned to your CD-ROM drive), and then click OK.<p/>The Windows 2000 Setup message box appears.<p/> Click Yes to install the Windows 2000 Recovery Console.<p/>Windows 2000 Setup installs the Windows 2000 Recovery Console to your hard disk.<p/> Click OK to close the Microsoft Windows 2000 Professional Setup dialog box.<p/> <A NAME="771"><h2>Exercise 3: Using the Windows 2000 Recovery Console</h2></A> <p/>In this exercise you will use the Help command to view the available commands. You will then use the available Listsvc and Disable commands.<p/> <p/> Restart your computer.<p/> Select Microsoft Windows 2000 Recovery Console from the boot loader menu.<p/> <p/>The Windows 2000 Recovery Console starts up and prompts you to select which Windows 2000 installation you would like to log on to. If you had more than one Windows 2000 installation on this computer, they would be listed here.<p/> <p/> Type <font class=Quote>1</font> and then press Enter.<p/> Type <font class=Quote>password</font> when prompted for the Administrator password, and then press Enter.<p/> Type <font class=Quote>help</font> and then press Enter to see the list of available commands.<p/>Notice the Listsvc command. You can use this command to view all available services.<p/>Scroll the list of commands, type <font class=Quote>listsvc</font> and press Enter, and then scroll through the list of available services.<p/> Press Esc to stop.<p/> Type <font class=Quote>disable /?</font> and then press Enter.<p/>The Disable command allows you to disable a Windows system service or driver.<p/> Type <font class=Quote>disable alerter</font> and then press Enter.<p/>Recovery Console displays several lines of text describing how the registry entry for the Alerter service has been modified. The Alerter service is now disabled.<p/> Type <font class=Quote>exit</font> and then press Enter to restart your computer.<p/> <A NAME="772"><h2>Exercise 4: Restarting the Alerter service</h2></A> <p/>In this exercise you will confirm that the Alerter service is disabled and then restart it.<p/> <p/> Log on as Administrator.<p/> Open the Computer Management window, expand Services And Applications, and then click Services.<p/>Notice that the Startup Type value for the Alerter service is Disabled.<p/> Double-click Alerter, change the Startup Type option to Automatic, and then click OK.<p/> Right-click Alerter, and then click Start.<p/> Close the Computer Management window.<p/> <A NAME="773"><h2>Lesson Summary</H2></A> <p/>The Windows 2000 Recovery Console is a command-line interface that you can use to perform a variety of troubleshooting and recovery tasks, including starting and stopping services, reading and writing data on a local drive, and formatting hard disks.<p/>You install the Recovery Console by starting a command prompt, changing to the i386 folder on the Windows 2000 CD-ROM, and running the winnt32 command with the /cmdcons switch. After you install the Recovery Console, you can access it from the Startup menu or by using the Windows 2000 Setup disks or the Windows 2000 CD to start your computer, and then selecting the Recovery Console option when you are prompted to choose repair options.<p/> - Microsoft Windows 1002000 Professional [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Microsoft Windows 1002000 Professional [Electronic resources] - نسخه متنی

Rick Wallace

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید






Lesson 5: Using the Recovery Console


The Windows 2000 Recovery Console is a command-line interface that you can use to perform a variety of troubleshooting and recovery tasks, including


Starting and stopping services.

Reading and writing data on a local drive (including drives that are formatted with the NTFS file system).

Formatting hard disks.



After this lesson, you will be able to

Install and use the Recovery Console.


Estimated lesson time: 20 minutes

Installing and Starting the Recovery Console


To install the Recovery Console, insert the Microsoft Windows 2000 Professional CD into your CD-ROM drive, and close the Microsoft Windows 2000 CD dialog box, if it opens. Open the Run dialog box or a Command Prompt window in Windows 2000, change to the i386 folder on the Windows 2000 CD-ROM, and then run the winnt32 command with the /cmdcons switch. After you install the Recovery Console, you can access it from the Please Select Operating System To Start menu. You can also use the Windows 2000 Setup disks or the Windows 2000 Professional CD to start your computer and then select the Recovery Console option, when you are prompted to choose repair options, to access the Recovery Console.

After you start the Recovery Console, you must specify which installation of Windows 2000 you want to log on to (if you have a dual boot or multiple boot configuration), and then you must log on as the Administrator user.

Using the Windows 2000 Recovery Console


You can also run the Recovery Console from the Windows 2000 CD-ROM. The Recovery Console provides you with a limited set of administrative commands that you can use to repair your Windows 2000 installation. You can use the following steps to start the Recovery Console from a Windows 2000 Professional CD-ROM.


Insert the Windows 2000 Professional CD-ROM into the CD-ROM drive and restart the computer. If your computer or the workstation you want to repair does not have a bootable CD-ROM drive, you will need to insert your Windows 2000 Setup Boot disk into your floppy disk drive, and then insert the additional Windows 2000 Setup disks when you are prompted to do so.

When Setup displays the Setup Notification message, read it, and then press Enter to continue.

Setup displays the Welcome To Setup screen. Notice that, in addition to the initial installation of Windows 2000, you can use Windows 2000 Setup to repair or recover a damaged Windows 2000 installation.

Press R to repair a Windows 2000 installation.

The Windows 2000 Repair Options screen appears. Notice that you can repair a Windows 2000 installation using the Recovery Console or the Emergency Repair Process.

Press C to start the Recovery Console.

If you have more than one installation of Windows 2000 on the computer, you will be prompted to select which installation you want to repair.

Type 1 and then press Enter.

You are prompted to enter the Administrator's password.

Type the Administrator password and then press Enter.

A command prompt appears.

Type Help and press Enter for a list of the commands available.

When you have completed the repair process, type exit and press Enter.

The computer will restart.


Understanding the Recovery Console Commands


There are a number of commands available in the Recovery Console. Table 22.8 describes some of these commands.

Table 22.8 Recovery Console commands






























































































CommandDescription
Chdir (cd)Displays the name of the current folder or changes the current folder
ChkdskChecks a disk and displays a status report
ClsClears the screen
CopyCopies a single file to another location
Delete (del)Deletes one or more files
DirDisplays a list of files and subfolders in a folder
DisableDisables a system service or a device driver
EnableStarts or enables a system service or a device driver
ExitExits the Recovery Console and restarts your computer
FdiskManages partitions on your hard disks
FixbootWrites a new partition boot sector onto the system partition
FixmbrRepairs the master boot record of the partition boot sector
FormatFormats a disk
HelpLists the commands that you can use in the Recovery Console
LogonLogs on to a Windows 2000 installation
MapDisplays the drive letter mappings
Mkdir (md)Creates a folder
MoreDisplays a text file
Rmdir (rd)Deletes a folder
Rename (ren)Renames a single file
SystemrootSets the current folder to the systemroot folder of the system that you are currently logged on to
TypeDisplays a text file

Practice: Using the Windows 2000 Recovery Console


In this practice you will use the Windows 2000 Recovery Console to troubleshoot a Windows 2000 installation that will not boot. You will also install and start the Recovery Console, and you will look at Help to determine the commands available in the Recovery Console. You will also use the Listsvc command to view the services and then use the Disable command to disable the Alerter service.

Exercise 1: Troubleshooting a Windows 2000 Installation


In this exercise you troubleshoot a Windows 2000 installation and repair it by using the Recovery Console.

To create a system boot failure


Rename the file Ntldr to Oldntldr.

Restart the computer.

What error do you receive when attempting to restart the computer?

Answer


To use the Recovery Console to repair the installation


Insert the Windows 2000 installation CD into the CD-ROM drive and restart the computer.


NOTE
If your computer is not equipped with a CD-ROM drive that is capable of booting from a CD-ROM, then also insert your Windows 2000 Setup Boot disk into your floppy disk drive for step 3. Insert the other three Windows 2000 Setup disks when you are prompted to do so. (To create the Setup disks, see Appendix B, "Creating Setup Boot Disks.")


When Setup displays the Setup Notification message, read it, and then press Enter to continue.

Setup displays the Welcome To Setup screen.

Press R to repair a Windows 2000 installation.

The Windows 2000 Repair Options screen appears.

Press C to start the Recovery Console.

Type 1 and then press Enter.

You are prompted to enter the Administrator's password.

Type password and then press Enter.

A C:\Winnt command prompt appears.

Type cd .. and press Enter to change to the root folder (C:\). Be sure to include a space between the "cd" and the ".." characters in the command.

Type copy oldntldr ntldr and press Enter.

If there is a disk in your floppy drive, remove it. If your computer is capable of booting from the CD-ROM drive, remove the Windows 2000 Professional CD from your CD-ROM drive.

Type exit and press Enter.

The computer reboots and should start normally.


Exercise 2: Installing the Windows 2000 Recovery Console


In this exercise, you will install the Recovery Console.

To install the Recovery Console


Log on as Administrator.

Insert the Windows 2000 Professional CD into the CD-ROM drive.

When the Microsoft Windows 2000 CD window appears, close it.

In the Run dialog box, type <cd_drive>:\i386\winnt32 /cmdcons (where <cd_drive> represents the letter assigned to your CD-ROM drive), and then click OK.

The Windows 2000 Setup message box appears.

Click Yes to install the Windows 2000 Recovery Console.

Windows 2000 Setup installs the Windows 2000 Recovery Console to your hard disk.

Click OK to close the Microsoft Windows 2000 Professional Setup dialog box.


Exercise 3: Using the Windows 2000 Recovery Console


In this exercise you will use the Help command to view the available commands. You will then use the available Listsvc and Disable commands.


Restart your computer.

Select Microsoft Windows 2000 Recovery Console from the boot loader menu.


The Windows 2000 Recovery Console starts up and prompts you to select which Windows 2000 installation you would like to log on to. If you had more than one Windows 2000 installation on this computer, they would be listed here.


Type 1 and then press Enter.

Type password when prompted for the Administrator password, and then press Enter.

Type help and then press Enter to see the list of available commands.

Notice the Listsvc command. You can use this command to view all available services.

Scroll the list of commands, type listsvc and press Enter, and then scroll through the list of available services.

Press Esc to stop.

Type disable /? and then press Enter.

The Disable command allows you to disable a Windows system service or driver.

Type disable alerter and then press Enter.

Recovery Console displays several lines of text describing how the registry entry for the Alerter service has been modified. The Alerter service is now disabled.

Type exit and then press Enter to restart your computer.


Exercise 4: Restarting the Alerter service


In this exercise you will confirm that the Alerter service is disabled and then restart it.


Log on as Administrator.

Open the Computer Management window, expand Services And Applications, and then click Services.

Notice that the Startup Type value for the Alerter service is Disabled.

Double-click Alerter, change the Startup Type option to Automatic, and then click OK.

Right-click Alerter, and then click Start.

Close the Computer Management window.


Lesson Summary


The Windows 2000 Recovery Console is a command-line interface that you can use to perform a variety of troubleshooting and recovery tasks, including starting and stopping services, reading and writing data on a local drive, and formatting hard disks.

You install the Recovery Console by starting a command prompt, changing to the i386 folder on the Windows 2000 CD-ROM, and running the winnt32 command with the /cmdcons switch. After you install the Recovery Console, you
can access it from the Startup menu or by using the Windows 2000 Setup disks
or the Windows 2000 CD to start your computer, and then selecting the Recovery Console option when you are prompted to choose repair options.

/ 156