delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/09/19/15:53:44

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <31b7d2790709191253v6a8b6587u7960a2a3fc390826@mail.gmail.com>
Date: Wed, 19 Sep 2007 14:53:09 -0500
From: "DePriest, Jason R." <jrdepriest AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: dd Bug using \.\PhysicalDriveX ?
In-Reply-To: <loom.20070919T201553-694@post.gmane.org>
MIME-Version: 1.0
References: <200709191738 DOT l8JHc8sW019686 AT zuul DOT kastle DOT com> <loom DOT 20070919T201553-694 AT post DOT gmane DOT org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 9/19/07, Eric Blake <> wrote:
> Scalzott, Todd <> writes:
>
> >
> > I believe that this is part of CORE, which I have at 6.9-5.  I did
> > update to all of the latest just a short while ago and reverified the
> > problem.
>
> There's no such thing as CORE in the cygwin distribution; you meant coreutils.
>
> >
> > I've discovered what I believe to be a problem with "dd" on several
> > different XP SP2 systems with Cygwin installed involving the usage of
> > Windows' \\.\PhysicalDrive nomenclature.
>
> That's your problem.  Cygwin is a Linux emulation, and use of Window's \\.\
> nomenclature is not guaranteed to work.  Using the corresponding posix-y name
> is more likely to succeed, in which case the bug is not in dd but in your usage.
>
> >
> > That is, reading from \\.\PhysicalDrive1 with the below command works
> > flawlessly:
> >     dd if=^\^\.^\PhysicalDrive1 of=tmp.img bs=16384
>
> That's an unusual quoting style; it certainly doesn't work under bash.  Are you
> by chance trying this under cmd.com?  In which case, why are you bothering with
> quoting? cmd.com passes \ through without the need for quoting.
>
> At any rate, what you probably wanted something more like this (less typing,
> and no need for quoting, whether in cmd.com or bash):
>
> dd if=tmp.img of=/dev/sda bs=16K
>
> See http://cygwin.com/cygwin-ug-net/using-specialnames.html for more details.
>
> --
> Eric Blake
> volunteer cygwin coreutils maintainer

I concur with Eric Blake.  I have used dd, dd_rescue, aimage, and the
sleuthkit under Cygwin using the /dev/sdX nomenclature.
It works once you can figure out which /dev/sdX corresponds to which
device+partition.

-Jason

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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