Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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