Search code examples
linuxwindowscygwinhard-drive

cygwin /dev/sd* disk association to hard drive


Under cygwin on Windows 7, how would I certainly determine the hard drive that some path /dev/sd* corresponds in Windows?

For example, given cygwin path /dev/sdc, which Windows letter drive does it correspond, C:\, D:\, etc.?

The following don't appear available within cygwin; tool lshw, tool parted, path /dev/disk/....


Solution

  • Assuming you are asking how to map Windows Disk to devices:

    $ cat /proc/partitions
    major minor  #blocks  name   win-mounts
    
        8     0 175825944 sda
        8     1 175824896 sda1   C:\
        8    16 1953514582 sdb
        8    17 1953512448 sdb1   E:\