This is the mail archive of the
mailing list for the Cygwin project.
Re: Ejecting a USB drive using Cygwin (sync)?
On Tue, Jan 23, 2018 at 5:14 AM, Ronald Fischer <firstname.lastname@example.org> wrote:
> I'm looking for a command, which would allow me from a shell script to prepare the removal of a USB device (stick, external hard drive etc.). With other words, after issuing the command, I should be able to physically remove the USB device.
> Can the `sync` command be used, for instance
> sync -f /cygdrive/e
sync is not quite what you want to do the eject (wouldn't hurt to do
so beforehand, but any good 'eject' program will do a sync for you).
There are several solutions listed here:
RemoveDrive and devcon look like the best bets for what you're looking for.
Nem W Schlecht
"Perl did the magic. I just waved the wand."
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple