| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <4C757349.902@bellsouth.net> |
| Date: | Wed, 25 Aug 2010 14:47:21 -0500 |
| From: | "Charles D. Russell" <worwor AT bellsouth DOT net> |
| 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 <cygwin AT cygwin DOT com> |
| Subject: | Re: associating device names with cygdrive directories |
| 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 8/25/2010 2:49 PM, Charles D. Russell wrote:
What is the best way to find or predict the association of a given
/dev/sd?
with the corresponding /cygdrive/?. Is there a good way to verify the
assignment before writing to the device with dd?
I think this link should help a little:
<http://cygwin.com/cygwin-ug-net/using-specialnames.html#pathnames-posixdevices>
The POSIX device names are generated from the Windows information/layout
of these devices. So your best bet is to look to Windows to get the
device number <-> drive letter association and then fill in the rest
from there.
________________________
I had read that reference, but don't see how it helps to find whether a
given USB storage
device is sda, sdb, or whatever. I found that a flash drive was /dev/sdc
by unplugging all other
USB devices and trial-and-error with dd if=/dev/sdc |od|less, but there
must be a better way. I want to use multiple USB devices at the same
time, and they don't all have stuff on them that I can recognize in
binary. On Linux, the mount command reveals the association between
filesystem names and /dev/ names, but Cygwin mount doesn't tell.
The cited reference mentions "NT internal device" names, but I don't
know what those are or how to
find them. Is there some connection with the device numbers revealed by
the Control Panel under "Windows Computer Management/Storage/Disk
Management"?
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |