20: Zero Erase and Fresh install OS X (advanced)
Warning: permanent data destruction on the entire drive or partition selected. No recovery possible. All programs, files and operating system gone.
Wipes everything method. Everything erased, the hard drive bad sectors mapped off, everything new except files from storage drive, no clone or TM restores unless you know it's not corrupted.
This method is reserved for hard drives that the file structure has gone bad, pinwheel issues that isn't resolved by any other manner (bad sectors), malware, corrupted EFI or anything super serious that Disk Utility gives and unable to repair the drive.
The methods are the same as #8 Reinstall Just OS X, however before you install OS X again, you first select Disk Utility and the drive or partition and
On 10.6: Erase > Security Option > Zero All Data, then click Erase.
On 10.7: Zero Erase is one selection from the right, then click Erase.
It's going to take some time, when finished, one installs OS X and then go about installing programs and returning files from backup, or restoring from a clone or TimeMachine drive.
Note: SSD's boot drives don't have a Secure Erase function, only Erase.
10.7+ you may have to create a 10.7 Recovery USB to catch the entire drive.
Your basically booting from the Recovery HD partition which is on the same drive as MacIntosh HD or BootCamp, so your erasing one partition from another on the same drive.
However some people's drive problems extend outside the MacIntosh HD and BootCamp, into the hidden Recovery, HD, EFI or GUID partition map, therefore the only solution is to erase the ENTIRE from a outside source. If you can boot into OS X you should try to make this bootable Recovery USB, you may need to use another Mac to copy that Recovery HD.
http://osxdaily.com/2011/08/08/lion-recovery-disk-assistant-tool-makes-external- lion-boot-recovery-drives/
If you can boot into only Recovery HD, then your should create this and later can use Carbon Copy Cloner to clone back onto the internal drive after the drive has been completely erased to catch all partitions, hidden and otherwise.
Create a data recovery, undelete boot drive
Newer Mac's have Internet Recovery which one can boot and use just like Recovery HD, it's downloaded off the Internet and can be used to erase the drive in it's entirety as well.
https://support.apple.com/kb/HT4718
If you need more security in data deletion, I read this
How do I securely delete data from the machine