delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <386BE336.8D1437D1@vinschen.de> |
Date: | Thu, 30 Dec 1999 23:56:54 +0100 |
From: | Corinna Vinschen <corinna AT vinschen DOT de> |
X-Mailer: | Mozilla 4.7 [en] (WinNT; I) |
X-Accept-Language: | de,en |
MIME-Version: | 1.0 |
To: | Bob McGowan <Robert DOT McGowan AT veritas DOT com> |
CC: | Cygwin <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | Re: physical disk access |
References: | <386BCF1A DOT 667751E3 AT veritas DOT com> |
Bob McGowan wrote: > [...] > I wanted to use dd to verify disk sizes on reads and writes, so I used > the following two commands: > > dd if='\\.\F:' of=/dev/null bs=1024k > zero | dd of='\\.\F:' bs=1024k > > where the command zero just generates null bytes on standard out. > [...] > I would have expected dd to work for both in and out operations under > these circumstances. Any idea why it didn't? > > I am running the Cygwin 1.0 environment from the CD, no updates. If you want to use raw devices with cygwin you have to mount them. Some examples: mount -f -b -s //./F: /dev/hdb2 # partition mount -f -b -s //./physicaldrive0 /dev/hda # hard disk mount -f -b -s //./tape0 /dev/st0 # rewind tape mount -f -b -s //./tape0 /dev/nst0 # same as norewind In further commands you have to use the mountpoints for correct results: dd if=/dev/hdb2 of=/dev/null bs=1024k zero | dd of=/dev/hdb2 bs=1024k Hope, this helps, Corinna -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |