Saturday, 14 September 2013

Unmount flash drive from program running on the drive

Unmount flash drive from program running on the drive

I have a Java program that is designed to work from a flash drive on both
Mac and Windows. For Windows, I have been able to add an 'Eject' option
using RemoveDrive.exe. I planned to use the following command line to
achieve the same thing on Mac, however when I tried, it wouldn't let me
unmount the drive until I closed the Java application. Is there any
solution to this:
diskutil unmount /Volumes/USB

No comments:

Post a Comment