X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM X-Spam-Check-By: sourceware.org Message-ID: <4C768F82.7050104@bellsouth.net> Date: Thu, 26 Aug 2010 11:00:02 -0500 From: "Charles D. Russell" Reply-To: worwor AT bellsouth DOT net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: cygwin cygwin Subject: Re: associating device names with cygdrive directories Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Is there an easy way to find the association of a given /dev/sd? with the corresponding /cygdrive/?. Is there a good way to verify the association before writing to the device with dd? ________________ Larry Hall wrote: you can certainly use the information from Disk Management to figure out the mapping. essentially, "Disk 0" = /dev/sda, etc. ******** Thanks. That is the mapping I was looking for. ____________________ Jeremy Bopp wrote: How would you handle the case where you have more than a single mount which looks like that? e.g.) /dev/sda1 on /live/image1 type vfat (rw,noatime,fmask=0022,dmask=0022,allow_utime=177777,codepage=cp437,iocharset=utf8) /dev/sdb1 on /live/image2 type vfat (rw,noatime,fmask=0022,dmask=0022,allow_utime=177777,codepage=cp437,iocharset=utf8) *********** If I know that /dev/sda1 maps to /live/image1, then I can use df and ls on /live/image1 to identify the device - easier than using dd |strings on /dev/sda1. I'm concerned with distinguishing among USB storage devices. ____________________ Corinna Vinschen wrote: $ for F in $(gawk '{if (FNR > 2) print "/dev/" $4;}' /proc/partitions) ; do echo "$F $(./cygpath -w $F)" ; done /dev/sda \\.\PhysicalDrive0 /dev/sda1 \\.\Volume{781f8bd9-7d0d-11de-8012-806e6f6e6963} /dev/sda2 \\.\C: /dev/sda3 \\.\D: /dev/sda1 is not available under a drive letter, so that's fine. ********* Nice, but evidently requires your patches, not working on my installation. ______________ Andrey Repin wrote: please, use "reply" option when replying to list, instead of writing new message. ********** I would use gmane to enable this, but I'm on dial-up at the end of a miserable rural telephone line in Maine, where even DNS lookup usually takes several tries, and servers that are not patient enough for lots of retries simply won't work. _____________ Thanks everyone. I was successful in creating a bootable USB flash drive using Cygwin to dd from debian-live.img. It was so slow, though, that I will forget about using Cygwin to clone a hard drive. -- 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