dd if=/cygdrive/a of=foo.img doesn't work

David Starks-Browning starksb@ebi.ac.uk
Thu Sep 14 05:15:00 GMT 2000


On Thursday 14 Sep 00, Robert Collins writes:
> Perhaps this could be FAQ'd? I had a look and couldn't see it there..

If someone can supply me with a suitable entry, I'll add it to the
FAQ.  Sorry to be ignorant, but I've never used this and I don't know
the details well enough to explain them myself.

This is from Corinna's message < http://sources.redhat.com/ml/cygwin/1999-12/msg00493.html >:

> 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

But I'm not familiar with the naming conventions.  For example, why
'//./F:' instead of just 'F:'?  Are the other names just examples, or
is that how one must refer to them?  (Similarly for /dev/fd0?)

If these are documented elsewhere I can point that out in the FAQ.

Thanks,
David


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list