I have an old macbook I want to put on ebay. I know very little of macs, linux, etc.
I found info about ‘factory resetting’ it -
Boot it while holding command and S
at the terminal, type
mount -uw /
rm /var/db/.AppleSetupDone
shutdown -h now
I can then get into it / it looked new. But how do I make sure there’s no other user accounts / user info on the hard drive? And is there a native way in the Mac OS to wipe free space / make sure the data isn’t recoverable all that easily?)
Answer from spiceuser-8y57u on community.spiceworks.comMacBook - how to factory reset it AND delete user info
How to reset macbook pro to its factory settings as if new
Help me return my Mac book Air to its factory setting
How to factory reset a MacBook or Mac: Reset a Mac to factory settings
Videos
I have an old macbook I want to put on ebay. I know very little of macs, linux, etc.
I found info about ‘factory resetting’ it -
Boot it while holding command and S
at the terminal, type
mount -uw /
rm /var/db/.AppleSetupDone
shutdown -h now
I can then get into it / it looked new. But how do I make sure there’s no other user accounts / user info on the hard drive? And is there a native way in the Mac OS to wipe free space / make sure the data isn’t recoverable all that easily?)
Not a MacBook expert but, to me, that instruction only removes the /var/db/.AppleSetupDone and will leave the data still there. To sell it you need to wipe the hard drive and reinstall. There are some instructions here: How to reinstall macOS – Apple Support (UK) . However, erasing does not necessarily overwrite the data
FIRST: Please read What to do before you sell, give away, or trade in your Mac on Apple's website.
As for your question, it doesn't state what model MacBook you're trying to sell, so it's not clear if Mac OS X El Capitan is the original OS it shipped with.
However, your best bet is to boot into macOS Recovery using the ShiftOption⌘R keyboard shortcut. This keyboard shortcut is designed to install the version of macOS that originally shipped with your Mac.*
To do this:
- Fully shut down your Mac
- Power up your Mac again but immediately press and hold the ShiftOption⌘R
- Keep the keys down until you see either an Apple logo or spinning globe appear on screen (Note: If you have a firmware password set on your system, then let go of the keys when the password prompt appears)
- Once the Utilities window appears you'll be in macOS Recovery Mode
Now choose to reinstall macOS and follow the prompts.
* For users of older Mac models this option will install the closest version of macOS still available to the original that shipped with it.
As recovery mode is not available on that Mac, your best bet might be to restore with whatever you can any way you can, Then...
Once the Mac is up and running, download a version of macOS that will run on that Mac. Just the installer, don't run it just leave it in /Applications. If it STARTS to install just quit the installer.
Then use a utility like DiskmakerX to create a bootable installer on an 8GB flash drive. There are other ways to make a bootable installer but this is still my favorite.
Once you have the bootable installer you can boot from the flash drive, wipe the drive of the MacBook and install macOS clean with no AppleID associated with it.
I've done this a few times and it works a treat.