delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/25/16:38:10

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,TW_DR
X-Spam-Check-By: sourceware.org
X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk
Message-ID: <4C757F24.4060008@cygwin.com>
Date: Wed, 25 Aug 2010 16:37:56 -0400
From: "Larry Hall \(Cygwin\)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: associating device names with cygdrive directories
References: <4C757349 DOT 902 AT bellsouth DOT net> <20100825200335 DOT GA14607 AT ednor DOT casa DOT cgf DOT cx> <4C75790F DOT 50403 AT bopp DOT net>
In-Reply-To: <4C75790F.50403@bopp.net>
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 4:11 PM, Jeremy Bopp wrote:
> On 8/25/2010 3:03 PM, Christopher Faylor wrote:
>> On Wed, Aug 25, 2010 at 02:47:21PM -0500, Charles D. Russell wrote:
>>> On Linux, the mount command reveals the association between filesystem
>>> names and /dev/ names, but Cygwin mount doesn't tell.
>>
>> Sorry that's not how the mount command works on Linux.  It's not always
>> easy to tell the device associated on linux either.  Sometimes you need
>> to look at dmesg output.  Unfortunately cygwin has nothing similar.
>
> The wodim command from the cdrtools package includes logic (-scanbus
> option) which is able to identify SCSI devices under Cygwin.  It doesn't
> map them to the /dev namespace, but it shows that something like you
> need may be possible.  Wodim is also able to take a drive letter and
> directly use that when writing an ISO file to the drive.
>
> Maybe you could start there and craft a tool to do what you need.

That might be the easiest way to creating a tool, since you'd have
existing logic to leverage.  But to answer your original question, you
can certainly use the information from Disk Management to figure out
the mapping.

<http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/devices.cc?rev=1.31&content-type=text/x-cvsweb-markup&cvsroot=src>

should help in that regard.  But essentially, "Disk 0" = /dev/sda, etc.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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