Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have large ec2 Ubuntu image and I'm just looking through the devices.

I noticed from the metadata that

%  curl http://169.254.169.254/latest/meta-data/block-device-mapping/ami
sda1
%  curl http://169.254.169.254/latest/meta-data/block-device-mapping/ephemeral0
sdb

However when I look what is actually mounted there is /dev/xvda1 and /dev/xvdb (and there is no /dev/sd* )

I know that both names look somewhat valid from the AWS documentation, but it looks to me from this like there is a mismatch in the instance metadata and what is actually on the machine.

Why don't they match?

share|improve this question
add comment

2 Answers 2

If you do an ls -la in /dev you'll see that sda1 links to xvda1

$ ls -la sd*
lrwxrwxrwx 1 root root 5 Oct 26 15:54 sda1 -> xvda1
share|improve this answer
    
Small note: on recently launched instances [at least mine] there are no symlinks. –  sandstrom Jul 5 at 16:58
add comment

Newer kernels are making these devices (at least under Xen virtualization) appear with names xvdN instead of sdN. Everyone has adapted.

share|improve this answer
add comment

Your Answer

 
discard

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.