clonePartitions() helper func.