www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/03/13:11:09

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_YG,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4CD1979E.10106@redhat.com>
Date: Wed, 03 Nov 2010 11:10:54 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Fedora/3.1.6-1.fc14 Mnenhy/0.8.3 Thunderbird/3.1.6
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Harddisks and Patitions - Mappings: Win <-> Cygwin
References: <ias322$cog$1 AT dough DOT gmane DOT org>
In-Reply-To: <ias322$cog$1@dough.gmane.org>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes
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

--------------enig8D1041D850424C05458FB33E
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 11/03/2010 10:35 AM, Thomas Jung wrote:
> Hello,
>=20
> is there a file or something where I can see how cygwin
> maps the harddisks in windows to the usual unix style devices?
>=20
> e.g. I can use:
>=20
> dd if=3D/dev/sdb of=3DE:\hd1backup.bin bs=3D4096
>=20
> to backup the whole second harddrive or just
> partitions of that disk if I use if=3D/dev/sdbX

That won't do what you think.  You probably want:

dd if=3D/dev/sdb of=3D/cygdrive/e/hd1backup.bin bs=3D4096

Since dd open()ing the output file using a DOS filename won't
necessarily use the correct binary mode settings that you want.

>=20
> But I can't be sure if that cygwin/unix styled device
> names are the partitions which I think.
>=20
> Where are such "mappings" stored/saved/recorded?

Have you tried the latest snapshot?  According to
https://bugzilla.redhat.com/show_bug.cgi?id=3D649310

cygwin 1.7.8 (and current snapshots) add the ability to do tricks like:

>   $ cygpath -w /dev/sda1
>   \\.\C:
>   $ cygpath -w /proc/sys/Device/CdRom0
>   \\.\D:

as a way of validating that you have selected the correct raw device.

--=20
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig8D1041D850424C05458FB33E
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJM0ZeeAAoJEKeha0olJ0NqWpsH/1EyUP2ZbpFPcyyM0RbM1mr0
g0rnl1PiEPlT6elgDMpqVHwBGZ8jEEhiQ8Y/lDvSKn1faJV7ZuFVOC2mWKaZG67c
VrEGbSnJ6m2rna4jEccinrgkOGJGDnxQ3n9hizbMaZN0odrPG5kH+hBGYepA2bqX
1M/go6r6bLpgyLRiAuCMQY0EqcY62nQPG6i+s9KKIb75I0wmQrtRurzsd5Eh6BjZ
StYsELp0Mwjul+vHgj5qDqmQcA1AFvqk3YptaGmyaFgOqOABSpx9J4yQT9rQwh1H
lJJWFggCPCAaadN/zeWQS7zZhbVbvXXWXAyRHQEZ0+ruHddVwLPXwev1UnYR644=
=pDhB
-----END PGP SIGNATURE-----

--------------enig8D1041D850424C05458FB33E--

- Raw text -


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