Unable to attach a root volume as /dev/sda1

1

Hi everyone I am trying to detach an older volume and reattach a volume created. From a snapshot. The instant is down, I have deattached the root vol (the only volume) from the instance and try to attach the newer one. In the "Attach volume" screen I selected the instance and trying to set the "Device name" as I did in the past as /dev/sda1 but now I have a selection drop down (New) and /dev/sda1 is not there. and it is not allowing me ti type it in directly anymore. I also tried o reattache the old volume but the same results Both the instance and the volume are in "eu-west-1c" Please help

Shimond
已提問 2 個月前檢視次數 238 次
2 個答案
1

here are a few steps you can take to troubleshoot and resolve this issue:

Check Dropdown Options: Look through the dropdown menu options to see if there is a suitable device name available for your volume. If you don't see /dev/sda1, try selecting a different available option, such as /dev/xvda, /dev/sdb, etc.

Verify Volume State: Ensure that the volume you are trying to attach is in the "available" state and not already attached to another instance. If it's attached to another instance, detach it from there before attempting to attach it to the new instance.

Refresh Page: Sometimes, the AWS Management Console interface may not update properly. Try refreshing the page or logging out and logging back in to see if the dropdown menu options update.

Use AWS CLI or SDK: If you're comfortable with using the AWS CLI or SDK, you can try attaching the volume using those tools. This can sometimes provide more flexibility and control compared to the web interface.

You can also refer to this guide :- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/RootDeviceStorage.html

profile picture
專家
已回答 2 個月前
  • Thanks for your answer. dev/xvda, /dev/sdb did not work (unable to select any of those) Volume State is available. I also tried to manipulate the web page, but this did not work ether Refresh the page to no avail. Unfortunately, I am not comfortable with CLI. I regularly use this type of attachment, and it’s been working until today. It looks like a bug in the AWS web interface, but for now, my instance is down.

0
已接受的答案

If the "/dev/sda1" option is not available in the selection drop-down, then click on "Specify a custom device name" option and enter "/dev/sda1" manually to mount the EBS volume as root volume.

AWS
支援工程師
Aamir_H
已回答 2 個月前
  • Thank you, problem solved!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南