I don't know whether its normal or not but when I mount a filesystem(ext4 partition, USB, SD card etc) via command line, I can't unmount it because it says
target is busy
It is the bash process which is using/accessing it. So I have to kill it first and then only can unmount the drive. As you have guessed, when I kill the bash process the terminal shuts down.and I have to reopen the terminal and unmount the drive. Is it normal ? I don't remember it happening the last time I unmounted something.
cdinto the mountpoint, it will be openend bybashso of course it will be busy.cd $HOMEand then try to unmount, or usesudo fuser /mount/pointto figure out what else is using the process – Sergiy Kolodyazhnyy Feb 16 '19 at 17:24ps -p 1234 -o argswhere 1234 is pid, or just examine/proc/1234/cmdline– Sergiy Kolodyazhnyy Feb 16 '19 at 17:31