associating device names with cygdrive directories

Jeremy Bopp
Wed Aug 25 21:32:00 GMT 2010

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


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:

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


Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list