Skip to content
Advertisement

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

Advertisement

Answer

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:
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement