Umount - target busy

Gene Heskett gheskett at wdtv.com
Sat Oct 17 15:00:51 UTC 2015


On Saturday 17 October 2015 10:23:56 R Kimber 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.
> --
> Richard Kimber

It will likely go away if you put at least a 6 second delay between the 
end of the last write, and the unmount.  Sometimes it takes the 
filesystem that long to finish flushing the write to the disk media.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>




More information about the ubuntu-users mailing list