I have Windows EC2 instances that I am managing via a C# application; I'm using the AWS.NET SDK. I'm trying to figure out from the documentation if there is anyway to query the API and get the volume-to-drive letter assignment within the instances. Failing that, does anyone know if EC2 is consistent in its mapping of devicenames (e.g. /dev/sdb, /dev/sdc) to drive letter? Will /dev/sdb always be D, /dev/sdc always be E, etc.?
In my experience, unless you go in and mess with it, the drives map out, Device Name to Drive Letter, like so:
/dev/sda1 C:
/dev/sda2 D:
/dev/xdf F:
/dev/xdg G:
/dev/xdh H:
...etc
I have no idea how to tell it to map something to E... and I've never cared to.
So as long as you let everything be the defaults, you'll get the above consistently and can easily get that Device mapping from a DescribeInstances call.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With