If your Mac is running either v10.7 or v10.8, if you need to repair the startup disk, or reinstall OS X, restart your Mac while holding down the Command + R keys in order to access the built in utilities > OS X Recovery
Helps to mention which OS X is installed when you post