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 do
When your volume is mounted, it gets a post-fix with numbers, eg: when /dev/sda
is mounted, its mounted as /dev/sda1, /dev/sda2
depending on the partitions you make.
As we are mounting the root device itself, it assumes the device is already mounted, so we need to give /dev/sda1
for mounting the volume as root device.
Note: There shouldn't be any root volume attached.
Follow these steps:
1) Go to your volumes, select attach volumes from Action.
2) Select your instance
3) For mounting as root, give the device name as /dev/sda1
4) Start your instance.