Master Boot Record and Volume Boot Record Notes
Master Boot Record and Volume Boot Record Notes
Structure
The MBR is located in the first sector (sector 0) of a storage device, and it is
crucial for booting the operating system. Here’s a detailed look at its
components:
Details: This boot code checks the partition table (found later in the
MBR) to find a bootable partition and transfer control to the code on that
2. Partition Table:
Key Fields:
Ending Sector and Cylinder: Marks the end location of the partition.
Significance: The partition table helps the system identify and locate
different partitions, including the primary partition needed to boot the
OS.
Value: 55 AA .
It then executes the Master Boot Code, which examines the partition
table for a bootable partition.
2. Partition Management:
The MBR’s partition table allows up to four primary partitions, which can
include an extended partition for creating additional logical partitions.
3. Limitations:
Purpose: Contains a small piece of code that tells the system where to
jump to start executing the boot code.
Function: This instruction points to the location of the actual boot code,
guiding the OS to the next steps in the boot process.
Example Values: Often contains the string identifying the file system,
such as “MSDOS5.0” or “MSWIN4.1”.
Importance: This field helps the system understand the basic unit of
data storage on the disk.
Value: FAT32 typically uses 2 copies of the File Allocation Table for
redundancy.
Purpose: Multiple FAT tables increase fault tolerance, as one table can
serve as a backup if the other gets corrupted.
Importance: Knowing the FAT size helps the OS locate and read from
the FAT tables.
Importance: FAT32 organizes the root directory in the data area, so this
field tells the OS where to find it.
Usage: Often used by the operating system to uniquely identify the disk.
Purpose: Stores an 11-character label for the volume, like "NO NAME ".
Purpose: The boot code is responsible for loading the operating system or
passing control to the next stage in the boot process.
Details: This area contains machine code that the system executes at
startup.
Value: 55 AA .
Purpose: This signature marks the end of the boot sector and indicates that
the boot sector is valid. Without this marker, the BIOS will not recognize the
boot sector.
Summary
The FAT32 Boot Sector contains essential information about the disk layout,
such as sector sizes, cluster sizes, the number of FAT tables, and pointers to
critical parts like the root directory and backup boot sector. This structure
enables the operating system to recognize, read, and interact with the FAT32
Usage: This field helps the system understand the fundamental unit of
storage on the disk.
Purpose: Reserved space for system use, which may include important
system data.
Importance: Reserved fields are left unused by NTFS but may have
specific roles in future updates or implementations.
Purpose: Points to the starting cluster of the Master File Table (MFT).
Purpose: Specifies the size of index blocks, which are used in NTFS
directories.
Summary
The NTFS Boot Sector contains essential information about the layout of the
NTFS file system, such as sector sizes, cluster sizes, pointers to critical file
system structures (like the MFT and $MFTMirr), and boot code necessary for
starting the OS. Understanding these fields allows the OS to interpret and
interact with the NTFS volume correctly. The structure also provides
redundancy (e.g., $MFTMirr) for reliability, and the boot code helps initialize the
loading of the operating system.
For your test, remember that the NTFS Boot Sector is more complex than FAT32
because it needs to manage advanced features of NTFS, like the MFT,
clustering, and metadata attributes.
The boot order in FAT32 and NTFS varies in complexity and structure. In FAT32,
the boot process begins with reading the Partition Boot Sector, where essential
parameters like bytes per sector and sectors per cluster are found. From there,
the system moves to the FAT tables, which manage cluster allocations,
identifying which clusters are in use, free, or at the end of files. Finally, the
system accesses the root directory and data area to locate and load the files
required to boot the operating system. This process is straightforward and
direct.
In contrast, NTFS follows a more layered and complex boot order. The process
starts with the Master Boot Record (MBR), which identifies and points to the
NTFS Volume Boot Record (VBR). The VBR holds NTFS-specific parameters
and directs the system to the Master File Table (MFT), a critical structure
containing detailed metadata about files and directories. After accessing the
MFT, the system can retrieve and load the necessary files for the OS. This
NTFS boot order—moving from MBR to VBR to MFT—provides greater control
and reliability but is more complex compared to the simpler FAT32 process.
FAT Tables: After gathering this basic structure, the system reads the
FAT tables to determine the layout of the clusters. It identifies which
clusters are free, in use, or marked as the end of a file.
Root Directory and Data Area: Finally, the system accesses the root
directory and data area, using the FAT tables to locate and load the files
needed for booting the OS.
Master Boot Record (MBR): The boot sequence begins with the MBR,
which locates and points to the NTFS partition's Volume Boot Record.
Master File Table (MFT): The MFT is accessed, allowing the OS to load
essential system files and metadata, which contain detailed file
information and attributes necessary for booting.
Data Retrieval and Loading: Using the pointers and metadata in the
MFT, the OS can access and load files required to start the system.