Windows 7 setup was unable to create system partition

I am trying to fresh install Windows 7 on my Intel PC Through a USB drive. I removed all the partitions and recreated the main drive. But it is giving an error message: Windows 7 setup was unable to create a new system partition or locate an existing system partition.
My hard drive is working fine and I am sure of it. I tried running the MemTest86+ but it shows no error. How can I resolve this?
