Stop wondering why your mount point is hiding the real disk
Disk & Filesystem Management (Du/Df/Lsblk/Fstrim)
Stop wondering why your mount point is hiding the real disk
🧩 The Challenge
Everyone has had that moment where they run df and see a massive filesystem, but the directory they are actually working in is reporting zero space left because a mount failed or got shadowed. It is infuriating to debug when the tool tells you one thing and the actual file operations tell you another.
💡 The Fix
Use findmnt to verify exactly which device is mapped to your path, ignoring the cached or confusing output you usually get from older tools. This lets you see if you are actually writing to your root partition instead of the data volume you thought you had mounted.
findmnt --target /path/to/your/mountpoint
⚙️ Why It Works
By filtering on the specific target, you bypass the wall of noise from all the virtual filesystems like /proc and /sys that clutter up standard df output. It shows you the mount source, the mount point, and the actual filesystem type in one clean line.
🚀 Pro-Tip: Pipe it into -n to get just the output without headers when you are scripting checks for monitoring.
Linux Tips & Tricks | © ngelinux.com | 11/1/2026
