Skip to main content
Imagine a server that’s low on memory and starts swapping heavily. Disk space fills up and a file system needs to be extended. A new disk is added and must be integrated without downtime. A network share becomes unavailable and the system hangs during boot. These are common, real-world storage problems administrators face every day. This lesson teaches practical, foundational techniques for diagnosing and resolving these issues: basic storage concepts, swap space management, LVM logical volumes, and working with network-attached storage. Finally, you’ll learn how to avoid boot-time failures by using autofs for NFS automounting.
A dark-themed overview slide showing a vertical list of storage topics (Basic storage, Managing Swap Space, Logical Volumes, Working with Network Attached Storage, Configuring autofs for NFS automounting). The word "Overview" is prominent on the left and a small "Copyright KodeKloud" appears in the corner.

Why storage fundamentals matter

Before jumping into LVM, RAID, or network storage, you must understand how Linux represents and layers storage. That foundation makes troubleshooting predictable and efficient. Storage in Linux is layered:
  • Physical layer: SSDs / HDDs where bits are stored.
  • Protocols: ATA, SCSI, Fibre Channel used to communicate with hardware.
  • Logical layer: device-mapper, LVM, RAID, MPIO — abstractions that combine or transform physical disks.
  • Block devices: /dev/sda, /dev/mapper/* — the system’s presentable devices.
  • File systems: XFS, ext4, Btrfs, VFAT — where files and directories live.
Knowing how these layers interact helps you choose the right tools and avoid mistakes when resizing, replacing, or troubleshooting storage.
A dark-themed infographic titled "Storage Stack" showing layered storage architecture. Each layer lists components like Cluster/Traditional/Btrfs file systems, block device files, device-mapper (LVM/DM‑RAID/MD/MPIO), ATA/SCSI/FC protocols, and SSDs.

Disk partitioning basics (MBR vs GPT)

Most disks need a partition table before you create filesystems or use LVM. Two common partition table formats are MBR (msdos) and GPT.
A side-by-side infographic comparing MBR and GPT partition layouts, with MBR on the left showing a few primary/logical partitions and a 2 TB limit, and GPT on the right showing many partitions (127) and a 9.2 ZB disk capacity.
Key differences: Use GPT for modern systems and large disks. Use MBR only for legacy compatibility.

Inspecting block devices

Before changing anything, always inspect what the kernel currently sees. Useful lsblk commands:
Run these as root or with sudo so device information is complete.

Partitioning with parted

On RHEL-based systems, parted is a common tool for creating and modifying partition tables and partitions. Common parted interactive commands: Always back up important data before modifying partition tables.

Choosing a file system

After partitioning, format partitions with a filesystem. Choose based on workload, compatibility, and performance.
A dark-themed infographic titled "Filesystems" showing four tiles for XFS, Ext4, Ext3, and VFAT. Each tile includes a short description like "High-performance large storage," "Reliable general-purpose filesystem," "Legacy Linux filesystem," and "Cross-platform USB filesystem."
Comparison at a glance: Formatting examples:
Note: mkfs.vfat without -F 32 can produce FAT12/FAT16 on small media—use -F 32 for FAT32.
Always run filesystem creation commands on the correct device. A small typo (e.g., /dev/sdb1 vs /dev/sda1) can overwrite data irrecoverably. Back up important data before formatting.

Mounting filesystems and persistent mounts

A newly formatted partition must be mounted to be accessible.
  • mount /dev/sdb1 /mnt/mydisk mounts manually (not persistent).
  • To mount automatically on boot, add entries to /etc/fstab.
Each non-comment line in /etc/fstab contains six fields:
  1. Device (or UUID= or LABEL=)
  2. Mount point
  3. Filesystem type (e.g., xfs, ext4, swap)
  4. Mount options (comma-separated; use defaults for typical behavior)
  5. Dump (0 or 1 — used by dump utility)
  6. Pass (fsck order at boot: 0 = skip, 1 = root, 2 = other filesystems)
Example entries:
Why use UUIDs? Device names such as /dev/sdb can change after hardware re-enumeration or when adding new disks. Using UUID= makes mounts stable across reboots.
Do not place network mounts (NFS, CIFS) in /etc/fstab with required (defaults) options without testing. If the network resource is unavailable at boot, the system can hang waiting for the mount. Use autofs or noauto,x-systemd.automount options to avoid boot hangs. This lesson covers configuring autofs for safe NFS automounting.

Quick references and further reading

With these fundamentals in place — knowing how disks, partitions, block devices, and filesystems relate — you’ll be ready to manage swap, create and resize LVM volumes, and safely work with network-attached storage (including using autofs to prevent boot failures).

Watch Video