On the same physical machine, the partitions of / and /home are both not large enough. I cannot extend the two partitions directly, since they are the last two partitions. I deleted the two partitions and allocated two larger partions.
Can I use
cp to backup the two partitions and then recover them to the new / and /home? I use a USB disk to store and restore the backup file.