delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/12/30/16:26:38

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: <386BCF1A.667751E3@veritas.com>
Date: Thu, 30 Dec 1999 13:31:06 -0800
From: Bob McGowan <Robert DOT McGowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Cygwin <cygwin AT sourceware DOT cygnus DOT com>
Subject: physical disk access

I am doing disk testing of physical devices on NT.  Under NT, I can
access the physical disks using names of the form "\\.\..." where the
... can be a drive letter (including the colon) or a name like
"physicaldrive2".  The physical drive scheme numbers the drives starting
at 0, in sequence for all drives found.

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.

The first command runs fine and reports the expected size (300 MB).  The
second fails with "dd:  \\.\F:: Invalid argument".  I wrote a quick
program in C to check error conditions/permissions, using
open("\\\\.\\F:", O_RDWR).  The program can write to this device without
any problems.

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.

-- 
Bob McGowan
Staff Software Quality Engineer
VERITAS Software
rmcgowan AT veritas DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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