In my Windows EC2 instance I have 3 drive: C, D, and E.

  • C: 30 GB
  • D: 1 GB
  • E: 1 GB

In my AWS console, I have the following volumes:

  • vol-e0059988 (1 GB)
  • vol-ec059984 (1 GB)
  • vol-ea059982 (30 GB)

How do I know which volume my D and E drive are attached to?


Took a bit, but here is some info:

Go to Drive Manager ( Run -> diskmgr.msc).

For each drive right click on the part where is says Disk [#] (not the right section where is has the partitions) and go to "properties"

There will be a "Location" field with a LUN # at the end.

When a drive is attached to a Windows Volume, the lowest available LUN # is applied to the drive. The base drive is LUN 0, and each drive gets a LUN # after that. These LUN #s are static as long as the drive is attached.

Assuming there were no shenanigans with reattachments of the drives, LUN 1 and LUN 2 should be assigned in order of time.

Next, use the command line tools and run ec2-describe volumes. Search the output for your two EBS volumes, and look at the "attached" field to determine which was attached first. This should correspond the LUN 1, which you can correlate to your drive letters!

Hope this helps

Update: Looks like the section where it states Drive 0, Drive 1, Drive 2 etc, the # corresponds to the LUN #, so whichever drive is listed lower is the one that was likely attached first.

  • Disk numbering order in Windows doesn't not meet alphabetical order in aws. – Denis Kot Apr 15 '11 at 13:39
  • It does not have to, but by default it will line up, so assuming no shenanigans it should be a safe bet. – Flashman Apr 18 '11 at 14:35
  • I think this answer is inadequate. My instance has two LUN #1, one on Bus Number 0 and the other on Bus Number 1. Like the OP, I need a reliable way of determining the correspondence. – Elroy Flynn Feb 20 '12 at 5:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.