Question: Use what you have learned to create a script that can read and interpret a FAT32 boot sector. You should create a module for this

Use what you have learned to create a script that can read and interpret a FAT32 boot sector. You should create a module for this purpose with a separate script that handles the image input, etc. Cut and paste the module file into the first box, the script into the second, and the output into the third. For convenience the start of the manson.dd file and also just the VBR are in the files below.

FAT 32 uses an extended BIOS Parameter Block

Little Endian

Bytes Contain

0-2 Jump to bootstrap. The position of the bootstrap varies.

3-10 OEM name/version. Various utilities leave their own name.

11-12 Number of bytes per sector

13 Number of sectors per cluster

14-15 Number of reserved sectors. FAT 12/16 use 1. FAT 32 uses 32.

16 Number of copies of the FAT

17-18 Number of root directory entries. Will show 0 for FAT 32.

19-20 Total number of sectors in the filesystem (if under 32 MB)

21 Media descriptor type: F0 for 1.44 MB floppy, F8 for hard disk, etc.

22-23 Number of sectors per FAT. Will show 0 for FAT 32.

24-25 Number of sectors per track

26-27 Number of heads

28-31 Number of hidden sectors (sectors preceding the partition).

32-35 Total number of sectors (used for over 32 MB)

36-39 Number of sectors per FAT

40-41 Mirror flags

Bits 0-3: number of active FAT (if bit 7 is 1)

Bits 4-6: reserved

Bit 7: one if single active FAT; zero if all FATs are updated at runtime

Bits 8-15: reserved

42-43 File system version

44-47 First Cluster of Root Directory (usually 2) (since it is in the data region)

48-49 File system information (FSINFO) sector number in FAT 32 reserved area (usually 1)

50-51 Backup boot sector location or 0 or 0xFFFF if none (usually 6)

52-63 Reserved

64 Logical drive number in hex (0x80 for first hard drive, 0x81 for second)

65 Reserved

66 Extended boot signature (0x29). Indicates the following three fields are present.

67-70 Serial number of partition

71-81 Volume Label or No Name

82-89 File system type (FAT32)

90-509 Bootstrap

510-511 Signature 0x55 0xAA

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!