Computer Storage Fundamentals: Drives, Memory, and File Systems
Storage Units and Drive Allocation
Physical and Logical Storage Devices
- Physical Drive Storage Device Hardware: Hard Disk (HD), Reader, Recorder, Pen drive, etc.
- Logical Drive Storage: The method used to access a physical drive.
Windows Drive Letter Allocation
Standard allocation of letters in Windows:
A:andB:: Floppy drives (Diskettes).C:: Primary Hard Drive partition (often containing the OS).D:: Subsequent Hard Disk partition or CD/DVD Reader/Writer.E:: Second Reader/Writer (used for mounting images like.iso,.nrg,.cue/bin,.mds/mdf, often via virtual drive tools like Daemon Tools).F:,G:,H:: Removable media (Pen drives, SD Units).- Network Drives: Logical drives mapped to a network path.
Additional Storage Concepts
- File / Directory
- Folders / Subdirectories
- Files
Operating System Memory Management (Section 4.3)
- Formerly: Management in real mode (memory in 3 layers).
- Currently: Management in protected mode (linear memory).
Factors Determining Installed Memory
The amount of memory installed is determined by:
- Financial reasons (cost).
- Hardware reasons (motherboard limitations).
- OS software reasons (Operating System limitations).
Organization of Storage Space (Section 4.4)
The structure of a storage unit:
- Physical Structure: Related to manufacturing material (e.g., ferrite cores, SSD). Defined by faces, tracks/side, and sectors/track.
- Logical Structure: The data structure that allows the system to work with the storage unit.
Creating a Logical Structure
A logical structure is created through formatting (high-level formatting).
Legacy Tools (MS-DOS, Windows 95/98/ME):
FDISKandFORMAT(used for file systems like FAT32, NTFS).
Modern Tools (Windows XP, Vista, Proprietary):
- Built-in proprietary tools.
Unix/Linux Tools:
FIPS(First Interactive Partition Splitter).
Third-Party Tools:
- Partition Magic
- Paragon Partition Manager
- Partition Commander
Physical Structure of a Hard Disk (4.4.1)
Sides (Heads)
The opposing surface of each magnetic platter.
Tracks (Cylinders)
Concentric circles that divide a face. A Cylinder is formed by identical tracks across different platters.
Sectors (Physical Blocks)
The minimum amount of information read or written in one operation.
- The sector is the fundamental allocation unit.
- Standard Sector Size: 512 bytes (historically used for floppies and HDs) or 4096 bytes (Advanced Format).
Logical Structure of the Hard Disk (4.4.2)
The logical structure consists of:
- Boot Sector
- File Allocation Table (FAT)
- Root Directory
- Data Zone
The actual unit of space allocation used by the OS is the Cluster.
Components of the Logical Structure
Boot Sector
- Located in disk sector 0.
- Occupies an entire sector.
- Contains a mini-program to load the Operating System.
- Contains the BIOS Parameter Block (BPB), which holds disk information.
File Allocation Table (FAT)
- Specifies which cluster belongs to which file.
- Contains as many entries as there are clusters on the disk.
Root Directory
Fixed length, typically stored immediately after the FAT.
Data Area
The main area where file content is stored.
Disk Partitions (4.4.3)
Partitioning: The logical division of a hard disk into portions (partitions), each capable of containing an OS or data.
- Primary Partitions: Up to four allowed. Designed to contain an Operating System.
- Extended Partition: Acts as a container (often considered the fifth primary partition slot). It is divisible into multiple logical partitions.
- Logical Partitions: Individual partitions contained within the Extended Partition.
Active Partition and Bootloaders
- Active Partition: The partition the system looks at first during boot-up.
- Configuration: The active partition can be configured using:
- Boot Drive Programs:
FDISK,efdisk. - Bootloader Software:
- OS Native:
Boot.ini(Windows),LILO,GRUB,SILO(Linux/Unix). - Commercial: GAG, BootMagic.
- OS Native:
- Boot Drive Programs:
File Systems and Path Definition (Section 4.5)
Introduction to File Systems (FS)
- The File System (FS) defines the structure of information stored on the storage unit.
- The FS depends on the Operating System used.
- The choice of FS is decided at the time of formatting.
Defining the File Path (4.5.2)
The Path defines the location of a file within the hierarchy of the file system.
The Path can be determined:
- Graphically (using a file explorer).
- Textually (using command line or URL structure).
Textual Path Examples
- Windows:
Drive:\Directory\Subdirectory\filename.ext - Linux/Unix:
/user/cramirez/c2/examens.1etrim - Network/Web:
- Local Network Path:
\\machine_name\users\practices_p1.txt(file://///nombre_maquina/usuarios/practicas_p1.txt) - Web URL: http://domain/folder/start.html
- Local Network Path:
