Need to find the application that's stopping you from unmounting? Use fuser! (vid.puffyan.us)
from seitanic@lemmy.sdf.org to linux@lemmy.ml on 20 Sep 2023 15:54
https://lemmy.sdf.org/post/4261384

#linux

threaded - newest

30p87@feddit.de on 20 Sep 2023 16:18 next collapse

sudo umount -l

/s

fraksken@infosec.pub on 20 Sep 2023 16:19 next collapse

lsof /mountpoint

vettnerk@lemmy.ml on 20 Sep 2023 17:03 next collapse

fusker -k
…i like living dangerously

jmd_akbar@aussie.zone on 20 Sep 2023 17:19 collapse

In that case, why not simply

rm -rf /

😜

NeoNachtwaechter@lemmy.world on 20 Sep 2023 17:41 collapse

Too simple.

For complexity, add a “sudo” :-)

Shdwdrgn@mander.xyz on 20 Sep 2023 18:27 collapse

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.

Damage@slrpnk.net on 20 Sep 2023 21:25 collapse

umount -l usually works for me

Shdwdrgn@mander.xyz on 20 Sep 2023 22:07 collapse

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.