Knowledge Base

How to Perform Clean-Boot Troubleshooting for Windows 98

Article ID: 192926

Article Last Modified on 5/7/2007


APPLIES TO


This article was previously published under Q192926
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

SUMMARY

This article describes how to perform clean-boot troubleshooting for Windows 98.

For additional information about how to perform clean-boot troubleshooting for Windows Millennium Edition (Me), click the article number below to view the article in the Microsoft Knowledge Base:

267288 How to Perform a Clean Boot in Windows Millennium Edition

MORE INFORMATION

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

Clean-boot troubleshooting refers to methods of reducing behaviors that may occur because of your computer's environment. Many behaviors that occur when you run Windows or programs occur because there are conflicting drivers, terminate-and-stay-resident programs (TSRs), and other settings that are loaded when your computer starts. Your computer's environment includes settings from the following files: These files are loaded as part of the boot process when Windows starts, and the files help create the environment that is used by the operating system and programs.

For information about the files, view the "Notes" section in this article.

How to Use System Configuration Utility

Windows 98 includes a System Configuration Utility tool (Msconfig.exe) to make performing a clean boot much easier.

For additional information about how to troubleshoot using the msconfig utility with Windows 98, click the article number below to view the article in the Microsoft Knowledge Base:

281965 How to Troubleshoot Using the Msconfig Utility with Windows 98

Use one of the following methods to run System Configuration Utility: To use System Configuration Utility to perform a clean boot, use one of the methods that are mentioned earlier in this section to start System Configuration Utility, and then follow these steps:
  1. On the General tab, click Selective Startup, and then click to clear the following check boxes:
    • Process Config.sys File
    • Process Autoexec.bat File
    • Process Winstart.bat File (if available)
    • Process System.ini File
    • Process Win.ini File
    • Load Startup Group Items

  2. Click OK, and then restart your computer when you are prompted to do so.
Each check box (except the Load Startup Group Items check box) represents files that are renamed with a troubleshoot (.tsh) file extension when you click to clear the check box. The Load Startup Group Items check box represents icons in the Startup folder or entries in the following registry keys:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

-and-

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices

When you click to clear the Load Startup Group Items check box, the registry entries are written in the following keys:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run-

-and-

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices- -and-

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run-

The icons in the Startup folder are moved to the Disabled Startup Items folder in the Windows\Start Menu\Programs folder.

When you click to clear check box for a file, a "remark" statement is placed at the beginning of each line in the file. For both the Config.sys and Autoexec.bat files, a "rem tshoot" statement followed by a space is placed at the beginning of the lines in the file for the check box that you click to clear. For both the System.ini and Win.ini files, a "; tshoot" statement followed by a space is placed at the beginning of the lines in the file for the check box that you click to clear. These remarks are removed when you click to select a check box that you previously clicked to clear. When you click to select a check box for an item on the Startup tab, the registry entry is restored to its original location.

You must restart your computer each time that you make a change to any of the startup files because they are read-only when your computer starts.

If System Configuration Utility is unavailable, manually clean-boot your computer. For additional information about how to manually clean-boot your computer, click the article number below to view the article in the Microsoft Knowledge Base:

243039 How to Perform a Clean Boot in Windows 95

How to Narrow the Focus of the Behavior

If your computer no longer exhibits the behavior, you can narrow the focus of the behavior. To do this, you must use System Configuration Utility to restore files or file entries until you determine the specific entry that is causing the behavior. This process is commonly referred to as "restoring by halves" because you restore half of the entries that you previously removed, restart your computer, and then you test to see if the behavior continues to occur:
  1. Click to clear all of the check boxes in the Selective Startup section on the General tab in System Configuration Utility, click OK, and then restart your computer when you are prompted to do so.
  2. If the behavior continues to occur, use the Advanced Troubleshooting Settings tab in System Configuration Utility. See the "Advanced Clean-Boot Troubleshooting" section in this article for more information.
  3. If the behavior continues to occur, restart your computer in Safe mode and test. If the behavior continues to occur when you restart your computer in Safe mode, contact Technical Support. To start your computer in Safe mode, restart your computer, press and hold down the CTRL key until you see the Startup menu, and then choose the Safe Mode menu option.For additional information about how to start your computer in Safe mode, click the article number below to view the article in the Microsoft Knowledge Base:

    180902 How to Start a Windows 98-Based Computer in Safe Mode

  4. If the behavior does not occur when you click to clear all of the check boxes, click to select both the Process System.ini File and Process Win.ini File check boxes, restart your computer, and then test to see if the behavior still occurs.
  5. If the behavior does occur when both the System.ini and Win.ini files are processed, the behavior is related to one of the files. If one of the files is causing the behavior, click to clear the check box for only one of the files. If the behavior occurs, an entry in the file that is selected is causing the behavior. If this is true, go to step 9.
  6. If the behavior does not occur after you click to select both the both the Process System.ini File and Process Win.ini File check boxes, click to select the Process Autoexec.bat File check box, restart your computer, and then test to see if the behavior still occurs. If the behavior occurs, an entry in the Autoexec.bat file is causing the behavior. If this is true, go to step 9.
  7. If the behavior does not occur after you click to select the Process Autoexec.bat File check box, click to select the Process Config.sys File check box, restart your computer, and then test to see if the behavior still occurs. If the behavior occurs, an entry in the Config.sys file is causing the behavior. If the behavior does not occur, an item in the Startup group or in the Winstart.bat file is causing the behavior.
  8. Click to select the Process Winstart.bat File check box, restart your computer, and then test to see if the behavior still occurs. If the behavior does not occur, an item in the Load Startup Items section is causing the behavior.
  9. Click to select the check box on the General tab for the file that you determine is causing the behavior, click the tab that represents that file, click to clear the bottom half of check boxes in the list, restart your computer, and then test to see if the behavior still occurs.

    For example, if an entry in the Config.sys file is causing the behavior, click to select the Process Config.sys File check box on the General tab, click the Config.sys tab, click to clear the bottom four of the eight check boxes is the list, click OK, and then restart your computer when you are prompted to do so.
  10. If the behavior continues to occur, one of the check boxes that you clicked to select is causing the behavior. If the behavior does not occur, one of the check boxes that you clicked to clear is causing the behavior.

    If one of the check boxes that you clicked to select is causing the behavior, click to clear half of the remaining check boxes that are selected, restart your computer, and then test to see if the behavior occurs. If one of the check boxes that you clicked to clear is causing the behavior, click to select half of the check boxes that you clicked to clear, restart your computer, and then test to see if the behavior occurs.
When you follow these steps, you can isolate the specific file entry that is causing the behavior after you restart your computer several times. After you determine the specific file entry that is causing the behavior, it is recommended that you edit the appropriate file or registry key to remove this entry, and then return System Configuration Utility to the Normal Startup option.

To return System Configuration Utility to the Normal Startup option:
  1. Click Start, click Run, type msconfig in the Open box, and then click OK.
  2. On the General tab, click Normal Startup, and then click OK.
  3. When you are prompted to restart your computer, click No.
If the entry that is causing the behavior is in the Config.sys, Autoexec.bat, Win.ini, or System.ini file, use the System Configuration Editor tool (Sysedit.exe) to edit the file and disable the appropriate line or lines:
  1. Click Start, click Run, type sysedit in the Open box, and then click OK.
  2. On the Window menu, click the appropriate file name (for example, click C:\Windows\System.ini).
  3. Type rem followed by a space at the beginning of the appropriate line that is causing the behavior.
  4. On the File menu, click Save.
  5. On the File menu, click Exit.
  6. Restart your computer.
If the entry that is causing the behavior is a program that is on the Startup tab, remove the program from the Startup folder or delete the program from the registry. To remove the program from the Startup folder:
  1. Click Start, point to Settings, and then click Taskbar And Start Menu.
  2. Click the Start Menu Programs tab, and then click Remove.
  3. Double-click Startup, click the appropriate entry, and then click Remove.
  4. Click Close, click OK, and then restart your computer.
If the entry that is causing the behavior is not in the Startup folder, the program may be loading from the registry. To remove the entry from the registry:
  1. Click Start, click Run, type regedit in the Open box, and then press ENTER.
  2. In Registry Editor, locate and click the following registry keys, one at a time, and then click Export Registry Key on the Registry menu for backup purposes:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

    -and-

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices

  3. Delete the file_name.exe value in the right pane for the appropriate registry key, where file_name is the name of the file that is causing the behavior:

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

    -and-

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices

    -and-

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnceEx

    -and-

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

  4. Quit Registry Editor, and then restart your computer.

Troubleshooting Example

This example illustrates how to determine a specific startup setting that causes an undesired behavior in one of your programs:
  1. Clean boot the computer:

    1. On the General tab in the System Configuration Utility, click Selective Startup.
    2. Click to clear all of the check boxes in the Selective Startup section, and then click OK.
    3. When you are prompted to restart your computer, do so.
    When you test your program, the behavior no longer occurs.

    NOTE: If the behavior still occurs, you may not be able to resolve the behavior by clean booting your computer. View the "Advanced Clean-Boot Troubleshooting" section in this article, use the Microsoft Knowledge Base to query for information about the behavior that you are experiencing, or contact Microsoft Technical Support.
  2. To determine if a line in either the Win.ini file or the System.ini file causes the behavior:

    1. On the General tab in the System Configuration utility, click Selective Startup.
    2. Click to select the both the Process Win.ini file check box and the Process System.ini file check box, and then click OK.
    3. When you are prompted to restart your computer, do so.
    When you test your program, the behavior does not occur. Nothing in the Win.ini file or the System.ini file causes the behavior.
  3. To determine if a line in the Autoexec.bat file causes the behavior:

    1. On the General tab in the System Configuration utility, click to select the Process Autoexec.bat file check box, and then click OK.
    2. When you are prompted to restart your computer, do so.
    When you test your program, the behavior does not occur. Nothing in the Autoexec.bat file causes the behavior. Since the Winstart.bat file does not exist in this example, something in the Config.sys file must cause the behavior.
  4. In this example, the Config.sys file contains eight lines. To determine which half of the file contains the line that causes the behavior:

    1. On the General tab in the System Configuration utility, click to select the Process Config.sys file check box, and then click the Config.sys tab.
    2. On the Config.sys tab, click to clear the check boxes for the first half of the lines in the list. In this example, you click to clear the first four check boxes.
    3. Click OK. When you are prompted to restart your computer, do so.
    When you test your program, the behavior does not occur. The line that causes the behavior must be one of the first four lines in the Config.sys file.
  5. Re-select half of the check boxes that you cleared in step 5:

    1. In the System Configuration utility, click the Config.sys tab.
    2. On the Config.sys tab, click to select the first half of the check boxes that you cleared in step 5. In this example, you click to select the first two check boxes in the list.
    3. Click OK. When you are prompted to restart your computer, do so.
    When you test your program, the behavior does not occur. The line that causes the behavior must be the third or fourth line in the Config.sys file.
  6. To determine which line causes the behavior:

    1. In the System Configuration utility, click the Config.sys tab.
    2. On the Config.sys tab, click to select the first half of the remaining cleared check boxes that you cleared in step 5. In this example, you click to select the third check box in the list.
    3. Click OK. When you are prompted to restart your computer, do so.
    When you test your program, the behavior does not occur. The line that causes the behavior is the fourth line in the Config.sys file.

    NOTE: This line may be required to run another program or to access hardware on your computer. If this is true, check the documentation for the software or hardware manufacturer that added the line to the file, or contact the manufacturer for an updated driver.
To restore your normal startup settings, click Normal startup - load all device drivers and software on the General tab in the System Configuration Utility, and then click OK. When you are prompted to restart your computer, click Yes.

Tips for Clean-Boot Troubleshooting

If you click to clear the following check box entries, you can often reduce the number of steps that are necessary to remove all of the startup files that are listed in the Selective Startup section on the General tab in System Configuration Utility and then restore the check boxes by halves: View the "How to Use System Configuration Utility" section in this article for information about how file entries are disabled for different boot files.

Advanced Clean-Boot Troubleshooting

If you use the Selective Startup option on the General tab in System Configuration Utility to clear all of the boot entry check boxes and the behavior still occurs, use the following troubleshooting steps:

Notes

Msdos.sys

The Msdos.sys file contains basic information about the location of the Windows folder, startup files, and other options. You can edit some of these options on the Advanced Troubleshooting Settings tab in System Configuration Utility.

For additional information about the Msdos.sys file, click the article number below to view the article in the Microsoft Knowledge Base:

118579 Contents of the Windows Msdos.sys File

Config.sys

The Config.sys file is provided for backwards compatibility with MS-DOS- based and earlier Windows-based programs. The Config.sys file may not be present on your computer. The Config.sys file loads low-level MS-DOS-based drivers, and many of the files have a .sys file extension.

Autoexec.bat

The Autoexec.bat file is also provided for backwards compatibility with MS-DOS-based and older Windows-based programs. The Autoexec.bat file may not be present on your computer. The Autoexec.bat file loads MS-DOS-based programs, and many of the files have either a .com or .exe file extension.

Winboot.ini

The Winboot.ini file is a temporary version of the Msdos.sys file that may be present on your computer if a program is making changes to your computer that may affect the boot process. Typically, the Winboot.ini file is deleted after the program is complete, resides in the root folder, and overrides settings in the Msdos.sys file.

Winstart.bat

The Winstart.bat file may not be available as a check box on the General tab in System Configuration Utility. The Winstart.bat file is created for programs that need to run an MS-DOS-based program to enable functionality of a Windows-based program. Most users do not have this program.

System.ini

The System.ini file contains information about your computer's settings for specific hardware. This file must be present in the Windows folder for Windows to start. The System.ini file is used to load various drivers including sound and video adapter drivers. The System.ini file may also contain additional 16-bit drivers for hardware does not use 32-bit drivers.

When you click to clear the Process System.ini File check box in System Configuration Utility and restart your computer, the following changes occur:

Win.ini

The Win.ini file contains information that is specific to the overall appearance of Windows. The Win.ini file must be present in the Windows folder or it is re-created by Windows, is read at startup for backwards-compatibility with Windows 3.x, and many of the settings are duplicated in the registry. When you click to clear the Process Win.ini File check box in System Configuration Utility, a generic version of the Win.ini file is created.

Wininit.ini

The Wininit.ini file is used to complete the installation of various components for Windows and third-party products. Each time that a program needs to copy or remove a file that is in use, instructions are written to the Wininit.ini file. Windows checks for the presence of the Wininit.ini file during the boot process and, if found, performs the instructions. Rename the Wininit.ini file with a .old file extension to troubleshoot behaviors, if the Wininit.ini file is present.

System.dat

The System.dat file is one of two registry files that are required to start Windows. The System.dat file is similar to the System.ini file, and contains computer and software settings. The Load Startup Group option contains the entries that are loaded from the System.dat portion of the registry.

User.dat

The User.dat file is the second of two registry files that are required to start Windows. The User.dat file is similar to the Win.ini file because it contains information about how to run specific programs and information about the overall appearance of Windows.

How to Create a Backup Copy of Startup Files

You can use System Configuration Utility to create a backup copy of the startup files that are described in this article. To do this, click Create Backup on the General tab in System Configuration Utility. You can choose to save the files in a folder on one of your hard disks, or you can save the files to a floppy disk, which is recommended.

Static .vxd files are used to load virtual hardware and software drivers. Many third-party manufacturers add their own static .vxd files.

Additional query words: w98seusefaq w98usefaq w98sesstop w98sstop

Keywords: kbenv kbhowto kbtshoot KB192926