Explore Courses Blog Tutorials Interview Questions
0 votes
in AWS by (19.1k points)

I have an EBS backed Amazon EC2 instance. I'd like to change the root device in this instance. Can you please advise the best way to go about this?

I only find documentation on changing several attributes of block devices, but they don't seem to include setting it as the root device. Thanks in advance.

1 Answer

0 votes
by (44.4k points)

Follow the below steps to achieve it:

  1. Click on the instance for which you want to attach and stop it
  2. Detach the attached root EBS volume
  3. Attach the other or alternate EBS volume as the root volume: /dev/sda1
  4. Then, start the instance

The alternate EBS volume should be bootable. That is it should contain the bootable OS image of the instance

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories