Disk & Filesystem Management (Du/Df/Lsblk/Fstrim)
Stop mounting physical volumes blindly when you can’t find your storage
🧩 The Challenge
You finally walk into the server room, plug in a drive, and pray the kernel actually sees it. Too many times I have stared at dmesg logs for ten minutes only to realize I was looking at the wrong device node.
💡 The Fix
Skip the headache of guessing dev names and use the tree view to see exactly how your physical drives map to your mount points. It saves you from formatting the wrong partition when you’re tired and rushing.
lsblk -o NAME,SIZE,TYPE,MOUNTPOINT,UUID
⚙️ Why It Works
Adding the UUID column prevents those classic disasters where you mount a drive that looks identical to a disk you already have attached. Viewing the tree structure immediately clarifies the hierarchy of partitions and logical volumes.
🚀 Pro-Tip: Pipe it into grep if you are dealing with a server that has thirty different SAS drives.
Linux Tips & Tricks | © ngelinux.com | 8/30/2026
