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 4:32 PM, Buchbinder, Barry (NIH/NIAID) [E] wrote:
$ for F in /dev/s* ; do echo "$F    $(cygpath -w $F)" ; done
/dev/scd0       \\.\D:
/dev/scd1       \Device\CdRom1
/dev/scd2       \Device\CdRom2
/dev/sda        \\.\PhysicalDrive0
/dev/sda1       \\.\Volume{39f65722-0106-11df-b1c0-806d6172696f}
/dev/sda2       \Device\Harddisk0\Partition2
/dev/sdb        \Device\Harddisk1\Partition0
/dev/sdb1       \Device\Harddisk1\Partition1
/dev/sdb2       \Device\Harddisk1\Partition2
/dev/sdc        \Device\Harddisk2\Partition0
/dev/sdc1       \Device\Harddisk2\Partition1
/dev/sdc2       \Device\Harddisk2\Partition2
/dev/shm        C:\cygwin\dev\shm
/dev/sr0        \\.\D:
/dev/sr1        \Device\CdRom1
/dev/sr2        \Device\CdRom2
/dev/st0        \Device\Tape0
/dev/st1        \Device\Tape1
/dev/st2        \Device\Tape2
/dev/stderr     \dev\tty
/dev/stdin      \dev\tty
/dev/stdout     /proc/2476/fd/pipe:[504]
I'm running Cygwin 1.7.6-1, and when I use your command ('for F in ...'), above, I
don't get all the devices in your list (for those that I have). Instead I get:

/dev/shm        C:\_0\dev\shm
/dev/stderr     \dev    ty0
/dev/stdin      \dev    ty0
/dev/stdout     /proc/4876/fd/pipe:[800]

What's missing? At least:
* ty1
* 2 HD partitions
* 1 1.5 TB USB drive
* 1 TB RAID 0
* 2 CD/DVD drives (one USB, one internal)
* CF drive
* USB 16 GB flash drive

This is not earth shattering since everything (AFAIK) works (with either Windoze
or Cygwin), but what's the deal, do you think?



-- Problem reports: FAQ: Documentation: Unsubscribe info:

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