I've just installed OpenWrt (19.07.2) on a USB stick and would like copy it to a hard disk.
Can anyone advise me about how to do this?
My hard disk has two partitions on it. Should I expect to be able to copy the two partitions from the USB stick to the hard disk and get it to boot? Assuming I can change the UUID of the disk in the relevant config files?
Actually I have three partitions, the third one being an Arch Linux partition. I use the disk as multiboot system. Is there any way to copy the partitions from the USB stick to the hard drive? Could I use dd to copy the partitions? I don't really want to lose the Arch Linux partition.
Merge the files in the boot partition into the rootfs under /boot so everything OpenWrt needs is in one partition, then copy that partition to the hard disk. Boot Arch and run update-grub to find the new OS and add it to the boot menu.