Why does my system change my device from /dev/sdj to /dev/xvdj?

那年仲夏 提交于 2020-01-04 03:46:09

问题


I have an Amazon EC2 instance. I booted up a volume and attached it to /dev/sdj. I edited my fstab file to have the line

/dev/sdj /home/ec2-user/mydirectory xfs noatime 0 0

Then I mounted it (sudo mount /home/ec2-user/mydirectory)

However, running the "mount" command says the following:

/dev/xvdj on /home/ec2-user/mydirectory type xfs (rw,noatime)

What? Why is it /dev/xvdj instead of /dev/sdj?


回答1:


The devices are named /dev/xvdX rather than sdX in 11.04. This was a kernel change. The kernel name for xen block devices is 'xvd'. Previously Ubuntu carried a patch to rename those devices as sdX. That patch became problematic.

https://askubuntu.com/a/47909



来源:https://stackoverflow.com/questions/11679498/why-does-my-system-change-my-device-from-dev-sdj-to-dev-xvdj

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!