I am trying to erase the hard drive of my MacBookPro and perform a fresh install of Mac OS X Mountain Lion. It already has the said os installed. I have a Mountain Lion installation USB key handy. When I go through the erase steps in the Disk Utility, the erase button remains grey, so I cannot erase partition containing the already installed OS.
I go into Disk Utility, select the hard drive I want, click erase, but the format window (Mac OS Extended) remains grey. The name bar is untitled, and there is no option available change it. The erase button at the bottom left remains grey, I cannot erase the partition.
How do I resolve the issue?