-Does your computer fail to bootup?
-Does your computer freeze and reboot?
-Cannot access your data due to the lost password?
-Does your computer contain critical data?
-Don't have a recent backup?
-Reformatted your harddrive?
-Accidentally deleted files?

Our blog will provide the relevant information on free tools, techniques, and approaches to recover your computer and get your valuable data back.

Showing posts with label fix windows. Show all posts
Showing posts with label fix windows. Show all posts

Using Chkdsk for Hard Drive Repair and Integrity Verification

What is Chkdsk



CHKDSK (CheckDisk) is a Microsoft disk utility that verifies the integrity of your file system and the hard disk drive blocks. The default mode scans the file system for logical errors but it will not fix any of the problems it finds.

Every Microsoft operating system since DOS has contained a tool for repairing corrupted file or folder structures and checking for bad disk sectors. In DOS it was called Chkdsk, in Windows 9X/Me it was called Scandisk, and in Windows XP (and Vista) we are back to the name Chkdsk.

What Chkdsk does and why it should be used



Chkdsk inspects the physical structure of a disk to make sure that it is healthy. It can repair problems related to bad sectors, lost clusters, cross-linked files, and directory errors. These types of problems can arise in a variety of ways. System crashes or freezes, power glitches, incorrectly turning off a computer can all cause corruption in the file or folder structure. Physically bumping or jarring a computer can cause the head that reads disks to hit the surface and damage sectors. Once some sort of error occurs it can propagate to create more errors so a regularly scheduled disk checkup is part of good system maintenance.

Chkdsk can also serve as an early warning that a hard drive is deteriorating. Disks gradually wear out and sectors may become bad. If  Chkdsk starts finding bad sectors, that is a sign that a drive may need replacing. Unfortunately, many hard drive failures are sudden and cannot be foreseen, but nonetheless Chkdsk is an important line of defense.

How to run Chkdsk - Graphical interface



Chkdsk can be run as a command-line application or it can be run with a graphical user interface. Typical home PC users will probably use the latter so I will discuss it first. Chkdsk is not normally listed in the All Programs menu but is reached by the following steps:
  1. Open "My Computer" and right-click on the icon for the drive that is to be checked.
  2. In the context menu that opens, choose "Properties".
  3. Click the "Tools" tab at the top of the Properties window.
  4. In the "Error-checking" section, click the button "Check now".
  5. A box showing the options for running Chkdsk is then available as shown in the figure below.
Generally, the option "Automatically fix file system errors" should be chosen for routine checks. If serious disk problems are suspected, the option "Scan and attempt recovery of bad sectors" should also be checked. However, this may involve a period of many hours.

How to run Chkdsk - Command line



Chkdsk.exe is actually a command-line application and can be run from the command shell. There are a number of switches that can be used to modify its functions. The syntax of a command is
Chkdsk [volume[[path]filename]]] [/F] [/V] [/R] [/X] [/I] [/C] [/L[:size]]

Table I give a description of the various terms and switches in the command.

Table I. Description of Windows XP Chkdsk command items
Switch
Description
[volume]
Specifies the drive letter (followed by a colon), mount point, or volume name.
[filename]
FAT/FAT32 only: Specifies the files to check for fragmentation.
/F
Fixes errors on the disk. Does not scan for bad sectors.
/V
On FAT/FAT32: Displays the full path and name of every file on the disk. On NTFS: Displays cleanup messages if any.
/R
Locates bad sectors and recovers readable information (implies /F).
/X
NTFS only. Forces the volume to dismount first if necessary.
/I
NTFS only: Performs a less vigorous check of index entries.
/C
NTFS only: Skips checking of cycles within the folder structure.
/L[:size]
NTFS only: Changes the log file size to the specified number of kilobytes.
(Windows Vista also has a switch /B for re-evaluating bad clusters on a volume.)
Although Chkdsk can be run with no switches, the most useful application is to use either the /F or /R switches. This corresponds to the two options in the graphical interface discussed above. Note that running with the /R option can be quite lengthy. If there are unusually large numbers of files, the /F option can also take many hours. The /R switch includes the functions of the /F switch.

Running after a reboot



Chkdsk cannot carry out repair functions if any of the files on a disk are locked or in use. So it generally requires a reboot to run a check on any active volume with files in use. Chkdsk then runs before the full system is loaded and files become locked.

If you turn off your computer incorrectly, you may find that Chkdsk will run when you reboot. This is a safety feature to make sure that no file or folder corruption occurred.

Understanding how Chkdsk works



Chkdsk tests both FAT and NTFS systems but NTFS is now the most common file system. Here is a brief description of what Chkdsk does when it runs on an NTFS system. Chkdsk's activity is divided into three major passes plus an optional fourth and fifth pass. During each pass a message and a progress report is displayed.

Phase 1: Checking files
During its first pass, Chkdsk examines each file record segment in the volume's master file table (MFT) and examines it for internal consistency. At the end of this phase, Chkdsk has identified the space that is in use and the space that is available, both within the MFT and on the volume as a whole.

Phase 2: Checking indexes (directories)
During this pass, Chkdsk examines each directory that is on the volume, checking for internal consistency and verifying that every file and directory that is represented by a file record segment in the MFT is referenced by at least one directory. Chkdsk confirms that every file or subdirectory that is referenced in a directory actually exists as a valid file record segment in the MFT and also checks for circular directory references. Finally, Chkdsk confirms that the time stamps and file size information for the files are up-to-date in the directory listings for those files.

Phase 3: Checking security descriptors
During this phase, Chkdsk examines each security descriptor that is associated with files or directories on the volume. Security descriptors contain information about ownership of a file or directory, about NTFS permissions for the file or directory, and about auditing for the file or directory.

Phases 4 and 5: Checking sectors (optional)
If the /R switch is in effect, Chkdsk runs two more passes to look for bad sectors. During stage 4, Chkdsk verifies all clusters in use; during stage 5, Chkdsk verifies unused clusters. Note that this process can be quite lengthy. taking many hours.

Caution
Interrupting the Chkdsk process when it is used with the /F or the /R switch is not recommended. The integrity of the disk can be compromised by stopping the process. Do not start a scan if a thunderstorm is expected and you are subject to power failures. I also strongly advise an uninterruptible power supply to guard against short-term power outages or fluctuations.

Running Chkdsk from the Recovery Console



Chkdsk is available from the Windows Recovery Console and can be a very valuable tool in dealing with a system that does not boot properly. Note that many systems have been rescued by the Recovery Console command chkdsk C: /R Switches for the Chkdsk command in the Recovery Console are not the same as those in Table I. There are only two:
  • /P : Does an exhaustive check of the drive and corrects any errors. Does not check for bad sectors
  • /R : Locates bad sectors and recovers readable information. Includes functions of /P


Autochk.exe



The chkdsk command requires the file Autochk.exe. If it cannot find it in the startup directory (\%systemroot%\System32, by default), it will attempt to locate it on the Windows Installation CD.  
For Win 2000, XP, or Vista, autochk.exe is the chkdsk program that gets run at boot time specifically for the boot hard drive. If you try to run chkdsk on the boot drive, your job will be scheduled to run when Windows boots because chkdsk cannot work when any files on the disk are open.

The 'dirty bit' on the file system is used to trigger autochk.exe at startup. While Windows is running, you can check the status of the dirty bit by entering this fsutil command into the cmd window (start >> Run >> cmd.exe):




fsutil dirty query C:
If autochk runs at boot time but you did not schedule it to do so, then some file system error event must have set the dirty bit. This should be a one time event because Autochk will clear the dirty bit when it completes successfully.

If autochk continues to run every time you boot your computer then you likely have a hardware problem. You can verify the problem by running a hard drive manufacturer's diagnostics on the drive. If there is any indication of a hard drive problem, consider yourself lucky that you can still read your data, and run out to buy that bigger hard drive you've been looking at.
Repair using boot up disks
  1. Boot your computer from your Windows XP CD or from your 6-disk XP/2000 Boot Disk Set. To do this, insert your CD or Floppy #1 and turn your computer on. When the menu comes up, select boot from CD or boot from floppy (do not select boot from hard drive).
  2. Your computer will begin to boot. Eventually, you will see a screen asking you what you would like to do. Press the letter R on your keyboard to proceed to the Windows Recovery Console.
  3. As you progress to the Recovery Console you may be asked which partition you would like to boot into. Type the number associated with the partition containing your NTFS partition (usually 1 or 2) and then press enter to continue. You may be asked for your administrator password. If you have one, type it in and press enter. If you do not have a password to boot your computer into Windows, simply press enter.
  4. Now you should be at a command prompt. from here, type the following command without the quotes and press enter: "chkdsk /p"
  5. This is a short test that will tell you whether or not a longer test is needed. If after the test completes, the message "One or more errors detected on the volume" appears, then proceed to step 6. If no errors are reported, then your drive can not be repaired using chkdsk.
  6. Now you should be back at the command prompt. Type the following command without the quotes and press enter: "chkdsk /r"
  7. This test will take a while depending on the size of your drive. It will look for the errors on your drive and repair them. When it completes, you will be back at a command prompt.
  8. Now type "chkdsk /p" again and press enter. If no errors are reported, your drive has been successfully repaired and is safe to use again temporarily. If errors are still reported, then your drive is on its last leg. You may be able to boot it now though.
  9. Remove the floppy disk or CD from your system and restart the PC. Take a moment now to back up your important data.

Additional Syntax for Experienced Users
  • /F Automatically Fix file system errors on the disk.
  • /X Fix file system errors on the disk, (Win2003 and above)
    dismounts the volume first, closing all open file handles.
  • /R Scan for and attempt Recovery of bad sectors.
  • /V Display the full path and name of every file on the disk.
  • /L:size NTFS only: change the log file size to the specified number of kilobytes. If size is not specified, displays the current log size and the drive type
    (FAT or NTFS).
  • /C Skip directory corruption checks.
  • /I Skip corruption checks that compare directory entries to the
    file record segment (FRS) in the volume's master file table (MFT)


Sources and Additional Information

Windows disk and registry cleaning and optimization tool

FCleaner is a freeware all-in-one Windows disk and registry cleaning and optimization tool. It removes unused files and invalid registry entries that are eating up your disk space and slowing your system down, tweaks your system and allows your Windows to run faster. FCleaner can also protect your privacy such as Internet History, the Cookies that websites leave behind. You can erase all the traces of your online activities in just one click with the help of FCleaner. NO Experience or Computer Skills Necessary! FCleaner is free, but it does not contain any Spyware or Adware.

FCleaner Features List


Cleaner


For Windows System
Recycle Bin, Clipboard, Windows Memory Dumps, Chkdsk File Fragments, Windows Temporary Files, Windows Log Files, Recent Documents, Run Histories, Windows XP Search Assistant Autocomplete, Windows XP Old Prefetch Data, Other Explorer MRUs, Menu Order Cache, Tray Notifications Cache, Window Size/Location Cache, User Assist History, IIS Log Files


For Web Browsers


Internet Explorer
Internet Cache, Internet Cookies, Internet History, Auto Saved Form Information, Download Folder, Typed URLs, Index.dat
Firefox/Mozilla
Internet Cache, Internet Cookies, Internet History, Saved Form Information, Saved PassWord

Opera
Internet Cache, Internet Cookies, Internet History, Typed URLs
Safari
Internet Cache, Internet Cookies, Internet History, Auto Saved Form Information

Google Chrome
Internet Cache, Internet Cookies, Internet History, Saved PassWord


For Applications
MS Snapshot Viewer, Remote Desktop, MS Management Console, MS Wordpad, MS Paint, MS Photo Editor, RegEdit, Windows Media Player, Real Player, Quicktime Player, Quicktime Player Cache, AVI Preview, SWiSH, Paint Shop Pro, Macromedia Flash, Adobe Flash Player, Ulead Smart Saver Pro, Axialis IconWorkshop, Media Player Classic, BSPlayer, Windows Movie Maker, VirtualDub, DVD Shrink, Tivo Desktop, Yahoo Toolbar, Windows Live Toolbar, Google Toolbar, Google Deskbar, Kazaa (Search History), Netscape Navigator 4.x, eMule (Search History), eMule (File Hashes), Sound Forge, Windows Live Messenger, Sun Java, FreshDownload, LeechGet, GetRight, Download Accelerator Plus, Morpheus, ZoneAlarm (Logs), Azureus, CuteFTP Pro, CuteFTP Home, Adobe Acrobat Reader, Adobe Reader 8.0, Adobe Acrobat 8.0, Adobe ImageReady 7.0, Adobe Photoshop, Adobe Photoshop CS, Adobe Photoshop CS2, XML Spy, MS Works 4.0, Office 97, Office XP, Office 2003, Office 2007, Installshield Developer 7.0, Macromedia Homesite 5.0, Macromedia Fireworks 6.0, Macromedia Dreamweaver MX, Nero Burning ROM, Microsoft Visual Studio 6.0, IsoBuster, TextPad, Google Earth, Foxit Reader, Paint.NET, OpenOffice 1.14, OpenOffice 2.0, OpenOffice 2.1, MS Office Picture Manager, ImgBurn, UltraEdit, Norton AntiVirus, Symantec AntiVirus, WinAce 2.0, SpyBot Search and Destroy, Ad-Aware SE Personal, Ad-Aware SE Professional, Ad-Aware SE Plus, Webroot SpySweeper, Driver Cleaner Pro, WinISO, WinZip, WinRAR, 7-Zip, PowerArchiver, ZipMagic, PicoZip, AceHTML 5, Alcohol 120%, VNCViewer, CA Anti-Virus, Microsoft AntiSpyware, PerfectDisk 7.0, ClamWin, Ewido Anti-Malware (Log), AVG Anti-Spyware, Grisoft AVG 7.0, AntiVir PE Classic, AntiVir PE Premium, TUGZip, Windows Defender, IZArc, Inno Setup


Uninstaller
Uninstall, repair and update installed computer software.


Startup Manager
Enable, disable and remove the entry of the applications that run when Windows startup.

FCleaner Portable can be used in a portable way. You can carry it with you on a portable hard drive, USB flash disk or any other portable storage gadgets, and run it on any Windows PC without installation. Download it and extract it to any folder you like. In that folder, find a file named FCleaner.exe and double click it to run FCleaner Portable. To ’uninstall’ FCleaner Portable, just delete this folder.

Website: http://www.fcleaner.com/portable.htm

Download: http://www.ziddu.com/download/4658106/fcleanerportable.zip.html

How to use Safe Mode Option in computers repairs

Practical Uses for Safe Mode

If you are unable to start your system by using Last Known Good Configuration, Windows XP Professional, Windows 2000 and Windows Server 2003 provides safe mode, a startup option that disables startup programs and nonessential services to create an environment useful for troubleshooting and diagnosing problems. In safe mode, Windows XP/2000/2003 starts a minimal set of drivers that the operating system needs to function. Support for devices such as audio devices, most USB devices, and IEEE 1394 devices is disabled to reduce the variables that you need to account for when diagnosing the cause of startup problems, Stop messages, or system instability.

Logging on to the computer in safe mode does not update Last Known Good Configuration information. Therefore, if you log on to your computer in safe mode and then decide you want to try Last Known Good Configuration, the option to do so is still available.

Essential drivers and system services enabled in safe mode include the following:

  • Drivers for serial or PS/2 mouse devices, standard keyboards, hard disks, CD-ROM drives, and standard VGA devices. Your system firmware must support universal serial bus (USB) mouse and USB keyboard devices in order for you to use these input devices in safe mode.
  • System services for the Event Log, Plug and Play, remote procedure calls (RPCs), and Logical Disk Manager.
When do you need to use Safe Mode

Enabling only components needed for basic functionality allows the operating system to start in the following situations:
  • The computer consistently stops responding: You can restart the operating system in safe mode and use the tools described in this appendix to diagnose and resolve problems.
  • The computer starts with a blank or distorted video display: You can start your computer in safe mode and then use Control Panel to select video adapter settings that are compatible with your monitor. New settings take effect when you restart the computer.
  • The computer does not start normally after you install new hardware or software: If recently installed hardware or software prevents you from starting Windows XP Professional in normal mode, you can use safe mode to uninstall software, or to remove or roll back device drivers.
  • The computer is infected with virus or Trojan, which is residing in the system configuration. Since Windows use the files considering them as essential part of the normal system configuration, you are not able to clean or get rid of them. The files and drivers that are considered “in use” by operating system are blocked from any accidental or intentional modifications. So, Many forms of malicious software will protect or reinstall themselves constantly if they are allowed to start in the first place. These programs will situate themselves in one of the many autorun locations in the Windows registry and file structure. When Windows is started normally, so is the offending software, running as a process in the background. When you start the PC in Safe Mode, these autorun locations are not used, and no software is started automatically. This can allow virus and spyware removal programs the opportunity they need to remove the malicious software completely. If you are having virus or spyware problems on your PC, you should always run antivirus and anti-spyware programs in Safe Mode to ensure that they have maximum effect.
Safe mode helps you diagnose problems. If a symptom does not reappear when you start in safe mode, you can eliminate the default settings and minimum device drivers as possible causes. If a newly added device or a changed driver is causing problems, you can use safe mode to remove the device or reverse the change.

There are circumstances where safe mode will not be able to help you, such as when Windows system files that are required to start the system are corrupted or damaged. In this case, the Recovery Console may help you.

Safe Mode also bypasses startup programs. Bypassing startup programs reduces system complexity and enables you to see whether a startup program is the source of the problem.

In safe mode, the operating system does not run network-based startup programs. To enable network logon scripts in safe mode, select Safe Mode with Networking on the Windows Advanced Options Menu.

How to start your computer in safe mode
  1. Remove all floppy disks and CDs from your computer, and then restart your computer.
  2. When prompted, press F8. If Windows XP Professional starts without displaying the Please select the operating system to start menu, restart your computer. Press F8 after the firmware POST process completes, but before Windows displays graphical output.
  3. From the Windows Advanced Options Menu, select a safe mode option listed in the following list:
  • Safe Mode (SAFEBOOT_OPTION=Minimal): This option uses a minimal set of device drivers and services to start Windows.
  • Safe Mode with Networking (SAFEBOOT_OPTION=Network): This option uses a minimal set of device drivers and services to start Windows together with the drivers that you must have to load networking.
  • Safe Mode with Command Prompt (SAFEBOOT_OPTION=Minimal(AlternateShell)): This option is the same as Safe mode, except that Cmd.exe starts instead of Windows Explorer.
  • Enable VGA Mode: This option starts Windows in 640 x 480 mode by using the current video driver (not Vga.sys). This mode is useful if the display is configured for a setting that the monitor cannot display.
    Note Safe mode and Safe mode with Networking load the Vga.sys driver instead.
  • Last Known Good Configuration: This option starts Windows by using the previous good configuration.
  • Directory Service Restore Mode: This mode is valid only for Windows-based domain controllers. This mode performs a directory service repair.
  • Debugging Mode: This option turns on debug mode in Windows. Debugging information can be sent across a serial cable to another computer that is running a debugger. This mode is configured to use COM2.
  • Enable Boot Logging: This option turns on logging when the computer is started with any of the Safe Boot options except Last Known Good Configuration. The Boot Logging text is recorded in the Ntbtlog.txt file in the %SystemRoot% folder.
  • Starts Windows Normally: This option starts Windows in its normal mode.
  • Reboot: This option restarts the computer.
  • Return to OS Choices Menu: On a computer that is configured to starting to more than one operating system, this option returns to the Boot menu.
To highlight the Safe Mode operations on Windows versus normal operation, user gets the initial disclaimer on the special conditions of running computer in Safe Mode, and the Safe Mode markers are present all the way on the corners of your screen.


Use Msconfig to get to Safe Mode

If you only want to enter Safe Mode occasionally and have trouble using the F8 key, you can use the System Configuration Utility (msconfig). Go to Start|Run and enter “msconfig” (without quotes). When the utility opens, click on the tab BOOT.INI as shown in the figure below.


Highlight the operating system listed in the section [operating systems] as shown in the figure below. Next put a check by the entry /SAFEBOOT as shown below. Also click the radio button MINIMAL Then reboot. The system should open in Safe Mode. When finished using Safe Mode, open Msconfig again and remove the check by /SAFEBOOT. Otherwise, you will continue to open in Safe Mode whenever you boot.

How to start your computer normally after using Safe Mode

  1. Shut down the computer and allow it to restart
  2. By default, it will start in Normal Mode
Sources and Additional Reading:
http://www.petri.co.il/safe_mode_in_windows_2000_xp_2003.htm
http://support.microsoft.com/kb/315222
http://www.computer-2tr.com/tips/05/20050113.html
http://vlaurie.com/computers2/Articles/safemode.htm

Data Recovery Techniques © 2008. Template by Dicas Blogger.

TOPO