This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how do I clone a drive in cygwin?


On 1/13/2013 6:23 AM, Marilo wrote:
from /cygdrive

i haven't done it before in linux either, so maybe i'm making an elementary error.

howcome it fails here with dd and cat?

$ dd if=/cygdrive/g of=/cygdrive/c/crp/test.img
dd: reading `/cygdrive/g': Is a directory
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00542876 s, 0.0 kB/s


/cygdrive/c is not the physical drive but a mount point.


look at

$ ls -l /dev/sd*

On my system

$ ls -l /dev/sd*

brw-rw-rw- 1 marco Administrators 8,  0 Jan 13 08:21 /dev/sda
brw-rw-rw- 1 marco Administrators 8,  1 Jan 13  2013 /dev/sda1
brw-rw-rw- 1 marco Administrators 8, 16 Jan 13  2013 /dev/sdb
brw-rw-rw- 1 marco Administrators 8, 17 Jan 13  2013 /dev/sdb1

/dev/sda is disk C: and /dev/sdb is the disk E:


Asssuming you G drive is a USB stick, the easy way to identify the right sdX is to use

$ ls -l /dev/sd*
 before and after the connection of the stick

Regards
Marco




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]