For me a simple
umount /media/<username>/<drive>
does the trick. The drive won't get remounted and is save to remove after the command completes.
For me a simple
umount /media/ <username> /<drive>
does the trick. The drive won't get remounted and is save to remove after the command completes.