bashmount
bashmount copied to clipboard
Unable to unmount because bashmount keeps target busy
When trying out bashmount, I discovered that when I attempt to unmount the device, I get
Error unmounting /dev/sdf1: GDBus.Error:org.freedesktop.UDisks2.Error.DeviceBusy: Error unmounting /dev/sdf1: target is busy
When I check lsof, I find that bashmount is keeping the target busy, preventing itself from unmounting it
bashmount 24464 dfowl cwd DIR 8,81 16384 1 /run/media/dfowl/DFO_USB
I should probably clarify some things. This happens only when I select the disk and tell bashmount to open it. After opening the directory, bashmount closes itself but does not end itself. Perhaps I am overlooking a way to reopen the bashmount that keeps running in the background, but that's what prevents it from unmounting/ejecting.
I found that somehow there are other bashmount processes running in the background, kill those processes, and redo that again, it will succeed.