Umount - target busy

Petter Adsen petter at synth.no
Sat Oct 17 14:37:57 UTC 2015


On Sat, 17 Oct 2015 15:23:56 +0100
R Kimber <richardkimber at btinternet.com> wrote:

> I have a script that unmounts a drive at the end.  I sometimes get a
> message saying "target is busy".
> 
> Is there a way of testing whether the target is busy that I can use
> before trying the umount, so that I can delay this command until I know
> the umount will complete without error?
> 
> - Richard.

See the man page for 'fuser' and take a look at the examples.

Petter

-- 
"I'm ionized"
"Are you sure?"
"I'm positive."




More information about the ubuntu-users mailing list