Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: de,en MIME-Version: 1.0 To: Bob McGowan CC: Cygwin Subject: Re: physical disk access References: <386BCF1A DOT 667751E3 AT veritas DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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