Unmount filesystems
medium risk
fuser -vm <mountpoint>Find processes using the mountfindmnt <mountpoint>Confirm what is mounted thereDetaches a filesystem. Fails if files are open (use lsof/fuser to find them).
| Flag | Meaning |
|---|---|
-l | Lazy unmount: detach now, clean up later⚠ Processes keep stale handles. |
-f | Force (NFS)⚠ May lose in-flight data. |
-R | Recursive |
umount /mnt/dataUnmount · explain & risk-check →fuser -vm /mnt/dataSee what is using it · explain & risk-check →Reference text is hand-written and may be incomplete — check man umount for your version. Test destructive commands on a non-production system first.