After messing up a hard drive I spent a long time trying to reinstall the OS. It seems that there is a hidden file on the hard drive that must be manually deleted before you can reinstall an OS to it or you get this error.
Use
rm /mnt/"*"/.prop
Where are the "*" is should be the name of the mounted device.