I need to decrease the size of bootable EBS in AWS, I tried to rsync all data to another bootable drive (clearing everything before) but after that I can not boot it (empty log from EC2 dashboard and cannot connect through ssh), I tried to set grub but faced with error grub-install: error: embedding is not possible, but this is required for cross-disk install. And I remember about Clonezilla. Clonezilla can clone only unmounted local devices. Can I run Clonezilla on EC2 in some way and operate it through the ssh? Or maybe I can do the same action manually on EC2 with attached device that I want to clone?


Try creating a new Instance of the same type as the Instance that you want to duplicate, but in the size you want to make it. Then, detach the Volume and Terminate the new Instance. Duplicate the partitions from the old Volume to the new volume and attach the new volume as /dev/sda1. (When I've tried to build a new boot Volume by hand, I always seem to be missing something and it never works. But, you build a new Instance just to get the pre-built Volume, it always works for me.)

Also, you might want to try spinning up a free-tier Ubuntu Instance and installing Clonezilla (sudo apt-get install drbl). I much prefer using Clonezilla than trying to command line a partition duplication out. Lazy? Maybe, but it usually works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.