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

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.


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