I had a dual boot SSD with Windows 7 (on primary) and Ubuntu 18.04 (on extended partition). I needed to delete the Windows partition so as to let Ubuntu use the entire HDD.
Since Ubuntu was on the extended partition, it was not possible to resize it. So, I created an image of the Ubuntu 18.04 partition using clonezilla
. Then, I deleted all the existing partitions in the SSD and created a single new ext4 partition on the SSD (sda1
).
Next I cloned the 18.04 partition image back to the new partition (sda1
). However, I got an error message stating that it was unable to restore extended boot record into an extended partition (sda4
) which existed in the SSD before creating the new partition table. I tried to use disk repair to fix the boot issue, but it failed to do so.
My question is how to create a bootable ubuntu disk (in a newly formatted/partitioned SSD/HDD) from an image of an ubuntu partition?