Use it when the root filesystem is full, read-only, or the system fails to boot because / cannot be mounted.
/
/ is the root of the filesystem tree; the root filesystem holds the system and is mounted first at boot.
1. ls -ld / and findmnt / — present and mounted where expected?
2. df -h / — space left? df -i / — inodes left?
3. Find large or unexpected content: du -xh --max-depth=1 / | sort -h | tail.
4. Permissions and owner as the FHS and services expect?
5. Fix space, permissions or mount, then retest the service.
/ mounted (or virtual) → correct owner and permissions → enough space → services read and write as intended
For Filesystem → /, continue with the first unproven Topic check: Capture mount-namespace identity and the mount source/type for /. If that boundary is healthy, advance to the adjacent check: Check whether the target path crosses child mount points before interpreting capacity or ownership. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
process namespace → root mount / → child path components → child mount crossings → final object/inode → operation → workload result
Healthy evidence: the process namespace, backing root mount and child mount crossings are explicit and the target operation resolves to the intended object.
Step 2 Verification and output interpretation Verify boundary
Use stat-style inode/type/ownership data, mount information, link resolution and filesystem-specific status rather than relying on ls output alone. For a changed file, confirm the consumer reopened/reloaded it when required; an already-open descriptor can continue referencing the previous inode after rename or replacement.
Existing fast checks for this Topic. - Capture mount-namespace identity and the mount source/type for /.
- Check whether the target path crosses child mount points before interpreting capacity or ownership.
- Differentiate the visible root tree from host/container/chroot and lower block-device identities.
- Verify the original path operation from the same namespace after any mount or recovery action.
Verification chain. process namespace → root mount / → child path components → child mount crossings → final object/inode → operation → workload result
Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary.
Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Interpret command output as a snapshot from a specific namespace, PID/session, boot, network namespace, mount namespace, user identity or service context. A successful parser/config validation shows syntax and some semantics; it does not by itself show that runtime state changed or that the original workload path now succeeds.
Step 3 Verification path Verify boundary
First capture distribution/release, kernel and exact object identity. Third inspect current kernel/userspace runtime state and dependencies. Fourth read native logs/counters.
Primary bounded procedure: Run a bounded Filesystem → / verification on one explicit host/object: capture release/kernel and exact identity; read persistent intent; inspect the responsible kernel/service/filesystem/network/security runtime state; execute one safe negative or boundary case where applicable; then verify the original consumer-visible operation independently.
Exercise one safe negative or boundary case implied by missing device, stale UUID, degraded RAID, inactive LV, thin-pool exhaustion, read-only filesystem, mount namespace mismatch, full blocks/inodes or permission/MAC denial. If a command times out or the shell/session disconnects, re-read current state before retrying; package/service/network/storage operations can complete after the initiating client stops waiting, and blind retries can create conflicting state.
For replicated, multi-interface, multi-path, multi-unit or namespace/container behavior, enumerate every expected member rather than accepting one healthy instance as closure. Verify boot persistence when the Topic is persistent by design, but do not reboot merely to test unless the change specifically owns boot/initramfs behavior.
Verification is insufficient when it shows only command success, file presence, active/running service, mount existence, route presence or a single localhost test. For Filesystem → /, evidence must connect persistent intent through the responsible kernel/userspace layer to the consumer-visible result and explain any mismatch.
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: / is confused with /root, host and container roots are conflated, or df/free-space evidence for / is applied to a path on a separate child mount.
It does not show behavior outside the captured namespace, mount, inode/object, authorization, backing-resource or consumer scope. Knowing what backs / shows the namespace root only, but it does not show child mounts, user identity, application data placement or lower-device health.
Next check: Continue from the first step that has not been verified: preserve the same process mount namespace, resolve the path and mount crossings, identify the exact object/inode or live pseudo/device endpoint, inspect effective access/capacity, then repeat the original consumer operation before changing unrelated filesystem state.
Step 5 Branching troubleshooting Narrow the fault
Concrete boundaries: process credentials/namespace → path/mount lookup → DAC/ACL/LSM → filesystem metadata → block/device/backend → completion/read-back. IF the prerequisite/input boundary is wrong, THEN stop and repair that prerequisite before interpreting downstream state. ELSE IF input is correct but owner state is transitional or stalled, THEN inspect the state-machine owner, timer/retry/error reason and whether progress changes between samples. ELSE IF local/control state is healthy but the operation still fails, THEN move to effective/programmed state and the next consumer/data path. Finally repeat the original test from the original source and verify return/dependency behavior before closure.
Step 6 Where it fails Narrow the fault
Walk hardware/block device → kernel driver/mapper/RAID/LVM → filesystem → mount namespace/options → path permissions/MAC → consumer I/O and stop where observed state diverges.
Common failure classes are missing device, stale UUID, degraded RAID, inactive LV, thin-pool exhaustion, read-only filesystem, mount namespace mismatch, full blocks/inodes or permission/MAC denial. Also consider stale generated config, wrong environment, wrong namespace/chroot/container, package/provider mismatch, dependency ordering, immutable/read-only mounts, exhausted inode/block resources, capabilities, SELinux/AppArmor denial, systemd sandboxing, cgroup limits and boot-time state that differs from the interactive shell.
Do not infer root cause from one symptom. Connection refused can be process, socket binding, namespace, firewall or routing; permission denied can be Unix mode/ACL, mount option, capability or MAC policy; a full filesystem can be blocks, inodes, deleted-open files, snapshots or thin-pool exhaustion. Correlate native state across the responsible layers.
Avoid high-blast-radius shortcuts such as recursive permission widening, global firewall/MAC disablement, deleting lock/state files, force-killing unrelated processes, fsck on mounted filesystems or rebooting before capturing causal state. Such actions can erase evidence or widen impact.
Closure requires persistent intent and active runtime to agree, with restart/reload/reboot debt explicit.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
A full / breaks logins, package updates and services. A read-only / after boot usually means filesystem errors — check dmesg. Keep large, growing data (logs, databases, containers) on separate filesystems or watch them.
ls -ld <path>— owner, permissions and typestat <path>— inode, links, size and timestampsdf -h <path>— filesystem and free spacefindmnt <path>— which mount the path is on
ReferenceWhat it is1 section · depth on demand
Core model
Identify the process mount namespace, resolve what is mounted as / in that namespace, then trace child mount points and the final path. In containers, chroots and recovery environments, / may represent a different filesystem tree from the host. Keep root filesystem identity separate from root user identity and from the backing block-device topology.
ReferenceWhy it matters1 section · depth on demand
How it works in operation
File access crosses process credentials/namespace, VFS path lookup, mount namespace, DAC/ACL and optional LSM policy, filesystem metadata and block/backend I/O. Permission denial can arise from path traversal, ACL, capabilities or SELinux/AppArmor independently. Keep requested/configured, learned/calculated, effective/programmed and workload-visible states separate.
ReferenceHow it works1 section · depth on demand
How it works
File access crosses process credentials/namespace, VFS path lookup, mount namespace, DAC/ACL and optional LSM policy, filesystem metadata and block/backend I/O. Permission denial can arise from path traversal, ACL, capabilities or SELinux/AppArmor independently. Anchor the exact process namespace, credentials/cgroup and kernel-owned resource because host-global state can differ from the workload context. Separate desired/requested state from learned or calculated state, effective/programmed state and workload-visible outcome.
ReferenceImportant terms & boundaries7 sections · depth on demand
What this shows and what it does not
Knowing what backs / shows the namespace root only, but it does not show child mounts, user identity, application data placement or lower-device health.
In depth
The root directory and the root file system
/ is where the whole tree starts, as the hier(7) manual page puts it, and the root file system mounted there must contain everything needed to boot. Other file systems are mounted into it at directories such as /home, /var or /srv. A mount point hides whatever the underlying directory contained, until it's unmounted.
What must be on the root file system
| Needed early | Where |
|---|---|
/etc (fstab, systemd configuration) | Always on root |
/usr (with merged /usr: all programs) | On root, or mounted by the initramfs |
/dev, /proc, /sys, /run | Virtual: created at boot |
/boot | Often a separate small partition |
Common partitioning choices
| Separate file system | Reason |
|---|---|
/boot (and /boot/efi) | The boot loader must read it; often unencrypted |
/var or /var/log | Logs or databases filling up can't fill root |
/home | Reinstall without touching user data |
/srv, /var/lib/<app> | Application data on its own disk or LV |
/tmp | tmpfs in memory, or a size-limited file system |
Full root file system
A full root file system breaks logins, package updates and services in confusing ways. Most file systems keep about 5 % reserved for root (ext4: tune2fs -m), so services running as root can still write a little more after regular users are refused.
host$ findmnt --real -o TARGET,SOURCE,FSTYPE,SIZE,USE%
TARGET SOURCE FSTYPE SIZE USE%
/ /dev/mapper/vg0-root xfs 30G 71%
/boot /dev/nvme0n1p2 ext4 974M 28%
/boot/efi /dev/nvme0n1p1 vfat 511M 2%
/var/log /dev/mapper/vg0-log xfs 10G 38%
/srv /dev/mapper/vg1-srv xfs 500G 54%
host$ df -i /
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/vg0-root 15M 412K 15M 3% /
host$ sudo mount --bind / /mnt/rootonly && sudo du -sh /mnt/rootonly/var/log; sudo umount /mnt/rootonly
Reading the last command
A bind mount of / shows the root file system without the file systems mounted on top of it. That reveals files that were written to /var/log before the separate log volume was mounted. Those files are invisible normally, but they still use space on root.
Documented example, not captured output.
How it works at runtime
Runtime state ownership and mechanics. Linux filesystem access is mediated by the VFS, path lookup, dentries/inodes, mount namespaces, permissions/LSM checks and the backing filesystem or pseudo-filesystem. Pseudo-filesystems such as /proc, /sys and many entries under /run expose generated runtime state rather than ordinary persistent files.
Topic-specific state model. / is the root directory of a process mount namespace and the starting point for absolute pathname resolution; it is a namespace anchor, not a synonym for the root account, root home directory or necessarily one physical disk/partition.
Technical metadata. Process PID/session/container/chroot and mount-namespace identity, absolute/relative pathname, root mount, path components, mount points and filesystem/source type, symlink target chain, filesystem/device identity, inode number, file type/mode, UID/GID/ACL/security context where relevant, link count, size/timestamps, block and inode capacity, pseudo-filesystem/kernel object identity, device major/minor, process/socket/open-file references, package/service ownership, effective consumer identity and original workload result.
Interpretation rule. - / ≠ /root and ≠ the root user account.
- / in a container/chroot ≠ necessarily the host root filesystem.
- Root filesystem mounted successfully ≠ every child mount beneath it is present.
- Free space reported for / ≠ free space for paths that cross into separate mounts.
Quick reference
The root filesystem / must contain what is needed to boot and mount everything else. Common partitioning for servers: separate /var (logs and data cannot fill root), /var/log and /var/log/audit (CIS), /tmp (with nodev,nosuid,noexec), /home, and data volumes under /srv or /var/lib/<app>.
df -h /
findmnt /
tune2fs -l $(findmnt -no SOURCE /) | grep -i 'reserved block'
A full root filesystem breaks logins, package installs and services — monitor it closely.
Mechanics
The responsible chain spans kernel block/filesystem state, userspace configuration and the mounted/consumer-visible object.
The durable model separates persistent configuration, kernel or service runtime state, namespace/cgroup/security context, filesystem or network object state, logs/counters and the consumer-visible result.
For Filesystem → /, stable identity is host + device/mapper/filesystem/mount identity + namespace + path.
The bounded target is expected durable block/filesystem/mount state and readable/writable consumer path.
Follow the path in order: hardware/block device → kernel driver/mapper/RAID/LVM → filesystem → mount namespace/options → path permissions/MAC → consumer I/O.
It can coexist with wrong namespace, stale cache, permission denial, failed dependency, incorrect persistent config, partial mount/network state or a consumer that still cannot use it.
The operating invariants are: device identity is stable; mappings and filesystem state agree; mount options/namespace are intended; capacity/inodes and read/write semantics are healthy.
Preserve host, distribution/release, kernel, namespace/container, user/group, unit, path/device, interface/address, PID/cgroup and security-label identity where applicable.
Important negative cases include missing device, stale UUID, degraded RAID, inactive LV, thin-pool exhaustion, read-only filesystem, mount namespace mismatch, full blocks/inodes or permission/MAC denial.
Capture the first native stderr, errno, journal/kernel message, exit status or counter before mutation; identify the earliest failing ownership boundary; then verify recovery independently.
Commands
df -h /
du -xsh /* 2>/dev/null | sort -h
Common mistakes
- Letting logs or data fill the root filesystem.
ReferenceConfiguration & state2 sections · depth on demand
Configuration, persistence and lifecycle
Configuration intent and lifecycle. Persistent layout comes from filesystem creation, mount configuration, ownership/mode/ACL/label metadata and service/package conventions.
Persistence boundary. Linux commonly separates package defaults, administrator-owned persistent configuration, generated/transient runtime state and already-running process state. Record the configuration source, include/drop-in precedence, generated output when relevant, and the exact reload/restart/reboot boundary required for the change to become effective.
Lifecycle
Record host/distribution/kernel, exact object identity, dependencies, privilege/security context and rollback point before mutation.
systemd generators and drop-ins, package scripts, udev, mount helpers, netlink, resolver caches, namespaces, SELinux/AppArmor policy and kernel drivers can make runtime state differ from the file or command that appears to own it.
Separate persistent configuration from transient runtime state.
An interactive sysctl, ip route, mount, firewall rule, environment variable or service action can work until reboot while the durable source remains wrong.
Conversely a correct config file may not be loaded because the wrong unit, namespace, initramfs or package/provider owns the active state.
Use bounded changes.
Capture known-good pre-state and native diagnostics, change the smallest owning file/object/unit, validate syntax where supported, reload rather than restart when semantics allow, and re-read runtime state.
Avoid chmod 777, disabling MAC/firewall, recursive deletion, forced filesystem repair or indiscriminate service restarts merely to make a test pass.
Retirement is part of correctness: disable and remove obsolete units/config fragments, detach consumers before unmount/device removal, clean stale credentials/keys/rules only after dependency review, and verify no boot-time or scheduled mechanism recreates the old state.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Filesystem → /. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
/ operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for /.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | / is the root directory of a process mount namespace and the starting point for absolute pathname resolution; it is a namespace anchor, not a synonym for the root account, root home directory or necessarily one physical disk/partition. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin process/container mount namespace → resolve the exact path from / and record every mount crossing → identify final dentry + filesystem/device + inode + file type → capture ownership/mode/ACL and capacity where relevant → map pseudo/device/runtime objects to the live kernel/process endpoint → verify the original consumer read/write/execute/service result. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | process namespace → root mount / → child path components → child mount crossings → final object/inode → operation → workload result | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Knowing what backs / proves the namespace root only; it does not prove child mounts, user identity, application data placement or lower-device health. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated namespace, path and object evidence can establish this Linux Filesystem proof path: process namespace → root mount / → child path components → child mount crossings → final object/inode → operation → workload result | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured namespace, mount, inode/object, authorization, backing-resource or consumer scope. Knowing what backs / proves the namespace root only; it does not prove child mounts, user identity, application data placement or lower-device health. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven boundary: preserve the same process mount namespace, resolve the path and mount crossings, identify the exact object/inode or live pseudo/device endpoint, inspect effective access/capacity, then repeat the original consumer operation before changing unrelated filesystem state. | Continue to the next unresolved boundary while preserving the original test condition. |
/ · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | / |
|---|---|
| Topic path | Filesystem → / |
| Runtime state | / is the root directory of a process mount namespace and the starting point for absolute pathname resolution; it is a namespace anchor, not a synonym for the root account, root home directory or necessarily one physical disk/partition. |
| Fast checks | - Capture mount-namespace identity and the mount source/type for /. - Check whether the target path crosses child mount points before interpreting capacity or ownership. - Differentiate the visible root tree from host/container/chroot and lower block-device identities. - Verify the original path operation from the same namespace after any mount or recovery action. |
| Verification chain | process namespace → root mount / → child path components → child mount crossings → final object/inode → operation → workload result Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | Knowing what backs / proves the namespace root only; it does not prove child mounts, user identity, application data placement or lower-device health. Boundary chain: process credentials/namespace → path/mount lookup → DAC/ACL/LSM → filesystem metadata → block/device/backend → completion/read-back. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |
Deep reference
Healthy vs suspicious evidence
Output interpretation
Capture host, distribution/kernel, namespace/container, exact user/unit/path/device/interface/PID identity, timestamp, native state/reason, exit status or errno, relevant counters and the independent read-back result.
Minimum semantic fields are Topic path, target identity, persistent intent, owning provider/unit/kernel object, runtime state, dependency state, native diagnostic, changed fields and consumer-visible verification.
Treat absent, inactive, failed, degraded, masked, blocked, permission-denied, read-only, stale, unmounted, unresolved, unreachable, timed-out, killed, OOM, enforcing/denied and unknown as distinct states.
A zero exit status or successful config parse does not by itself show the intended Linux behavior.
For collections of units, mounts, routes, interfaces, packages, processes, paths or rules, retain per-item results.
Aggregate totals can hide one stale unit, one failed path, one interface in the wrong namespace or one policy rule shadowing another.
Preserve before/after deltas for counters and timestamps when the test depends on activity.
Known-good output here is a semantic interpretation contract, not fabricated terminal output: The intended Linux object is uniquely selected; persistent configuration and active runtime agree; required kernel/service, filesystem, network, permission and security-policy dependencies are healthy; the bounded positive operation succeeds; the negative or boundary case fails where expected; and independent read-back confirms no hidden transient or reboot-only divergence.
Real environment output must be captured separately and compared within the same distribution/release, kernel, namespace and provider context.