📜 ⬆️ ⬇️

What is a damaged file? OfficeRecovery classifies and illustrates typical examples of corrupted files.

To understand what a damaged file is, consider first what is an intact file, i.e. holistic.

An integral file consists of blocks recorded on a data carrier. For simplicity, later in the article any media will be called a “disk”. It should be borne in mind that the fundamental principles of file storage are similar for disks, flash drives, CD / DVD and many other devices, therefore, speaking of the “disk” we are in fact talking about a wide class of devices.

The integral file lies on the disk in the form of blocks, as shown in Fig. 1. When reading a file, the blocks that make up the file are compiled in a certain sequence, and the result is an image of the file in memory, ready for processing by the program. This is how most of the files that we use every day are opened — Word documents, Excel spreadsheets, images, and everything else.
')
The attentive reader will notice that the blocks that make up the file are located in different places on the disk. This is an important factor that has a great influence on both damage and subsequent file recovery.
Holistic file
Fig. 1. Holistic file


Corrupted file


A damaged file is a file that has undergone an erroneous change in its internal structure and data. As a result of such changes, the file becomes unusable or unsatisfactory to use.

Damage can be both critical, when the user completely loses access to the data, and partial, when only part of the data is lost, but access to the rest of the information untouched by the damage remains.

An example of critical damage can be when a file cannot be opened / recognized by the original application in which it was created. If the application does not strictly handle such situations, the result may be a critical error (“crash”) of the application with which they tried to open the damaged file.

The main causes of file corruption


We list the main causes of file corruption:


Let us consider each of these factors separately and illustrate the most characteristic examples.

Recovering files after deleting from disk


Did you encounter a situation when, after clearing the disk space, along with unnecessary information, something important was deleted?

In such cases, it is usually necessary to resort to the help of utilities for recovering deleted data. These applications work with the file system directly and, if the information about the file has not been completely cleared from the system, restore the file to a greater or lesser extent. But here are possible pitfalls.

First, new data could be written to the place of an unintentionally deleted file, if you were actively working with the disk after deleting files. The reason is that the system uses the space left after deleting files for new data.

Another common case is the inability to fully restore the sequence of blocks of a deleted file. In this case, the applications, using internal algorithms, try to select the expected blocks related to files, which does not always bring the expected result.

Summarizing possible damage during file recovery after deletion, the following typical problems can be identified:


File restored after deletion
Fig. 2. File recovered after deletion


Tips in case you need to recover deleted files:



Disk failure


There are often situations when problems arise in the work of the carrier itself. The disk is a set of blocks for storing data (in the article we use the abstract term “block” instead of the more specific “sector”, “cluster”, “track”, etc.). Over time, when using media, situations are possible when part of the blocks becomes unsuitable for further use and the data that was there before the failure becomes inaccessible.

It is especially unpleasant when data related to important files were stored in corrupted blocks. In this case, errors occur both when attempting to read and when attempting to write. It appears this way: let's say that part of your Word document is stored in a broken block. When trying to open a file, Microsoft Word tries to read the given piece from the disk, receives an error from the system about the impossibility of the operation, as a result, the word processor reports that it is impossible to open the file.

If the file is still able to be read from the disk, ignoring bad blocks, it will have damage, shown in Figure 3.
File from a damaged disk
Fig. 3. File from a damaged disk


Tips for recovering files from a damaged disk:



The impact of the virus or antivirus


Possible causes of data corruption can also be the effects of viruses and the erroneous operation of antiviruses.

A detailed description of viruses and their types is beyond the scope of this article. But It is worth noting that some types of viruses can deliberately wipe user files with garbage data in order to harm. Many viruses also do this in the process of their “reproduction”, recording parts of the files with their service distribution data on the user's computer and other machines, as well as for disguise purposes.

If we by definition do not expect anything good from a virus, then how does it happen that the source of damage is an antivirus? Generally speaking, the principle of the anti-virus is reduced to reading the contents of the file and searching in the sequence of bytes of strings (“signatures”) characteristic of the viruses known to him. There are situations where user data can be mistakenly interpreted as a virus chain and cut from a file for security. Although the antivirus algorithms have recently undergone significant improvements, such situations are periodically possible. In fig. 4 shows a generalized view of a file after being damaged by a virus.

Please note that virus / antivirus damage is not related to the disk. From the point of view of the location on the disk and reading it, everything is in order with the file. Damage zones do not coincide with the boundaries of the blocks on the disk, but can be both smaller and more blocks.
File corruption as a result of virus, antivirus activity or program error
Fig. 4. Damage to the file as a result of the activity of a virus, antivirus or program error


Application errors


A common factor in the damage to user data is an application error, which is used to view and edit files. This factor can bring problems both independently and in conjunction with other factors (interruptions in electricity, the impact of the antivirus on the application, insufficient RAM). Almost always problems arise when saving changes to a file.

Here is a typical scenario: a three-dimensional image was edited in Photoshop, significant edits were made, then when trying to save changes, the application “falls” for one reason or another. The file is recorded partially, and thus damaged. When you try to open the saved image again, the application does not cope with this, since the internal structure is not integral.

This is just one example of the potential causes of application crashes. The “clinical picture” of damage in this case is close to what can be seen in case of damage by viruses / antiviruses. For an idea of ​​it, see fig. four.

Tips:



User action


File corruption can also be caused by user actions. A vivid example is detaching a flash drive from a computer at the moment when all accumulated changes are not recorded on it. So get broken documents, spoiled photos.

We are not inclined to blame users for damage, considering situations like the one described rather as an imperfection of computer systems.

Here are a couple of simple tips for users:



How to recover damaged files


In conclusion, we will say a few words about how to restore the damaged data, and what criteria should be presented to the results of recovery.

The basis for recovering user data is to understand the internal structure of each type of file that needs correction. After analyzing the damaged file, the remaining intact / intact user data is reduced to a new complete file. Data that has been erased, alas, can not be recovered.

Applications for the recovery of damaged data work as follows:



What to expect from the results of file recovery? Each file damage is unique in its own way, and affects the amount of data that can be recovered. If the service data that is irrelevant for recovery is damaged in the file, you can often talk about a 100% recovery of user information. If a piece of important information is overwritten, then it is possible to recover only the data that remained intact during the damage process.

Often, users do not understand this fact and expect to restore their original file after recovery. Unfortunately, this is almost never the case.

When assessing the quality of recovery, it is recommended to focus on whether the data to be used were recovered from the file. If this is the case, then the restoration should be recognized as successful, since it has already saved time and effort when recreating the initial set of information.



OfficeRecovery utilities recover data from more than 50 different file types, from Word and Excel to Exchange and Oracle. If you encounter file corruption, use OfficeRecovery software and services. The company's specialists are also always ready to work on complex special projects for recovery of corporate data.

OfficeRecovery software:
www.officerecovery.com

Online service for recovering data from corrupted files:
online.officerecovery.com/ru

Source: https://habr.com/ru/post/149640/


All Articles