MacBook Pro Data Wipe – How to Delete All Information Before Selling

data-recoverydisk-utilitymacbook pro

I have a Mac that runs Snow Leopard and I intend to upgrade it to Mountain Lion and sell it on ebay. However, I only have one hard-drive, and I'm sure I can't use something in my OS to delete my OS and all user data.

Is there something for this that's built into the firmware that I can do on boot, or otherwise?

I have source code on my Mac for multiple corporations' proprietary software and I can't risk somebody gaining access through the use of any sort of disk recovery tool. I plan to use a 7 pass erase rather than simply deleting the directory.

Best Answer

On Snow Leopard, you would need to boot from an external OS to wipe the drive.

On Mountain Lion (or Lion), the system makes a recovery HD so you can self-wipe the Mac. This is a much, much faster and easier task, so I recommend you upgrade first and then do the wiping using a recovery boot and Disk Utility.

I personally would do these steps (and you could skip the first three steps if you wish since things are going to get erased later whether you clean up first or not):

  1. Make a new admin account on Snow Leopard - call it Apple or something generic and set it to be the account that logs into the Mac.
  2. Log out of all accounts and reboot
  3. Delete your account and let the system do a quick delete of the content
  4. Install Lion or Mountain Lion
  5. Install updates to the OS and then shut down the Mac
  6. Reboot into OS X Recovery - hold down Command-R during startup
  7. Use Disk Utility to do a seven pass erase or whatever level of wiping you prefer.
  8. Quit Disk Utility to go back to the main Recovery menu
  9. Reinstall your OS on the cleanly wiped drive from the main menu
  10. Power off the Mac once the OS has been installed so that the buyer gets that "Welcome to the Mac" experience but no chance to recover your files or data

If I were doing erasing of a personal Mac, I would do a one pass zero and then enable FileVault on Mountain Lion. That would take the zeroes and then encrypt each block securely - so that no two blocks would be identical on the drive. If there were work data, I might repeat zeroing it and turning on a second FileVault pass or follow whatever policy work approves for disposal of confidential data. In reality, anyone that wants to recover data from a one pass write of zeroes needs to take the drive apart in a clean room and image it with some high priced tools, so scrambling things with FileVault seems like enough overkill to me.

Also, you might look here for answers and comments on selling a Mac with software that is licensed for download like Lion and Mountain Lion - most people ask the seller for an email and gift the purchase to them so that the buyer has a legitimate copy. My steps above won't keep your Apple ID on the Mac and the intaller self-deletes itself, so at worst, the seller could undelete that one file and recover the Apple ID email you used. To counter that, you could boot into recovery after the OS was installed and wipe the free space using Disk Utility.