VirtualBox does not offer anything for this task -- you need to do it yourself. It's not that hard:
fdisk
, dd
and gParted
.sudo su
fdisk -l
to see the disk information. \/dev/sda
), the latter your target for cloning (e.g. /dev/sdb
).bs
parameter sets the block size and may increase transfer speed. If you are curious about dd
's progress, check the corresponding note.Now your virtual drive has more space but the partition is still of the same size. You probably also want to enlarge it as well (these step are especially useful for Windows guests as they cannot resize their system partition themselves):
This should be it. Windows will notice the drive change and run CHKDSK on its next boot but should come up fine afterwards.
As always: Have a backup of important data before doing such things.