Book on Data Recovery Programming

Files Recovery Software
Home Contact Details Customer Support Download Demo Products  

 
 

The figure given next shows the MBR of a Disk with FAT32 partitions. The highlighted area of 64 bytes in the end of the figure represents the Master Partition Table of the MBR.

The Encoding for the Starting and Ending CHS is as Follows:

  • At offset 00H, 80 (Hex) represents that the partition is an Active partition.
  • At offset 01H, 01 (Hex) represents the Starting head number = 1.
  • The combination of two bytes at offset 02H and 03H form the Starting sector
    and cylinder number of the partition as per the encoding given next:

MBR of a Disk with FAT32 partitions

00H (Byte At Offset 03H)

01H (Byte At Offset 02H)

7

6

5

4

3

2

1

0

7

6

5

4

3

2

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1

Bits 7 to 0 For Cylinder Number

Cylinder Bits 9, 8

Sector Bits 5 to 0

Cylinder Number = 0000000000 (B) = 0

Sector Number = 000001(B) = 1

Thus Starting C-H-S of the partition= 0-0-1.

Similarly the Head number for the Ending of the partition is FE (Hex), which is 254 and the Encoding for the Ending Cylinder and Sector number of the partition have been given in the next table:

BDH (Byte At Offset 07H)

BFH (Byte At Offset 06H)

7

6

5

4

3

2

1

0

7

6

5

4

3

2

1

0

1

0

1

1

1

1

0

1

1

0

1

1

1

1

1

1

Bits 7 to 0 For Cylinder Number

Cylinder Bits 9, 8

Sector Bits 5 to 0

Cylinder Number = 1010111101 (B) = 701

Sector Number = 111111 (B) = 63

Thus the Ending C-H-S of the Partition = 701-254-63.


Previous page

page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20


page 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35

Next page
 
 
Data Recovery Book
 
Chapter 1 An Overview of Data Recovery
Chapter 2 Introduction of Hard Disks
Chapter 3 Logical Approach to Disks and OS
Chapter 4 Number Systems
Chapter 5 Introduction of C Programming
Chapter 6 Introduction to Computer Basics
Chapter 7 Necessary DOS Commands
Chapter 8 Disk-BIOS Functions and Interrupts Handling With C
Chapter 9 Handling Large Hard Disks
Chapter 10 Data Recovery From Corrupted Floppy
Chapter 11 Making Backups
Chapter 12 Reading and Modifying MBR with Programming
Chapter 13 Reading and Modifying DBR with Programming
Chapter 14 Programming for “Raw File” Recovery
Chapter 15 Programming for Data Wipers
Chapter 16 Developing more Utilities for Disks
Appendix Glossary of Data Recovery Terms
 
 
Pro Data Doctor

Home

Products

Contact Details

Customer Support

Download Demo

Terms and Conditions

 
Pro Data Doctor