Page 1 of 1

Restoring root from dd image

Posted: 19. Jun 2017, 21:13
by gdseas
Hello,
I have inherited a VBox Ubuntu instance with a very small root partition. I would like to make the partition larger so I thought of:

1. Getting dd images of each partition
2. Creating a new VBox Ubnutu instance with the right partition sizes
3. Restoring the dd images into the partitions

I now realize that I would somehow need to restore the dd image while the / and /home partitions are mounted. Is there a way to somehow boot the new instance, umount the partitions and do a dd restore?

Thank you!
Greg

PS: Alternatively, is there a simple or more clever method for me to somehow resize the partitions (not LVM) or create a new VM and clone the old system?

Re: Restoring root from dd image

Posted: 19. Jun 2017, 22:38
by Perryg
If it is a standard partition ( not LVM ) just resize with these instructions.
viewtopic.php?f=24&t=50661
If it is LVM then you increase the drive size as above and use the LVM to adjust the partitions.