Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Hard Disks & File Systems: A Comprehensive Guide for Computer Science Students, Exams of Computer Science

A detailed overview of hard disks and file systems, covering essential concepts such as hdd and ssd components, logical structures, data addressing, and boot processes. It explores key features like tracks, sectors, clusters, and slack space, offering insights into their functions and significance in data storage and retrieval. The document also delves into the intricacies of disk partitioning, boot types, and essential windows system files, providing a comprehensive understanding of the underlying mechanisms that govern computer operation.

Typology: Exams

2023/2024

Available from 12/29/2024

tizian-kylan
tizian-kylan 🇺🇸

2.7

(21)

3.7K documents

1 / 62

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CHFI: Hard Disks & File Systems Latest
2024 Graded A+
HDD ✔✔(Hard Drive Disk)
non-volatile,
records data magnetically
SSD ✔✔(Solid State Drive)
solid-state memory,
uses microchips,
expensive,
supports a restricted number of writes over the life of the device
Two memories:
- NAND-based flash memory;
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e

Partial preview of the text

Download Hard Disks & File Systems: A Comprehensive Guide for Computer Science Students and more Exams Computer Science in PDF only on Docsity!

CHFI: Hard Disks & File Systems Latest

2024 Graded A+

HDD ✔✔(Hard Drive Disk)

non-volatile,

records data magnetically

SSD ✔✔(Solid State Drive)

solid-state memory,

uses microchips,

expensive,

supports a restricted number of writes over the life of the device

Two memories:

  • NAND-based flash memory;

(retains memory even w/o power)

  • Volatile RAM

(faster access)

Disk drive types ✔✔- Magnetic storage devices

(e.g., floppy disks, magnetic tapes)

  • Optical storage devices

(e.g., Blue-ray disks, CDs, DVDs)

  • Flash memory devices

electronically erasable programmable read only memory

(e.g., USBs, MP3 players, digital cameras, SSDs)

  • HDDs
  • SSDs
  • Cylinder

refers to the tracks (of all platters) of the same distance from the center

HDD:

Platters:

Components ✔✔Platter --> Tracks --> Sectors

Track vs. Area vs. Bit (Density) ✔✔- Track density:

the number of tracks in a hard disk

  • Area density:

the platters' storage capacity in bits per square inch

  • Bit density:

bits per unit length of track

HHD:

Logical structure ✔✔The logical structure of a hard disk the file system and software used to

control access to the storage on the disk.

Influences performance, consistency, expandability, and compatibility.

Common file systems:

FAT, FAT32, NTFS, EXT, EXT2, EXT3, EFS

Hard disk interfaces ✔✔- ATA/PATA (IDE/EIDE)

  • Serial ATA (SATA)

- SCSI

  • Serial Attached SCSI (SAS)
  • USBs

Contents of a sector:

  • ID info

(sector number and location that identify sectors on the disk; status info of the sectors)

  • Synchronization fields

(the drive controller drives the read process using these fields)

  • Data

- ECC

(code that ensures integrity of the data)

  • Gaps

(spaces used to provide time for the controller to continue the read process)

Bit vs. Nibble vs. Byte ✔✔- Bit:

binary digit

0 or 1

  • Nibble:

4 bits

  • Bytes:

8 bits

HDDs:

Sectors:

Advanced format ✔✔new hard drives are 4KB advanced format sectors

removes redundant header areas, lying between un-merged sectors

efficiently uses storage space by merging 512-byte sectors into one single 4KB sector

increases probability of unused space in a cluster,

reduces disk storage area,

reduces the unused area on the disk

HDDs:

Clusters:

Slack space ✔✔the area of a disk cluster b/n the end of the file and the end of the cluster

TWO TYPES:

  1. RAM Slack

data storage space from end of a file to the end of the last sector of the file

  1. Drive Slack

data storage space from end of last sector of a file to the end of the last cluster of file

Lost clusters ✔✔when the OS marks clusters as used but does not allocate them to any file

a File Allocation Table (FAT) error

occurs when the user does not close file properly OR shuts down a computer without closing an application OR disk corruption

Bad sectors ✔✔a damaged portion of a disk

formed due to configuration problems or physical disturbances to the disk

when formatting a disk, the OS identifies unusable sectors and marks them as bad

if data is in a sector that becomes bad, then it might not be recoverable (recover with specialized tools)

HHDs:

Data addressing ✔✔TWO TYPES:

  1. Cylinder-Head-Sector (CHS)
  • identifies individual sectors according to their positions in a track
  1. data rate
  2. seek time

HDDs:

Disk partitions ✔✔Partitioning is the creation of logical divisions upon a hard disk that allows a

user to apply OS-specific logical formatting.

  • Primary partiton

(OS, system area, other boot-required info)

  • Extended partition

(holds info regarding stored data and files)

BIOS parameter block (BPB) ✔✔a data structure in the partition boot sector

describes the physical layout of a data storage volume (e.g., number of heads, size of tracks, etc.)

BPB structure defines the file system structure

(different for each file system)

assists investigators to locate the file table on the hard drive

Master boot record (MRB) ✔✔the first sector ("sector zero") of a data storage device

stores info regarding the files on the disk, their location, size, etc.

almost always refers to the 512-byte sector or partition sector of a disk

consists of:

  • Partition table

(describes up to 4 physical partitions)

  • Master boot code

(a small part of code; is loaded into the BIOS and executes to initiate the system's boot process)

used for:

  • holding a partition table

only one partition of type 0xEE (EFI_GPT_DISK), which reserves the whole disk for the GPT structure

(provides compatibility with legacy tools that don't understand GPT format)

ADVANTAGES:

  • supports up to 128 partitions and uses 64-bit Logical Block Addresses (LBAs)
  • maximum partition size from 2 TiB to 8 ZiB
  • provides primary and backup partition tables for redundancy

Boot & Boot types ✔✔booting:

  • the process of starting resetting OS when the user turns ON a computer
  • loads the OS from disk to RAM

TYPES:

  1. Cold boot (aka. Hard boot)

starting a computer from a powered-down or off state

  1. Warm boot (aka. Soft boot)

restarting a computer that is already turn on through the OS

Essential windows system files ✔✔- Ntoskrnl.exe

executive and kernel

  • Ntkrnlpa.exe

executive and kernel with support for Physical Address Extension (PAE)

  • Hal.dll

hardware abstraction layer

  • Win32k.sys

kernel-mode part of the Win32 susbsystem

  • Ntdll.dll
  1. computer's firware scans boot disk and loads the MBR, which searches for basic boot information in Boot COnfiguration Data (BCD)
  2. MBR triggers Bootmgr.exe, which locates Windows loader (Winload.exe) on the Windows boot partition and triggers Winload.exe
  3. Windows loader loads the OS kernel (ntoskrnl.exe)
  4. Winload.exe loads HAL.DLL, which are boot-class device drivers marked as BOOT_START and the SYSTEM registry hive into the memory
  5. Kernel passes control of boot process to the Session Manager Process (SMSS.exe), which loads all other registry hives and drivers required to configure Win32 subsystem run environment
  6. Session Manager Process triggers Winlogon.exe, which presents the user logon screen for user authorization
  1. Session Manager Process initiates Service control manager, which starts all the services, rest of the non-essential device drivers, the security subsystem LSASS.exe and Group policy scripts
  2. Once user logs in, Windows creates a session for the user
  3. Service control manager starts the Explorer.exe and initiates the Desktop Window Manager (DMW) process, which sets up the desktop for the user.

Boot process:

Windows:

UEFI ✔✔1. CPU IN PROTECTED MODE:

a. SEC (Security) phase

initialize firmware

b. PEI (Pre-EFI Initialization) phase

initialize low-level hardware

c. DXE (driver Execution Environment) phase