Show processes that block umount

Publish date: Oct 26, 2021
Tags: linux notes

Another quick one: I forget this command on a permanent basis, so I write this down here — maybe this helps.

lsof +f -- /media/mountpoint

Update on 2021-11-21

You could also use fuser.

fuser -vm /media/mountpoint