public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Ronald Fischer <ynnor@mm.st>
To: cygwin@cygwin.com
Subject: Ejecting a USB drive using Cygwin (sync)?
Date: Tue, 23 Jan 2018 11:14:00 -0000	[thread overview]
Message-ID: <1516706057.3270332.1245015392.5FE803A3@webmail.messagingengine.com> (raw)

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

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?

Ronald

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

             reply	other threads:[~2018-01-23 11:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-23 11:14 Ronald Fischer [this message]
2018-01-23 15:41 ` Nem W Schlecht
2018-01-23 18:50 ` Andrey Repin
2018-01-23 21:13 ` Brian Inglis
2018-01-23 23:36   ` Steven Penny
2018-01-25  3:02     ` Brian Inglis
2018-01-25  9:58       ` David Allsopp
2018-01-25 20:37         ` Brian Inglis
2018-01-25 21:43           ` Doug Henderson
2018-01-26  1:31             ` Brian Inglis
2018-01-25 12:45     ` Marco Atzeri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1516706057.3270332.1245015392.5FE803A3@webmail.messagingengine.com \
    --to=ynnor@mm.st \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).