0 votes
1 view
in AWS by (18.2k 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 (42.5k 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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...