PREP WITH PROOF
Menu
CERTIFICATION STUDY GUIDES / PRACTICAL GUIDE

LFCS Study Guide: Linux Disk Space, Inodes, and Mount Troubleshooting

Prepare for LFCS with a timed Linux storage exercise using findmnt, df, du, and inode counts to diagnose failed writes safely.

THE QUICK ANSWER

For LFCS storage troubleshooting, start with the path that failed. Find the filesystem backing that path, compare block and inode availability, and only then inspect which directories or processes account for the usage. Similar write errors can arise from different constraints, so collect evidence before changing anything.

Set up a storage exercise with a clear success condition

Review the Linux Foundation LFCS competencies, then use a disposable VM or an authorized training environment. Imagine an application cannot write a new cache file under an existing directory at /srv/catalog/cache. Write down the exact error, affected user, and time. Your success condition is that the intended application account can create a small test file in the relevant path after the issue has been addressed.

Time yourself for 15 minutes. Take the first five to establish which filesystem is involved and whether the issue is space or something else. Spend the next five checking the evidence against one plausible explanation. Use the final five to explain how you would verify an approved repair. You can work through the observations below on paper without filling any filesystem.

Identify the mount containing the failing directory

Use findmnt --target /srv/catalog/cache to inspect the mount backing the existing directory. If the actual target file does not yet exist, check its existing parent. Record the source, target, and filesystem type. A separate mount at /srv/catalog can be full while the root filesystem has plenty of space. Measuring only the root would miss the actual problem.

Now suppose your lab lacks the expected separate mount. A command still returns a filesystem for the path because the directory exists on the parent. Compare the observed mount with the intended layout. Avoid treating a missing mount as approval to mount over a populated directory. Review the deployment configuration and ownership of the change, because a mount can hide the underlying directory contents while active.

Compare block usage and inode usage

Use df -h /srv/catalog/cache to view filesystem capacity and df -i /srv/catalog/cache to inspect inode availability where the filesystem provides meaningful inode counts. In the first example, the filesystem has 32 GB allocated and effectively no blocks left for the service account. In the second, it has 12 GB of storage available but runs out of inodes because a job created many small files. Explain how those observations point you toward different investigations.

For a block-space problem, use a limited same-filesystem directory inventory such as du -x -h --max-depth=1 /srv/catalog on a system with GNU du. Make sure the account running the check can read the relevant directories. For an inode problem, inspect counts of entries under the suspected cache directories. A handful of large files can dominate byte totals while contributing very little to inode use.

Explain why df and du can disagree

Imagine df reports heavy use while your du inventory accounts for much less. Start by verifying that both measurements refer to the same mount and that the inventory includes the relevant paths. Then consider a file that has been deleted from the directory but remains open by a running process. Its allocated storage can remain in use until the open reference is released.

Confirm a hypothesis with evidence before choosing a response. A service may need an approved log-reopen or restart procedure, while an inventory that skipped unreadable paths needs a better measurement. Record service impact and validate who owns any remediation in a shared environment. A successful explanation identifies what df counts, which directory entries du can see, and why that distinction matters in the observed case.

Verify recovery and answer a fresh LFCS scenario

After an authorized correction, rerun findmnt and the relevant df commands. Use the intended service account or an approved test mechanism to verify the representative write. Record the before and after output, the corrected constraint, and any open question such as why the cache was allowed to grow unchecked.

Then change the symptom to a permission error with sufficient free blocks and inodes. Predict which permission or mount setting you would check first. Repeat with a different mounted path. The goal is to begin with what the application experienced and follow the evidence to the filesystem, instead of treating every failed write as a storage capacity problem.

KEEP THESE THREE THINGS

Your next steps

  1. Resolve the failing path to its actual filesystem.
  2. Check blocks and inodes before deciding what is exhausted.
  3. Verify a small application write and compare the measurements after a fix.

Sources & official resources

Linked resources checked on 2026-11-27. Technical behavior and provider guidance can change; check the documentation for the version you use.

About this guide and its recommendations

Published by Prep With Proof with AI-assisted drafting. Study routines and examples are editorial suggestions, not official exam instructions or claims of a learner's personal results. Cited provider facts are linked; ownership of recommended Prep With Proof products is disclosed. No competitor endorsement or guaranteed certification outcome is implied.

Suggest a correction →