This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: associating device names with cygdrive directories


On 8/25/2010 3:32 PM, Buchbinder, Barry (NIH/NIAID) [E] 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.
> 
> Is this what you want?  (The multiple spaces are really tabs.)
> 
> $ for F in /dev/s* ; do echo "$F    $(cygpath -w $F)" ; done
> /dev/scd0       \\.\D:
> /dev/scd1       \Device\CdRom1
> /dev/scd2       \Device\CdRom2

<snip>

That's a pretty clever solution.  Too bad there is no way to use cygpath
to go the other direction.  Ideally, we could do something like:

$ cygpath -t device D:
/dev/scd0

Of course it's hard to justify adding such functionality without a good
use case.

-Jeremy


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]