Home > Articles > Hardware > Upgrading & Repairing

Data Protection and Recovery Techniques Part 6: Recovering Data Without Help from the FAT Learn how to identify and restore files on a disk with a missing or damaged file allocation table (FAT)

Data Protection and Recovery Techniques Part 6: Recovering Data Without Help from the FAT
Learn how to identify and restore files on a disk with a missing or damaged file allocation table (FAT)

Introduction

In Part 5 of this series, I described the process of locating the contents of an erased file on a FAT-based hard disk and writing its contents to a new file on another drive using Norton Disk Editor. As you can see from reviewing that article, the process is relatively simple if the file allocation table, or FAT, is intact. However, what if the FAT has been erased or damaged? In this article, you will learn how to retrieve data even when the FAT cannot be used to track down the locations of a files clusters. As Ive stressed before, this process is much more successful if you defragment your drives frequently.

Pattern Recognition Is the Key to Locating Lost Data

Professional data recovery programs such as Ontrack Easy Recovery Professional and data-recovery technicians working for companies like Ontrack and others can bypass a damaged or missing FAT and recover data directly from the drive. Whats their secret? They know how to distinguish the unique byte patterns that indicate the beginning and end of particular types of files. This information, often referred to as file signatures, enables data recovery professionals to recover lost data from a drive whether the FAT is valid, damaged, or missing. For example, Ontrack Easy Recovery Professional version 6 is designed to recover over 200 different types of files. Do you need to understand the structure of that many types of files? Probably not, but by using Norton Disk Editor and data files from the applications you use every day, you can create your own database of distinguishing file characteristics.

Creating a Sampler of File Types

To create a sampler of file types you can use for research, its best to use an empty hard disk drive letter. If you dont have a spare hard disk letter, but you have unpartitioned space on your hard disk, create a new partition, set it up as an extended partition and format it as a logical drive with the FAT file system (FAT16 or FAT32). If you have Norton Utilities or Norton System Works, use the WipeInfo utility to clear all empty space before you copy files to the drive; note that WipeInfo offers the clear empty space option under Windows 9x/Me only.

If you dont have empty disk space you can use for this task, you can install a new hard disk; if the drive is a used one, use the utility software provided by the drive vendor to write zeroes to the drive to remove any trace of old data from the drive. The goal is to create a completely clean disk without any extraneous information where you can store and analyze file signatures.

Once you have selected where to store files, use your favorite applications to store files on this drive, or copy existing files to the drive. Since youre storing data to a newly-created or newly-formatted drive, the data will be stored without fragmentation, and the beginning and end of each file will be easier to distinguish.

Using Norton Disk Editor to Analyze Data File Signatures

Once you have created three or four different files of each file type you want to research with your favorite applications, you can use Norton Disk Editor to locate the beginning and end of each file to determine each filetypes distinctive signature. Follow this process (see Part 5 of this series for details):

  1. Restart the computer with a DOS boot disk or with Windows 9x/Me (Disk Editor cant be run under Windows NT/2000/XP, even in Read-only mode)
  2. Start Disk Editor
  3. Select the file from the File menu
  4. Note the hex and text characters used at the beginning and end of the file (Figure 1).


(Click for Larger Image)

Figure 1
The start (1) and end (2) of an Adobe Acrobat (.PDF) file created with Acrobat 4.

If you use Windows 9x/Me, you can run Disk Editor from within the Windows GUI in Read-only mode in a window, and use Windows to copy hex characters from the start of the file into a Notepad window to create your own database. This is the method I used to create the information in the following table, which lists typical bytes at the start and end for a few of the most popular applications in use today as shown in the Norton Disk Editor in hex mode.

As Figure 1 shows, when Norton Disk Editor is set to display in Hex mode, text characters are shown at the right side of the main display. In Table 1, I have highlighted text characters at the start of a typical file in yellow and text characters at the end of a typical file in green. If you are scanning through a drive looking for the beginning or end of a file, you might find text easier to spot than hex characters. Note that while the first characters of a particular file type are often similar or identical, the end of a data file isnt always as consistent.

Table 1 Typical Starting and Ending Bytes for Popular File Types

Filetype

Typical Starting Bytes (Hex)
Ending Bytes (Hex)

Text Char

Rich Text

.RTF

7B 5C 72 74 66 31 5C 61 - 6E 73 69 5C 61 6E 73 69

or

7B 5C 72 74 66 31 5C 61 - 6E 73 69 20 5C 64 65 66

0D 0A 5C 70 61 72 20 7D 7D 00

or

5C 70 61 72 20 7D 00

or

5C 70 61 72 0D 0A 7D 7D 00

{\rtf1\ansi\ansi

{\rtf1\ansi \def

\par }}

\par }

\par }}

MS Word XP/2000

D0 CF 11 E0 A1 B1 1A E1 - 00 00 00 00 00 00 00 00

72 64 44 6F 63 00 10 00 - 00 00 57 6F 72 64 2E 44

6F 63 75 6D 65 6E 74 2E - 38 00 F4 39 B2 71 00 00

Word.Document

MS Word 6/WordPad

D0 CF 11 E0 A1 B1 1A E1 - 00 00 00 00 00 00 00 00

(may contain Word.Document as in MS Word XP/2000)

Microsoft Excel

.XLS

D0 CF 11 E0 A1 B1 1A E1 - 00 00 00 00 00 00 00 00

(may contain user names near end of file)

Microsoft PowerPoint

.PPT

D0 CF 11 E0 A1 B1 1A E1 - 00 00 00 00 00 00 00 00

(varies)

Adobe Photoshop 7

.PSD

38 42 50 53 00 01 00 00 - 00 00 00 00 00 03 00 00

(varies; files often end with groups of alternating characters)

8BPS.

TIFF

49 49 2A 00 1F 43 03 00 (remainder varies)

(varies)

II*.

JPEG

FF D8 FF E0 00 10 4A 46 - 49 46 00 01 (rest of first line varies)

FF D9 00

JFIF

JPEG (Nikon Coolpix 995)

FF D8 FF E1 88 45 45 78 - 69 66 00 00 49 49 2A 00

FF D9 00 00

EEXIF

JPEG (Kodak DC3400)

FF D8 FF E1 18 11 45 78 - 69 66 00 00 4D 4D 00 2A

FF D9 00 00

EXIF

GIF

47 49 46 38 39 61 (remainder varies)

00 3B 00

GIF89a

.;.

Windows Bitmap

42 4D (remainder varies)

(end of file often contains large block of repeating or alternating characters until end of sector or cluster)

BM

Adobe Acrobat 3

25 50 44 46 2D 31 2E 32 - 20 0D 0A 25 E2 E3 CF D3

25 25 45 4F 46 0D 0A 00 00 00 00 00 00

%PDF-1.2

%%EOF

Adobe Acrobat 4

25 50 44 46 2D 31 2E 33 - 0D 25 E2 E3 CF D3 0D 0A

25 25 45 4F 46 0D 00 00 00 00 00

%PDF-1.3

%%EOF

Adobe Acrobat 5

25 50 44 46 2D 31 2E 34 - 0D 25 E2 E3 CF D3 0D 0A

62 62 37 31 3E 5D 0D 3E - 3E 0D 73 74 61 72 74 78

72 65 66 0D 31 37 33 0D - 25 25 45 4F 46 0D 00 00

%PDF-1.4

%%EOF

Windows Metafile

D7 CD C6 9A 00 00 (rest of first line might vary)

(varies look for 03 followed by 00s at end of file)

Quattro Pro

D0 CF 11 E0 A1 B1 1A E1 - 00 00 00 00 00 00 00 00

(varies)

Paintbrush .PCX

0A 05 01 08 (remainder varies)

(varies)

How can you use the information in Table 1 and the similar database you make of your own files to help you recover lost data? If the file allocation table (FAT) on a drive is lost because the drive was formatted or partitioned, you can use Disk Editor to search for the hex characters, which are found at the start of each file. Specify the first few characters, or the ones highlighted in yellow for best results. These characters should be located at the start of a disk cluster; if they are located elsewhere, they might be leftover junk data. Note the cluster and sector numbers.

To locate the end of the file, search for the green-highlighted characters (in text or hex mode) or for repeating characters followed by several 00 hex or period (.) text characters. Note the sector number. Then, use the method outlined in Part 5 of this series to write the specified sectors to a file on another drive.

The list of file characteristics in Table 1 isnt intended to be comprehensive, but it does give you an idea of the wide variety of data files in use. If you want to pursue data recovery with Norton Disk Editor or a similar tool, you will find that getting familiar with the types of files you create makes locating the start and end of a lost file much easier.

Tips

In most cases, repeated 00 characters (in hex) or periods (.) in text mode indicate the end of a file, particularly on a clean drive.

If you have a difficult time determining the end of the file, specify different ranges of sectors and write them to different filenames, then open or view them to determine which ones contain the data you want.

As you saw in Table 1, some data file types have distinctive end-of-file patterns. As you work with your own data files and applications, note additional end-of-file patterns you can use to help find lost data.

Even though we think of files such as .PCX, .TIF, .JPG and others as standards, their characteristics vary a great deal depending upon the program or device that created them. To help you determine the characteristics of a lost file type that youre not familiar with, create another file on another drive with the same program or device and view it with Disk Editor.

Disk Editor will not run under Windows XP or other NT-based versions of Windows, even in read-only mode. If you are using Disk Editor to recover data from hard or floppy disks, boot your computer with an MS-DOS startup disk (you can create this with the FORMAT option in these versions of Windows). If you want to use Disk Editor to recover data from flash memory or other types of device-driven drives, you will need to use it under Windows 98 or Me in read-only mode (read-only mode requires you to copy recovered data to another drive).

Identifying Unknown Types of Files

As Table 1 indicates, all Microsoft Word, Excel, and PowerPoint files created with recent versions of Microsoft Office have identical starting bytes. Recent versions of Quattro Pro also use the same starting bytes. Although the end of the files will vary according to file type and data contained in the file, you might find yourself creating a recovered file and not know what the correct file extension should be.

One of the tools I depend upon to help determine the correct filetype is the file viewer program QuickView Plus. Previously sold by Jasc Software, its now published by Stellent (http://www.stellent.com). Its a greatly enhanced version of the QuickView program bundled with Windows 95 and 98.

QuickView Plus looks at actual file contents, not at the file extension, so if you copy sectors to a new file in the course of data recovery, QuickView Plus can identify the file type, even if you didnt use the correct extension or forgot to specify an extension when you created the recovered file. After QuickView Plus identifies the file, you can rename the file with the correct extension.

Copyright©2003 Pearson Education. All rights reserved.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020