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
posta 2 mesi fa237 visualizzazioni
2 Risposte
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
ESPERTO
con risposta 2 mesi fa
  • 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
Risposta accettata

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
TECNICO DI SUPPORTO
Aamir_H
con risposta 2 mesi fa
  • Thank you, problem solved!

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande