On 11/03/2010 10:35 AM, Thomas Jung wrote: > Hello, > > is there a file or something where I can see how cygwin > maps the harddisks in windows to the usual unix style devices? > > e.g. I can use: > > dd if=/dev/sdb of=E:\hd1backup.bin bs=4096 > > to backup the whole second harddrive or just > partitions of that disk if I use if=/dev/sdbX
That won't do what you think. You probably want: dd if=/dev/sdb of=/cygdrive/e/hd1backup.bin bs=4096 Since dd open()ing the output file using a DOS filename won't necessarily use the correct binary mode settings that you want. > > But I can't be sure if that cygwin/unix styled device > names are the partitions which I think. > > Where are such "mappings" stored/saved/recorded? Have you tried the latest snapshot? According to https://bugzilla.redhat.com/show_bug.cgi?id=649310 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. -- Eric Blake ebl...@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature