Storage devices and drivers

4.2 Understanding Computer Hardware (Weight: 2)

📘Linux Essentials (LPI 010-160)


1. Types of Storage Devices

There are several types of storage devices you need to know for the exam:

a) Hard Disk Drives (HDDs)

  • Traditional magnetic storage.
  • Uses spinning disks (platters) and a read/write head to access data.
  • Key points:
    • Stores large amounts of data at a lower cost.
    • Slower than SSDs.
    • Common in servers and desktops for mass storage.
  • Use in IT: Good for storing backups, logs, and large datasets in a server environment.

b) Solid State Drives (SSDs)

  • Uses flash memory (no moving parts).
  • Key points:
    • Much faster than HDDs.
    • More expensive per GB than HDDs.
    • Less prone to mechanical failure.
  • Use in IT: Often used for OS drives, databases, and applications needing high speed.

c) Hybrid Drives

  • Combines SSD and HDD features.
  • Key points:
    • Frequently used data stored on SSD for speed.
    • Large capacity stored on HDD for cost efficiency.
  • Use in IT: Can be used in small servers or office desktops where performance matters but budget is limited.

d) Optical Drives

  • Uses CDs, DVDs, or Blu-ray disks.
  • Key points:
    • Less common now.
    • Mostly for installation media, archival storage.
  • Use in IT: Rarely used; mainly for legacy software installations or offline backup.

e) USB Flash Drives

  • Portable flash memory devices.
  • Key points:
    • Easy to move data between computers.
    • Limited capacity compared to HDD/SSD.
  • Use in IT: Transferring small files, emergency boot drives.

f) Network-Attached Storage (NAS)

  • A storage device connected to a network.
  • Key points:
    • Provides file sharing for multiple users over LAN.
    • Often has RAID configurations for redundancy.
  • Use in IT: Central storage for office files, backups, or multimedia storage.

g) Storage Area Network (SAN)

  • A high-speed network that provides block-level storage to servers.
  • Key points:
    • Can be very large, enterprise-level storage.
    • Accessed by servers as if it were local storage.
  • Use in IT: Datacenters, cloud infrastructure, high-performance applications.

2. Storage Device Interfaces

Storage devices connect to the computer through interfaces. Key ones:

  1. SATA (Serial ATA)
    • Common for HDDs and SSDs in desktops.
    • Moderate speed.
    • Easy to install.
  2. NVMe (Non-Volatile Memory Express)
    • Connects SSDs directly via PCIe slots.
    • Very fast data transfer.
    • Used in servers and high-performance desktops.
  3. USB
    • External storage devices.
    • Can be USB 2.0, 3.0, 3.1, or USB-C with varying speeds.
  4. Network Interfaces
    • NAS devices connect via Ethernet (1Gbps or 10Gbps).
    • SAN often uses Fibre Channel or iSCSI protocols.

3. Storage Drivers

A driver is a small program that allows the operating system to communicate with the storage hardware. Without a proper driver, Linux cannot use the device correctly.

  • Linux often has built-in drivers for most storage devices.
  • Common types of drivers in Linux:
    1. SCSI Drivers – for traditional hard drives, SSDs, and SAN devices.
    2. ATA/SATA Drivers – for desktop and laptop storage devices.
    3. NVMe Drivers – for modern SSDs.
    4. USB Storage Drivers – for USB flash drives and external hard drives.
    5. Network Storage Drivers – for NAS (NFS, SMB/CIFS) and SAN (iSCSI, Fibre Channel).
  • Linux uses a device file system (/dev) to represent storage devices, like:
    • /dev/sda – first hard drive
    • /dev/sdb – second hard drive
    • /dev/nvme0n1 – first NVMe drive

4. Key Concepts to Remember

  1. Block vs. Character Devices
    • Block devices: Store data in blocks (HDD, SSD) → you can read/write random blocks.
    • Character devices: Data is read/written as a stream (keyboard, mouse). Not used for storage but sometimes related to storage drivers.
  2. Mounting
    • Storage must be mounted to use in Linux.
    • Example: mount /dev/sda1 /mnt/data – attaches the device to /mnt/data.
  3. File Systems
    • Storage devices store data in file systems (ext4, XFS, FAT32, NTFS).
    • Drivers allow the OS to read/write these file systems.
  4. Device Detection
    • Linux detects devices automatically via udev and loads the proper driver.
    • You can see detected devices with lsblk, fdisk -l, or dmesg.

5. Exam Tips

  • Know the difference between HDD, SSD, NVMe, USB, NAS, and SAN.
  • Understand why drivers are needed and the role of Linux device files.
  • Remember common commands:
    • lsblk → lists all storage devices
    • fdisk -l → shows partitions
    • mount → attaches storage to filesystem
    • dmesg | grep -i storage → shows storage detection messages
  • Be familiar with storage interfaces: SATA, NVMe, USB, Ethernet for NAS/SAN.

Summary Table:

Device TypeSpeedCostUse in ITLinux Driver
HDDMediumLowMass storage, backupSATA/SCSI
SSDHighMedium/HighOS, DB, appsSATA/NVMe
NVMe SSDVery HighHighHigh-performance appsNVMe
USB FlashMediumLowPortable storageUSB storage
NASMediumMedium/HighShared network storageNFS/SMB/CIFS
SANVery HighHighDatacenter block storageiSCSI/Fibre Channel
Buy Me a Coffee