This is the mail archive of the
mailing list for the Cygwin project.
Re: Ejecting a USB drive using Cygwin (sync)?
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Ronald Fischer <ynnor at mm dot st>, cygwin at cygwin dot com
- Date: Tue, 23 Jan 2018 21:41:56 +0300
- Subject: Re: Ejecting a USB drive using Cygwin (sync)?
- Authentication-results: sourceware.org; auth=none
- Authentication-results: smtp3p.mail.yandex.net; dkim=pass email@example.com
- References: <1516706057.3270332.1245015392.5FE803A3@webmail.messagingengine.com>
- Reply-to: cygwin at cygwin dot com
Greetings, Ronald Fischer!
> 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.).
Windows device disconnect option syncs the device.
Just find a tool that plays right.
> 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
> assuming that the USB device is on drive E:? The man page of *sync* is a
> bit vague in this respect. Or is there another Cygwin command which can be
> used for this purpose?
There's no "eject" implementation, to my knowledge.
Also, please keep in mind that ejecting drive vs. detaching a device is a
I.e. detaching a multi-mode card reader may leave system unable to access
newly inserted cards.
With best regards,
Tuesday, January 23, 2018 21:33:21
Sorry for my terrible english...
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple