IT tutorials
 
Technology
 

Windows 7 : Managing Hard Disks - Windows 7 Disk Maintenance Tools (part 2) - Detecting and Repairing Disk Errors, Configuring Defrag

9/13/2013 7:53:02 PM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

2.2 Detecting and Repairing Disk Errors

NTFS was introduced and billed as a “robust and self-healing” file system, as opposed to FAT, which is not. All in all, we have to agree with Microsoft on this one. We have yet to see an NTFS partition go “sour” in any way, shape, or form. We’ve had NTFS partitions that would not boot and key system files that would not run, but for the most part, these errors were self-inflicted and usually brought on by playing with fire.

The disk repair program in Windows 7’s GUI is called Error Checking. These are the command-line versions (stored in the %SystemRoot%\System32 folder):

  • chkntfs.exe—Works with NTFS volumes and drives

  • chkdsk.exe—Works with FAT/FAT32 partitions and drives

For a description of how each works, just add the normal /? switch or see Windows online help. The available commands enable you to turn automatic checking on and off, and repair a “dirty” (improperly shut down) drive at bootup.

Error Checking reviews the file system for errors and the drive for bad sectors (bad spots). To run the program, do the following:

1.
In Computer or Windows Explorer, right-click the drive you want to check.

2.
On the context menu, choose Properties.

3.
Click the Tools tab.

4.
In the Error-Checking section, click Check Now. A dialog box appears, as shown in Figure 6.

Figure 6. Checking a disk for errors in the file system.

The meaning of the options is as follows:

  • Automatically Fix File System Errors— If file directory errors (for example, lost clusters, files without end-of-file markers, and so on) are found, this option specifies whether the program should fix them.

  • Scan for and Attempt Recovery of Bad Sectors— This option specifies whether the program should attempt to locate bad sectors, mark them as bad, and recover data from them by writing it in a known, good area of the disk. If you select this option, you do not need to select Automatically Fix File System Errors; Windows fixes any errors on the disk.

Tip

If your volume is formatted as NTFS, Windows automatically logs all file transactions, replaces bad clusters, and stores copies of key information for all files on the NTFS volume.


You can run the error check with neither of the option boxes turned on, and you are not required to close all open files and programs. However, if you check either of the boxes, you are told that Windows can’t check the disk while it’s in use. You are given the option of deferring the check until the time you restart your system.

2.3 . Disk Defragmenter

When an OS stores data on a hard disk, it places that information in the first available “hole” it can find that isn’t already occupied by another file. However, if the disk already contains several other files, that location might not be large enough for the complete file. When this happens, the OS places as much of the file as it can in the space available and then searches for another open hole for the balance of the file. This process continues until the entire file has been written to disk. Any files that are not written to a contiguous disk location are considered “fragmented.”

The problem with fragmentation is that it slows down the rate at which your hard disk can retrieve information and supply it to the requesting program. Hard disks remain largely mechanical devices and are governed by the laws of physics. To access files stored on a disk, the drive must physically move a small arm to the correct location on a spinning platter. These movements are measured in milliseconds, but milliseconds add up, especially when a file is spread over a hundred unique locations.

Fragmentation is not always a bad thing. If an OS had to find a contiguous section of disk space for every file it stored, your system would slow down as your drive filled up. Eventually, your system would reach a point at which the disk still had ample free space, but none of this space would be in contiguous blocks big enough to hold a file.

Disk Defragmenter addresses this fragmentation problem by reorganizing all the files on your hard disk so that they are stored as complete units on a single area of the disk. To do so, it identifies any remaining free areas, moves small files there to open up more space, and uses this newly opened space to consolidate larger files. This shuffling process repeats until all the files are moved around in this manner and the entire disk is defragmented.

In Windows 7, unlike Windows XP, the Disk Defragmenter process is automated. You configure when it takes place, and it does the rest.

2.4 Configuring Defrag

The fastest way to open Disk Defragmenter is to click Start, type disk in the Search box, and select Disk Defragmenter from the results list. You can also open Disk Defragmenter from All Programs, Accessories, System Tools, Disk Defragmenter. By default, Disk Defragmenter (Figure 7) runs on a weekly schedule. Click Configure Schedule to specify a frequency (daily, weekly, monthly), a day of the week, a time, and which disks to defragment if your system has two or more disks. To defragment your hard disk immediately, click Defragment Disk.

Figure 7. The Disk Defragmenter window in Windows 7 can schedule a defragmentation session or run the utility immediately.
 
Others
 
- Windows 7 : Managing Hard Disks - Windows 7 Disk Maintenance Tools (part 1) - Disk Cleanup
- System Center Configuration Manager 2007 : Preparing for Software Updates (part 3) - Synchronization Process, Agent Configuration , Group Policy Settings
- System Center Configuration Manager 2007 : Preparing for Software Updates (part 2) - Creating Software Update Points
- System Center Configuration Manager 2007 : Preparing for Software Updates (part 1) - Software Updates Prerequisites
- System Center Configuration Manager 2007 : Planning Your Software Updates Strategy, Software Update Options in Microsoft Products
- Installing Exchange Server 2007 : Installing the First Exchange Server 2007 Server
- Installing Exchange Server 2007 : Installing the Prerequisites for Exchange Server 2007
- Installing Exchange Server 2007 : Conducting Preinstallation Checks on Exchange Server 2007
- Installing Exchange Server 2007 : Preparing to Install Exchange Server 2007
- Sharepoint 2013 : Creating content type retention policies on a library
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us