Re: unable to eject/unmount pendrive
"umount" is the way to go. But it is complaining that one or more files on it is opened by some process. What often happens it that it is the working directory for some process (could be your script). If it's your script, then make it work with a different working directory. If it's some other process independtn of your script (file explorer, etc...) you have to handle the case manually. You can also try "umount -f"
Warning: unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Bookmarks