Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

2.2.3. RAID, Mounted Storage, and Network Filesystems

💡 First Principle: RAID (Redundant Array of Independent Disks) distributes data across multiple disks to achieve redundancy, performance, or both. Software RAID in Linux is managed by the kernel's md (multiple devices) driver — it works independently of the hardware, meaning the RAID survives disk controller replacement.

Common RAID Levels:
RAID LevelDisks RequiredRedundancyPerformanceUse Case
RAID 02+NoneRead/write boostTemp data, speed critical
RAID 121 disk failureRead boostBoot drives, critical data
RAID 53+1 disk failureGood readGeneral file servers
RAID 64+2 disk failuresGood readLarge arrays, archive
RAID 104+1 per mirrorExcellentDatabases, high I/O
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb /dev/sdc
mdadm --detail /dev/md0            # Status and member disk health
cat /proc/mdstat                   # Quick status of all MD arrays
mdadm --manage /dev/md0 --add /dev/sdd   # Add a hot spare or replacement
mdadm --assemble --scan            # Auto-assemble all arrays at boot
Mount Operations and /etc/fstab:

Mounting makes a filesystem accessible at a directory (the mount point). Persistent mounts are configured in /etc/fstab — the system reads this file at boot to mount all configured filesystems.

mount /dev/sdb1 /mnt/data          # Temporary mount
umount /mnt/data                   # Unmount (or umount /dev/sdb1)
mount -a                           # Mount all entries in /etc/fstab
findmnt                            # Show mounted filesystems as tree

fstab Format: device mountpoint fstype options dump pass

# /etc/fstab entries
UUID=abc123 /data ext4 defaults 0 2
/dev/vg_data/lv_home /home xfs defaults,noatime 0 0
192.168.1.10:/export/share /mnt/nfs nfs defaults,_netdev 0 0
//server/share /mnt/smb cifs credentials=/etc/samba/creds,uid=1000 0 0
Key fstab Mount Options:
OptionEffect
noatimeDon't update access time on reads — significant performance boost
noexecPrevent executing binaries from this filesystem
nosuidIgnore setuid/setgid bits — security hardening
nodevIgnore device files — security hardening
nofailContinue booting even if this mount fails
_netdevWait for network before mounting (NFS, CIFS)
ro / rwRead-only or read-write
remountChange options on an already-mounted filesystem

autofs: Mounts filesystems on-demand when accessed, unmounts them after idle. Useful for NFS home directories — the mount only appears when a user logs in.

# /etc/auto.master
/home /etc/auto.home

# /etc/auto.home
* -rw,soft,intr nfsserver:/home/&
Network Filesystems:
  • NFS (Network File System): Linux-native network filesystem. Client-side: mount -t nfs server:/path /mnt/point. Server-side: configured via /etc/exports. Uses TCP/UDP port 2049.
  • SMB/CIFS (Samba): Windows-compatible file sharing. Mount with -t cifs. Requires cifs-utils package. Samba provides both SMB server and AD integration on Linux.

⚠️ Exam Trap: Entries in /etc/fstab without the _netdev option for network filesystems (NFS, CIFS) will cause boot failures when the network is unavailable — the system will hang waiting for the mount. Always use _netdev for network-backed storage.

Reflection Question: A server boots slowly and eventually drops to emergency mode with "Failed to mount /mnt/nfs." The NFS server was unreachable during boot. What two fstab options would prevent this behavior while keeping the mount configured?

See how it connects
Alvin Varughese
Written byAlvin Varughese
Founder20 professional certifications