From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50938 invoked by alias); 23 Jan 2018 11:14:20 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 50929 invoked by uid 89); 23 Jan 2018 11:14:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*m:webmail, physically, USB X-HELO: out1-smtp.messagingengine.com Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 23 Jan 2018 11:14:19 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 823E820C45 for ; Tue, 23 Jan 2018 06:14:17 -0500 (EST) Received: from web4 ([10.202.2.214]) by compute6.internal (MEProxy); Tue, 23 Jan 2018 06:14:17 -0500 X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 598F5BA1AC; Tue, 23 Jan 2018 06:14:17 -0500 (EST) Message-Id: <1516706057.3270332.1245015392.5FE803A3@webmail.messagingengine.com> From: Ronald Fischer To: cygwin@cygwin.com MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" Subject: Ejecting a USB drive using Cygwin (sync)? Date: Tue, 23 Jan 2018 11:14:00 -0000 X-IsSubscribed: yes X-SW-Source: 2018-01/txt/msg00223.txt.bz2 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