delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/01/13/02:59:34

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-5.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
X-Received: by 10.14.221.5 with SMTP id q5mr217968475eep.33.1358063953309; Sat, 12 Jan 2013 23:59:13 -0800 (PST)
Message-ID: <50F2694E.3080205@gmail.com>
Date: Sun, 13 Jan 2013 08:59:10 +0100
From: marco atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: how do I clone a drive in cygwin?
References: <1358054596 DOT 94941 DOT YahooMailClassic AT web171902 DOT mail DOT ir2 DOT yahoo DOT com>
In-Reply-To: <1358054596.94941.YahooMailClassic@web171902.mail.ir2.yahoo.com>
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

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

- Raw text -


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