Not sure of the context here. Did you install to a VM? (I installed Void in a VM and figured out if it was right for me, and got it set up the way I liked. But I was upgrading my HDD anyway, so just used the real LUN for the VM, and when I was ready, booted the HDD on bare metal and so avoided downtime).
Lots of standard tools for cloning partitions. If you are doing it in a VM then there’s a couple of ways; you can connect the new HDD to the VM, boot the VM and use some cloning procedure. Alternatively, Qemu has tools that will export your disk image to a network ATA device, which you’d then copy using standard tools in your host system. I haven’t done that before, so I don’t know offhand the exact commands involved.
Methods for copying partitions include:
- dd - great if your disks are the same. Not so great if you need to do any rearrangement/resizing.
- manual partition of target, mkfs and file copy. That’s how the Void installer script does it (format and copy).
- tools like partclone. I think gparted can do copies of partitions between drives too. Don’t do that kind of thing too often, so I don’t have a preferred tool myself.
Then you just configure your boot loader.
- For BIOS systems, that involves installing your preferred bootloader to the target MBR.
- For UEFI systems, most of the work was done in cloning, and you just need to program your system firmware to boot that disk (efibootmgr, or if you’re lucky, your firmware actually lets you browse to your efi loader).
Each of those parts of the processes are documented all over the internet. Many of us here will have tips for the various stages should you need them.