Search code examples
amazon-web-servicesamazon-ec2amazon-ebs

EBS Volume Being Read as Root Device


One of my instances was preventing me from logging so I stopped it, detached its volume, spun up a new instance, and attached the old volume. The problem is, the old volume is being treated as the root device. Because of this, I still cannot log in to the new instance (although I can do so if I don't attach the old volume).

Is there any way to fix this issue using the AWS Management Console?


Solution

  • To resolve this, I had to make a snapshot of the old volume first. I then created a new AMI using that snapshot. I included the old volume as an extra storage so that it's explicitly defined not to be treated as a root device.

    I then created a new instance using that AMI. I was able to finally log in to the new instance. From there, I just mounted the volume.