Sunday, November 08, 2009  
Google
Web pcquest.com

CIOL Network sites

Search by Issue | Sitemap | Advanced Search

• For most updated version of DQ TOP 20 issue, visit dqindia.com • Ad : Play and Plug ERP by IBM
 Home > Archive > In-Depth

Safeguard your Data

We often don’t realize the value of data until disaster strikes. Understanding the causes of data loss can help prevent it. Plus, it’s equally important to know what to do after data is lost. Chances are that you can still retrieve it

Anil Chopra

Wednesday, July 09, 2003

One of the most common causes of data loss is human error. After all, “to err is human”, and most of us would have lost important data at one time or the other by accidentally pressing delete. What usually follows is a frenzied scrambling for a solution to recover the lost data. The point is, why not take proper precautions to prevent this scrambling in the first place? As they say, “Prevention is better than cure”. Sadly, we often don’t realize the value of our data until we’ve lost it.

We’re not implying that human error is the only way of losing data. There are many other reasons as well, which we’ll soon get into, and it’s important to know ways and means of preventing them from happening. Of course once you’ve lost data (God forbid!), it’s equally important to know what to do. Doing things blindly can make things even worse.

Safeguarding data can therefore be divided into two parts—one is preventing data loss from happening in the first place, and two—recovering data once it’s been lost. In both cases, there are some things you can do yourself, and others which only software can do. We’ve looked at both in this story.

Causes and prevention
Besides human error, other major causes of data loss are virus attack, physical failures like a hard drive crash or bad media, system faults like an application going unsteady or the OS developing a fault, and user negligence.

In a hard drive crash, there are two possibilities. Either it’s a physical crash, or a logical one. A physical crash is one in which the hard drive itself gets physically damaged.

Bad sectors are the most commonly known example of a physical crash. There’s no way to cure bad sectors, but there are utilities that can mark these sectors as bad and pull out whatever data is stored in them and move it to another location on the hard drive. This is something that any user can do, because there are commonly available utilities for the same.

Norton Utilities is a classic example of such utilities, which has been used for ages for this among other things. In some cases, the hard drive stops getting detected by the system altogether, which can be due to a problem in the circuitry or the headgear assembly inside. This is something that a user can’t rectify on his own. It requires going to an expert, who will open the drive and do the needful. In most cases, it wouldn’t be possible to fix the hard drive, only recover the data somehow and move it to another location.

Insta Recovery Version 1.0
Recover mail in Outlook Express
This Win 9x based tool can recover FAT16 and FAT32 partitions from your logically crashed hard disk. The software works from a floppy disk and can recover data from all desktop Windows versions. You just have to connect your crashed hard disk as a slave to an existing Win 98 system and run the program “IR.EXE” from the floppy. The software detects the hard disks and check for lost data. It first checks each partition for a root directory structure. You can also specify the sectors you want to search as well, if you know it. Its “advanced mode” option allows a more thorough search of the hard disk, provided you know how hard disks manage data.
The software’s interface is DOS-based but it runs from within the Windows command shell. It’s fairly easy to use, though it hogs your PC’s resources and takes a lot of time. You can get a listing of all the files on your “crashed” hard disk and can restore them. The only problem with the software is that if you select directories, it restores only the directory names and not the files within. To restore files as well, you must enter each directory and select the files separately.
The software is very economical and does not have a restriction on the number of users who can use it off the floppy.
Shruti Pareek

Most hard drives provide a MTBF (mean time between failures) rating that’s enough for it to last for several years. While failures are unpredictable and can happen, the best you can do is to maintain the hard drive properly.

If at home, ensure that you have a UPS in place, which can protect your system from the most basic power problems such as power cuts, surges, spikes, and sags. Any of these problems if allowed to pass through can cause a PC to reboot, and even damage the hard drive in the process.

Ensure that you don’t subject your system to any kind of shock. Even though hard drives can withstand several Gs of shock, they’re still susceptible to damage. Shocks can also reduce hard drive performance, and even cause bad sectors.

A logical hard drive crash on the other hand is related to a fault in the virtual storage structure of the hard drive. Data is stored on a hard drive in a structured manner, which can easily get corrupted due to many reasons, such as virus attack, accidental format, or partition deletion. In such cases, there are various things that one can do.

In case of a virus attack, the best thing to do of course is to keep your anti-virus software updated. To prevent data loss from a hard drive format or partition deletion, there’s one thing you must do, and that is to keep a backup of your important data.

You can keep it in a separate media like a CD-R, Zip drive, another hard drive, or even on your file server. Even if you’re not able to retrieve the original settings of your operating system after the crash, at least your data is safe.

There are also plenty of third party utilities that can prevent data loss. Some like Norton utilities will protect your Windows Recycle Bin, so that even when you empty it, it can recover the data. On other OSes like DOS or Linux, there are ways to retrieve deleted files or even unformat partitions.

If you want to retrieve all your original settings after a crash, there are ways to do that as well, again through software. Some software like Norton Ghost can basically create an image file of your entire hard drive or partition. This, however, would be pretty big in size, and you’ll have to a place to keep it, possibly in another partition or hard drive. Another problem in this is that you’ll need to keep manually updating or recreating it ever time there are changes.

Undelete
While we’re on it, there’s also an undelete command in DOS that can help recover deleted files. Whenever you delete a file from a directory, the first character of the file name is removed from the directory, with the rest of the data still intact. The undelete command, therefore, asks you to enter the first character for the filename which helps undelete the file.Just typing in “UNDELETE” will recover all deleted files in the current folder.
If you specify a directory or file as a parameter, it recovers files under that folder or all the files matching your filename in that folder. You can optionally use the /LIST switch to just list all available deleted files. The “/DT” switch will use filenames present in the deleted-files tracking file (“mirror” command’s result) to recover files—otherwise, it prompts you for the same. The MIRROR command creates a secondary FAT, which can be used by both “undelete” and “unformat”.
Drupad Parsai

Another option is to install software that can take snapshots of your system at different points of time, and restore it to a particular point of your choice in case of a crash.

Win XP has a built-in restore feature that lets you do this (see box). There’s also some hardware that let’s you do this. Finally, there are utilities that will take backups of the critical areas of your hard drive, which can later be used to rebuild the system.

Inside a Hard Drive
A hard disk is made up of several platters that can store data as electromagnetic pulses. Each platter has a separate head to read/write data. By design, all heads are bound together, meaning all of them move together at the same time.

Each platter is made up of concentric tracks, and each track in turn is broken up into sectors. The same track on each platter forms what’s called a cylinder. In other words, tracks on all the platters that are on the same radius form a cylinder.

The outermost track and cylinder are numbered 0, and this number increases as we move towards the center. Similarly, the heads are also numbered.

Norton Utilities
Unformat your hard drive
Norton Utilities is of the oldest utilities for keeping your system running in good condition. It’s come a long way from the DOS days. Today, it has tools like Disk Doctor and Win Doctor to take care of your hard drive and Windows installation. Win Doctor checks for Windows-related problems on your system like invalid registry entries, missing icons and, invalid paths. These problems can cause your system to crash or behave erratically. They are easy to use, and automatically run a barrage of tests either manually or on preset schedules. Recovery options include automatic and manual modes, depending on your confidence in the suggested solution. Disk Doctor looks for bad sectors on your disks and fix errors. On Windows 98/ME, you can run the DOS version of Disk Doctor and recover files that have been lost due to disk errors. It also has an UnErase Wizard that can recover files deleted from your system, the limitation being that only Norton-protected files can be recovered. The System Information tool gives you the complete hardware and software details on your PC. SpeedDisk defragments the hard disk and is generally much faster than Windows’ own defragmenter. Norton Utilities is as a part of Norton SystemWorks.
Drupad Parsai

In order to locate a particular sector, the PC must know its cylinder and head number. Using this numbering is very cumbersome for programs whey they have to access data, especially because a hard drive can have thousands of tracks.

That’s why, another technique called LBA (Logical Block Addressing) is used, which sequentially numbers all sectors. This way, the programs just have to specify which sector to read/write on, instead of specifying the cylinder and head numbers.

One point to note here is that each track on the hard drive doesn’t hold the same number of sectors. This is because as we move from the innermost track to the outermost, its circumference increases.

The outermost track therefore has more sectors than the innermost one. Due to this, a technique called zoning is used, which clubs tracks on multiple cylinders having sectors that are adjacent.

Critical Areas
These basically include the Boot Sector, Partition Table, File system, and Root Directory. In case you loose any data, these utilities will be able to recover your files using this information. The Master Boot Record or MBR is also known as the boot sector, and is the first place the BIOS of a system looks when the PC boots up.

The MBR contains information about all partitions on the hard drive and their type in what’s called the Partition Table.
In addition to this, there’s also the Master Boot Code. This is a small program that runs first on the PC and then transfers control to the OS. Because this is the first place where the BIOS starts to look, it’s also located on the first sector on the hard disk, which is located on Cylinder 0 and Head 0.

We’ve explained the hard drive structure later in this story. A file system as we already know is a structured way of naming and storing files on the hard disk. Usually when there’s a data loss, one or more of these areas gets affected and some sort of cryptic message pops up. Knowing what these areas really are can help understand these messages and then do something about it.

Stellar Shield Data Safety Software
This is the server edition of Stellar Shield, which works on Windows NT and 2000 server systems. It needs 30 MB space on your machine and works as a loss prevention system by creating images at regular configurable intervals. The user can choose between: a Full (critical areas & folders) image, a Minimal (critical areas) image or a Custom image where users select which files should be imaged.
After a system crashes, use the software’s bootable CD for recovering data from images. It scans the hard disk sectors for the image. Our 40 GB hard disk (with 8GB of data) took almost 2 hours to scan. When an image is found, you are shown the files and can restore them to a separate hard disk (FAT formatted) or floppy diskettes.
In our tests, we deleted and formatted some partitions after having created a couple of Stellar images of a running system. We were able to get back files from deleted partitions. A word of caution here though is that you must rebuild the server with the most recent image. Using an older image to rebuild the system could cause the server to crash. Also, defrag your drive before creating the image. If you defrag it after building the image, then you’ll not be able to use it to restore the data back. The Server Edition of the software supports hardware controlled RAID, in addition to assigned drive letters and extended volume sets. It has a useful search facility in DOS mode, which let’s you search deleted files, files by name, and even see long file names.
Shruti Pareek

Once a crash has happened, there are ways to find out what could have happened from the error messages that pop up.
This can be useful in speeding up the data recovery process. Some of the most commonly known error messages are as
follows.

  • Invalid Drive Specification
  • Invalid Partition Table
  • Missing Operating System
  • ROM Basic error
  • Drive not ready
  • Invalid media type error
  • Sector not found
  • Data error reading file
  • VFAT error
  • FAT damaged
  • File not found
  • General failure reading device

Once you’ve identified the problem, you’re ready to do something about it.

Recovering Data
Alas, in spite of all precautions, have you still lost data? If so, this is where data recovery comes into play. If you’ve been using a data recovery utility, then it may not be difficult to recover your data. The utility would simply take all the backed up critical areas of your hard drive and copy them to the right places on the hard drive. Your system should be backed up.

However, if you’re not comfortable in using the utility, then don’t attempt to use it yourself. Ask someone to help you out. If you haven’t been using any utility before data loss, then there are a couple of things to do.

First of all, remember one thing that when you delete a file or directory, or even format your hard drive for that matter, the data doesn’t get deleted. It’s still there, and the only thing that’s deleted is the system area of your hard drive, which means the partition table, MBR, etc. The data can be overwritten if you continue using the hard drive and keep copying or removing files from/to it. In such a case, it becomes extremely difficult to recover the data. So, don’t do anything to the hard drive that has lost data. Don’t try to run any sort of utility on it, which could alter its structure. If you’re sure you know how to use a data recovery utility, then set up an alternate system to store all the data that you manage to recover.

Lastly, remember that the more you complicate matters by running utilities on the hard drive, or modifying its content, the more difficult it becomes to recover data from it. As the difficulty level increases, then so does the price for retrieving it.

Anil Chopra

Next Page :

Data recovery utilities on pcq essential D

Page(s)   1  2  3  

Print Comment Email DiggDigg DeliciousDel.icio.us RedittReddit TwitterTwitter


Untitled Document



ZTE:Leading CDMA Technology


Extraordinary Networks:Freedom of Choice


   
 

 
 

Magazine Subscription | RQS | Contact Us | Team PCQuest | Advertising - Print | jobs@cybermedia