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: 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> Content-Type: text/plain; charset=UTF-8; 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 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. 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