How to Resize a Disk from AWS CentoOS Image
Then create anewAMI. On boot, the cloud-init"growpart"module will grow the root partition to the total EBS size. Clearly,ifthat's not what you what, change or ignore that advice.You can also fixthismanually with a repartition and a reboot, butthiswill not automatically work as anewimage.# fdisk /dev/xvda <<ENDudnp12048wEND# reboot# (after reboot)# resize2fs /dev/xvda1# df -h / # should now be entire EBS volume
