Cramster.com - Homework Solutions, Lecture Notes, Exams, and Free Online Homework Help
Sign Up Now! Login Customer Support Cramster Blog
McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
Problem Solved.
    Home    
    Homework Help    
   Answer Board   
    Resources (Beta)    
   
Member's Topic Headline:

How we can recover the deleted contents of file? Explain each step of recovery in detail.

Know the answer? Have a better solution? Share it.
Sign Up Now for FREE!
Join the thousands of students
getting ahead in their classes.
Member Testimonials

Question:

Advertisement:

Answer | Ask New Question | Customize Profile | Leaderboards | 
FAQ

Member's Avatar

Pupil
Karma Points: 50
Respect (90%):
Date Posted: 7/24/2008 4:23:55 AM  Status: Live
How we can recover the deleted contents of file? Explain each step of recovery in detail.
Course Textbook Chapter Problem
N/A N/A N/A N/A
Question Details:
How we can recover the deleted contents of file? Explain each step of recovery in detail.

Answers:

Member's Avatar

Expert
Karma Points: 1,405
Date Posted: 8/2/2008 10:18:42 AM  Status: Live
Asker's Rating: Helpful   
Response:

 
We can recover the deleted contents of file by reading the FAT/MFT table of the deleted files.
 
In windows a FAT/MFT table is maintained  for each file. This FAT table have all addresses of clusters allocated to this file. When the file is deleted ,  the Operating System marks the file name in the MFT with a special character that signifies to the computer that the file has been deleted. The computer now looks at the clusters occupied by that file as being empty and therefore as available space to store a new file.
 
Recovery :
So  to recover a contents of file ,file recovery s/w are actually doing is locating the MFT record for a deleted file and then checking the rest of the MFT records to determine if the clusters that the deleted file occupied are being used by any other file stored on the drive.If these clusters are allocated , then it's not possible to recover the contents otherwise it can recover the contents by reading the list of clusters. 
 

Jafar's Comment:
thanx

Hope this will help you...need any clarification ?

Member's Avatar

Guru
Karma Points: 2,014
Date Posted: 8/2/2008 12:46:47 PM  Status: Live
Asker's Rating: Helpful   
Response:

When you create a file, it has its first bite at existence, an existence which continues until you, in your casual god-like manner, delete it. Deleting the file isn't the end, though. All you need to do is open up the Recycle Bin on your desktop, select the file and drag it onto the desktop or into an Explorer window to recover it. Or simply double-click to open the Recycle Bin, select the file, and choose Restore from the pop-up menu to restore it to its original folder. Voila! Witness the file's second coming.

Now, what happens if you empty the Recycle Bin? Surely that's the end of the file's existence? To all appearances, yes. The file will appear to have been completely annihilated. But that's only because Microsoft reckons once you've deleted a file and emptied the Recycle Bin, you and the file have both had enough chances. But with an undelete utility there's a good chance you can resurrect the file yet again for its third go at life – good news for those of us whose fingers work faster than our brains.

What won't recycle

The Recycle Bin may be a marvel – one which most of us take for granted – but it does have its limits. For starters, the Recycle Bin does not catch every file you delete. All files deleted from the desktop or Windows Explorer end up there, as do files deleted from within compliant programs. Files deleted at the DOS prompt, though, bypass the Recycle Bin, as do any files you delete from removeable media such as floppy or Zip disks, and files deleted from compressed folders.

What's a 'compliant' program? You'll find most reputable commercial programs are compliant. That is, if you delete a file from within one of these programs it will be sent straight to the Recycle Bin, from which you can restore it if you need to.
The only way to check whether a program is compliant is to try deleting a test file, and then look for it in the Recycle Bin:

  1. Open the application you wish to test.
  2. Create a test file and save it.
  3. Use the application's File -> Open command to display the Open dialog box.
  4. Locate your test file in the list, right-click the file and choose Delete from the pop-up menu.
  5. Check the Recycle Bin to see whether your file has been placed there.

One thing to watch out for is deleting files via macro languages, such as Microsoft Office's Visual Basic for Applications (VBA). While recent versions of Office are Recycle Bin compliant, if you create Office macros which delete files automatically using the kill [file] statement, those files will bypass the Recycle Bin entirely.

Why files don't disappear

So, what's going on? How is it you can delete a file and yet it remains on your disk?

Let's start by looking at what happens when you delete a file and it's placed in the Recycle Bin.

In fact, the file is not moved to the Recycle Bin at all. Instead, the file stays in the same place but its directory entry – the complete path and filename of the file – is removed and placed in a hidden folder called Recycled. (Note: If you have more than one drive in your computer, you'll have a Recycled folder for each drive.) The file is then renamed. The original name and location of the file are stored in a hidden index file, called INFO2 (or INFO, if you're using Windows 95), located in the Recycled folder.

When you open the Recycle Bin, click a file and choose Restore, the original path is read from the INFO file, the file is renamed and its directory entry restored.

A listing of the contents of the Recycled folder.

Deleted files are renamed and stored in the Recycled folder, as can be seen in this folder listing displayed in a DOS window. (Click the image to see a full-size screenshot.)

The Recycle Bin is a FIFO stack: First In, First Out. That means the files you delete earliest are emptied from the Bin first. When the Recycle Bin is full, Windows starts deleting files from the Bin to make room for newly deleted files. It's only when you right-click the Recycle Bin and select Empty Recycle Bin from the pop-up menu that all files within the Bin are 'deleted'.

As you can see, files aren't really erased when you delete them, just renamed and their location hidden from view. So, what about when you empty the Recycle Bin? What happens then?

Once again, the file data is not deleted. Instead, Windows changes the file's directory entry to indicate the space occupied by this file is no longer needed and is available for use. The data's still there, but at any time if the operating system needs space for another file, it may be overwritten. Until it is overwritten, the file still exists on the hard disk and is recoverable. That means you dramatically increase the chances of being able to recover a deleted file if you refrain from any subsequent disk activity, such as creating, editing or copying files.

Jafar's Comment:
thanx

Hope this will help you,
Don't forget to LIFE SAVER RATE to my answer plz.

Ziaxp (MIT)




By reading or posting messages on these forums, you are agreeing to the Answer Board's Terms of Service and Conduct (TSC).


About Cramster | Terms of Use | Privacy Policy | Contact Us | Press Room | Site Map | Support | Anti-Cheating Policy

Cramster.com is not affiliated with any publisher. Book covers, title and author names appear for reference only.
Copyright © 2008 Cramster, Inc.