Find which processes still hold files on a mounted filesystem.
Section: Mount and Unmount
List open files under a mount
bash
bash
sudo lsof +f -- /mnt/dataExplanation
Find which processes still hold files on a mounted filesystem.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Mount and Unmount
Mount a device to a directory
Mount a block device using filesystem auto-detection.
Mount a filesystem read-only
Useful for safe inspection or recovery work.
Remount a filesystem read-write
Change mount options for a mounted filesystem.
Lazy unmount a busy mount
Detach the mount now and clean up after current users release it.