Need to find the application that's stopping you from unmounting? Use fuser!

seitanic@lemmy.sdf.org to Linux@lemmy.ml – 82 points –
vid.puffyan.us
8

And what do you do when neither fuser not lsof return any results? Every single time I've had something stuck that refused to umount, I have gotten no help from either of these tools. One recent example was mounting a drive image as a loop device, modifying /etc/fstab, backing out of the mounted device so I could umount it.... and it completely refused.

umount -l usually works for me

True, but it leaves things behind that can get in way when you go to mount other resources in the same folder. On my desktop I just reboot to clear things up, but on my servers it is usually months between reboots and I have to schedule it.