Hard Disks & File Systems Flashcards
Track Numbering
Begins from 0 at outer edge and moves towards the center, typically reaching a value of 1023
Sectors
The smallest allocation unit of a disk platter.
Normally holds 512 bytes of data
Clusters
The smallest allocation unit of a hard disk. A set of tracks and sectors from 2-32
Slack Space
- The free space on the cluster after writing data on that cluster
- If the size of the stored data is less than the cluster’s size, the unused area remains reserved for the file, resulting in slack space
Bit
a single binary digit
Byte
consists of 8 bits
Nibble
half a byte/consists of 4 bits/known as a tetrade
Hard Disk Data Addressing
- CHS
2. LBA
Disk Partitioning
Primary
Extended
Primary Disk Partition
holds the information regarding the operating
system, system area, and other information required for booting
Extended Disk Partition
holds the information regarding the
data and files that are stored in the disk
BIOS Parameter Block (BPB)
The BPB is a data structure situated at sector 1 in the
volume boot record of a hard disk and explains the physical layout of a disk volume.
Master Boot Record (MBR)
A master boot record (MBR) is the first sector (“sector zero”) of a data storage device such as a hard disk
Backup the MBR on a UNIX/LINUX System
dd if=/dev/xxx of=mbr.backup bs=512 count=1
Restore the MBR on a UNIX/LINUX System
dd if=mbr.backup of=/dev/xxx bs=512 count=1
What is the GUID?
The Globally Unique Identifier is a 128-bit unique number, generated by the Windows OS for identifying a specific device, document, a database entry, and/or the user.
What is GPT?
GPT - Part of the Unified Extensible Firmware Interface (UEFI), which replaces legacy BIOS firmware interfaces.
What Partition scheme does MBR use?
32 bits for storing LBA and the size information on a 512-byte sector.
What Partition scheme does GPT use?
In GPT, each logical block is 512 bytes and each partition entry is 128 bytes, and the negative addressing of the logical blocks starts from the end of the volume with -1 as the last addressable block.
What is GPTs LBA layout look like?
LBA 0 stores the Protective MBR
LBA 1 contains the GPTheader, and the GPT header comprises a pointer to the partition table or
Partition Entry Array at LBA 2
How many bytes does UEFI assign for the Partition entry array?
16,384 bytes
Why is LBA 34 the first usable sector?
Since the disk has 512-byte sectors with a partition entry array of 16,384 bytes and the minimum size of 128 bytes for each partition entry,
Protective MBR
Helps legacy tools solve compatibility issues when they fail to understand the GPT format.
What are essential Windows System Files?
Ntoskrnl.exe Ntkrnlpa.exe Hal.dll Win32k.sys Ntdll.dll Kernel32.dll Advapi32.dll User32.dll Gdi32.dll
What are the Five phases of UEFI Boot?
SEC - Security PEI - Pre-EFI Initialization DXE - Driver Execution Environment BDS - Boot Device Selection RT - Run-Time
Security (SEC) Phase
initialization code that the system executes
after powering the EFI system on.