delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/01/23/06:14:30

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:mime-version
:content-transfer-encoding:content-type:subject:date; q=dns; s=
default; b=pYQPmTUS9SLhYER41V4A6iKPiQeQQWURM6gqwEjTr/sA9MXQ9ZSoi
bg2omi9h9L08j7a5x4HKdGchUpV4YfS0AqYfptGnlwb1etHYO5O4hYDwcWnHfczY
cRDXe4vIcGE6/1HLjk8lxYa9dv2O1Q/UPppAbOJzXocp1z3U/ykMqA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:from:to:mime-version
:content-transfer-encoding:content-type:subject:date; s=default;
bh=37Au7mRzr2YfIkJhbwpB8EPZb+Y=; b=ThUnJBZGSLiFNgyqQWDse6edtakK
9BautpFx81zrCyVNdb1AFMtw+O38bGNqv+3SPRimYoZs44M/euuKtiBooTBfnlrO
nd9N0Ciyo/4uA3r7J6iNTnugv4QFJD5i6xZeZg/10loZ1F47ESZyG8P2sOERCldc
LNhiwjC7/PS7Pz4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
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
X-ME-Sender: <xms:CRlnWk7FLAyDktlJKUn70Yn577KLt8BocMk7eHWhHafCXCB21BIggw>
Message-Id: <1516706057.3270332.1245015392.5FE803A3@webmail.messagingengine.com>
From: Ronald Fischer <ynnor AT mm DOT st>
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Subject: Ejecting a USB drive using Cygwin (sync)?
Date: Tue, 23 Jan 2018 12:14:17 +0100
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019