How do you have the old drive connected to the new AIO, is it via a USB cable or some other way.
Can you post a screenshot Disk Management with the old drive connected. If you are booting from the old drive you cannot format or removed partitions you need to have it connected as a second drive somehow.