• Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
logo logo
  • Home
  • Cloud VPS
    • Hong Kong VPS
    • US VPS
  • Dedicated Servers
    • Hong Kong Servers
    • US Servers
    • Singapore Servers
    • Japan Servers
  • Company
    • Contact Us
    • Blog
ENEN
  • 简体简体
  • 繁體繁體
Client Area

Ubuntu Filesystem Layout and Storage Management

February 8, 2026

Ubuntu adheres strictly to the Filesystem Hierarchy Standard (FHS) — the same specification that governs most modern Linux distributions. This standardized layout ensures predictability, portability of scripts and tools, support for read-only root filesystems in embedded/container scenarios, and clean separation between static/shareable content and variable/machine-specific data.

While the core hierarchy is identical between Ubuntu Desktop and Ubuntu Server, practical differences emerge in defaults (e.g., partitioning schemes, mounted volumes, and filesystem choices during installation). This article explains the FHS layout in depth, highlights Ubuntu-specific conventions (as of 24.04 LTS through 25.10+ in 2026), and covers modern storage management approaches including LVM, Btrfs, and ZFS.

1. The Filesystem Hierarchy Standard (FHS) – Core Principles

FHS (latest version 3.0 from 2015, still current in 2026) classifies directories along two orthogonal axes:

  • Shareable vs Unshareable Shareable files can be placed on NFS-exported or read-only media shared across hosts (e.g., /usr, /opt). Unshareable files are host-specific (e.g., /etc, /var).
  • Static vs Variable Static content rarely changes (binaries, libraries, documentation). Variable content changes during normal operation (logs, spool, runtime state).

This classification enables advanced setups: read-only /usr mounted from network or squashfs, /var on tmpfs or separate partition, etc.

2. Key Directories in Ubuntu (FHS + systemd conventions)

DirectoryPurpose & ContentsShareable?Static?Ubuntu Notes (2024–2026)
/Root of the entire hierarchy; minimal set required for bootingNoMixedUsually on separate partition; often LUKS-encrypted
/binEssential user command binaries (ls, cat, cp, etc.)YesYesMerged into /usr/bin since systemd merge (/bin → symlink)
/bootKernel images, initramfs, GRUB config; often unencrypted even on encrypted rootNoYesSeparate partition recommended (FAT32 for EFI)
/devDevice nodes (managed by udev); dynamicNoNotmpfs or devtmpfs
/etcHost-specific configuration files (passwd, fstab, netplan YAML, systemd units)NoMostlyCritical; backup regularly
/homeUser home directories; personal files & settingsNoNoOften on separate partition or LVM LV for easy resize
/libEssential shared libraries & kernel modulesYesYesMerged into /usr/lib
/mediaMount point for removable media (USB drives, CDs)NoNoManaged by udisks/automount
/mntTemporary mount point for sysadmin useNoNoLegacy; prefer /media or custom mounts
/optOptional/add-on software packages (e.g., third-party vendor installs)YesYesCommon for manually installed tools
/procVirtual filesystem with process & kernel infoNoNoprocfs; kernel-generated
/rootHome directory for the root userNoNoNot /home/root
/runRuntime variable data (PIDs, sockets, lock files); cleared on rebootNoNotmpfs by default (systemd requirement)
/sbinEssential system binaries (fsck, ifconfig, reboot)YesYesMerged into /usr/sbin
/srvData served by the system (www, ftp, rsync, cvs repos)YesNoUnderused; good for separation
/sysVirtual filesystem exposing kernel device tree & sysfsNoNosysfs; kernel-generated
/tmpTemporary files; cleared on reboot (systemd-tmpfiles)NoNotmpfs by default since ~18.04
/usrRead-only, shareable hierarchy (binaries, libs, man pages, share)YesYesCan be mounted read-only; growing merger with /
/varVariable data (logs, spool, caches, databases)NoNoFrequently on separate partition or tmpfs subdirs

Important modern convention (systemd era): Many traditional root-level directories (/bin, /sbin, /lib, /lib64) are now symlinks into their /usr counterparts. This usr-merge simplifies packaging, initramfs, and allows fully stateless /usr.

3. Ubuntu-Specific Layout Nuances

  • Server vs Desktop The FHS layout is identical. Differences are in:
    • Installation partitioning defaults (Server uses subiquity guided storage → more LVM/flexible options; Desktop favors simplicity).
    • Default renderer for networking (Netplan + systemd-networkd on Server; NetworkManager on Desktop).
    • Preinstalled packages and services (snapd more prominent on Desktop).
    • /home often encrypted/separate on Desktop installs; Server tends toward minimal / + /boot + optional data LVs.
  • /snap directory Canonical-specific: contains mounted squashfs images for Snap packages. Appears after first snap install. Not part of FHS but ubiquitous on Ubuntu.
  • /var/lib/snapd and /var/snap Snap metadata and per-snap writable areas.

4. Storage Management on Ubuntu Servers

Ubuntu supports multiple layers for flexible, resilient storage:

  • Traditional partitioning Simple, fast, predictable. Use for boot-critical areas (/boot/efi, /boot).
  • LVM (Logical Volume Manager) Most common server choice. Advantages: online resize of logical volumes, thin provisioning, snapshots (copy-on-write), easy addition of PVs. Typical layout: /boot separate → LVM VG containing root LV + data LVs. Snapshots useful for backups or testing upgrades.
  • Btrfs Modern CoW filesystem with built-in RAID-0/1/10, snapshots, subvolumes, compression (zstd), transparent checksumming. Strengths: easy snapshot-based rollback (Ubuntu supports subvolume layout like @, @home), send/receive for backups. Weaknesses: RAID-5/6 still considered experimental/unstable in 2026; higher CPU/memory overhead than ext4. Best for: home servers, development, workstations needing snapshots; avoid for critical production RAID-5/6 arrays.
  • ZFS (via zfsutils-linux or OpenZFS) Advanced CoW filesystem with native RAID-Z (similar to RAID-5/6 but self-healing), compression, deduplication, snapshots, send/receive. Strengths: exceptional data integrity (checksums + self-healing), mature RAID-Z, ARC caching. Weaknesses: higher RAM usage (especially with dedup), CDDL license (not mainline kernel), slightly more complex administration. Best for: NAS/file servers, backup repositories, environments prioritizing integrity over raw write speed.

2026 Recommendation Landscape

  • General-purpose server → ext4 on LVM (predictable, mature, low overhead).
  • Data integrity critical (NAS, archival) → ZFS (preferred over Btrfs for production RAID).
  • Snapshot-heavy workflows (dev/test, rollbacks) → Btrfs with subvolumes.
  • Cloud/VM hosts → ext4 or XFS on LVM (thin LVs for VM disks).

Summary: Mental Model

Think of the Ubuntu filesystem as three layers:

  1. FHS root hierarchy — static rules for where things live (shareable/static vs unshareable/variable).
  2. Physical/logical storage — partitions, LVM VGs/PVs/LVs, mdadm RAID, or native RAID (ZFS/Btrfs).
  3. Mount points & options — /etc/fstab or systemd .mount units control how/when filesystems are mounted (noatime, compress, discard for SSDs).

Mastering this separation lets you design resilient layouts: small /boot (unencrypted), encrypted root on LVM or ZFS, large /var or /srv on separate volumes/filesystems, /home snapshotted or backed up independently.

Whether you’re hardening a production server or building a home NAS, the FHS provides the predictability — while LVM/ZFS/Btrfs give you the flexibility to adapt storage to workload demands without breaking conventions.

Leave a Reply

You must be logged in to post a comment.

Recent Posts

  • Automating Ubuntu Server Provisioning
  • Ubuntu in Virtual Machines and Containers: Configuration and Optimization
  • Troubleshooting Boot and Startup Issues on Ubuntu – Deeper Technical Perspective
  • Monitoring and Observability on Ubuntu Servers – A Deeper Technical Perspective
  • Kernel Management on Ubuntu: Updates, Modules, and Parameters

Recent Comments

No comments to show.

Knowledge Base

Access detailed guides, tutorials, and resources.

Live Chat

Get instant help 24/7 from our support team.

Send Ticket

Our team typically responds within 10 minutes.

logo
Alipay Cc-paypal Cc-stripe Cc-visa Cc-mastercard Bitcoin
Cloud VPS
  • Hong Kong VPS
  • US VPS
Dedicated Servers
  • Hong Kong Servers
  • US Servers
  • Singapore Servers
  • Japan Servers
More
  • Contact Us
  • Blog
  • Legal
© 2026 Server.HK | Hosting Limited, Hong Kong | Company Registration No. 77008912
Telegram
Telegram @ServerHKBot