Re: To move a partition to another being prepared readily
Reply #1 –
# mount /dev/sd?1 mnt1
# mount /dev/sd?2 mnt2
$ cd mnt2
# cp -a ../mnt1/* ./
Perhaps something like that? Use cp -a not -r to preserve file attributes, copy links etc. If it's intended to be bootable then you might need to chroot in and do some things like edit fstab, regenerate the initcpio's, and run update-grub. That is more than one command though, not sure if it could be done without mounting, possibly using dd I suppose, but cp does error checking on what it writes while dd doesn't which is why cp is recommended for that kind of operation.