Bookmark Bookmark Homepage Make This Your Homepage

 
Technical Facts- technical answers you have been looking for.....
Select what you want ! ! !  
  Home
  Contact
  Data Structure
  OOPs with C++
  DataBase Management
  Networking
  Memory
  => CPU Speed
  => Data Storage
  => Backup
Data Storage

How is Data Stored in My Hard Disk?

 

A key concept in data storage is that it is linear, logical and systematic in nature. When you 'save' data to the hard disk, the disk will follow a logical system.

 

A hard disk can be compared to a large, square piece of graphing paper composed of squares a thousand long and a thousand wide. Each individual square can accommodate one kilobyte of data and thus a 'strip' having a thousand squares can store one megabyte of data. In such a case, the disk head will 'fill' in the upper leftmost square first then continue down the line – one square at a time until all the appropriate squares are filled.

 

A second key concept to remember is that data storage follows a simple rule – data is stored (or 'written') on the first available space, wherever this may be.

 

Data Storage Example

Imagine that you are saving a 1-Mb Word document on the hard disk. Saving a 1 MB file means the disk will systematically 'fill in' a thousand squares.

After saving the Word document, let us assume that you saved to your hard disk a 3 MB photo. Following the key concepts of data storage, the disk writer head will go through the disk and then look for the first available space – which in our example, happens to be the square following the last kilobyte of the Word document. Thus, the 3 MB photo will be saved at the space next to the Word document.

Afterwards, you go back to your Word document and trim it down, ending up with a file 700 KB in size, which you then save to your hard disk. Given the smaller file size, the 1 MB space requirement was reduced to 700 KB, leaving 300 KB free or (using the analogy above) 300 blank squares immediately after the Word document. There's now available space between the Word Document and the 3 MB photo.

When you save yet another file, say a 2 MB Excel file, the hard disk will follow its rule of saving data on the first available space. Thus, the Excel file will be split into two portions: 300 KB would be written on the 300 KB free space and the rest will be placed in the next available space – after the image file.

The Problem

Data storage, while designed to be logical and systematic, leads to file fragmentation. Imagine adding, deleting files and editing files for days, weeks and months. After a few months, the hard disk will become so fragmented that it would take the disk a lot of time to find fragments of a single file.

It is easy to see from this that data retrieval would be easy if the file components are in a single, contiguous location on the hard disk. De-fragmentation is the process wherein the different file fragments in a data storage system are located, 'gathered' and consolidated into specific areas of the storage device, thus making it easier to retrieve data – allowing for speedier processing as well as reduced wear and tear on data retrieval mechanisms.

 

How do I defrag a hard drive?

Defragmenting a hard drive rearranges the files so that each file is stored in a contiguous collection of disk sectors. This makes reading and writing files much faster.

Over time, Microsoft Windows will slowly fragment your files, storing parts of each file in seemingly random physical locations on the hard drive. As this happens, your files will take longer and longer to access. The solution is to defrag your hard drive.

Luckily, starting the process of defragmenting the drive is not a hard one.

To start out, simply open up the "My Computer" window and then right click on the hard drive you would like to defrag (if you only have one hard drive then it is most likely the "C" drive). From that window, go down to the very bottom and select the "Properties" button. When the properties window is displayed, click the "Tools" tab near the top of the window. Here there will be a button labeled "Defragment Now..." which you should now select.

The Disk Defragmenter screen allows you two options to begin with, Analyze and Defragment. Analyze will let you know whether the computer thinks it is time to defrag the hard drive, but if you haven't done it in a while then it is definitely time to do so.

Once you start the defrag process, you should basically leave the computer alone. This process uses up a lot of system resources and will slow the computer quite a bit. Although the defrag process can be paused or stopped, it is usually good to just leave the computer be for however long it takes (it can take up to a few hours depending on how much information is on the drive).

Defragmenting the hard drive will keep your hard drive running efficiently. This will help to speed up the computer as a whole and this process should be done at least once a month to keep the computer working at maximum efficiency.
Vote here!  
   
Search Here  
   
Date and Time  
   
Advertisement  
   
Totally, there have been 1871 visitors (3493 hits) on this page!
This website was created for free with Own-Free-Website.com. Would you also like to have your own website?
Sign up for free