Issue
I have an EBS backed Amazon EC2 instance. I would like to change the root device on 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.
Solution
Yep, it's dead easy:
- Stop the instance.
- Detach the root EBS volume.
- Attach the alternate EBS volume as the root:
/dev/sda1
- Start the instance.
This presupposes that your alternate EBS volume is bootable, of course - it has to contain the bootable OS image.
Answered By - Eight-Bit Guru Answer Checked By - Cary Denson (WPSolving Admin)