![how to factory reset macbook os x air how to factory reset macbook os x air](https://cdn.osxdaily.com/wp-content/uploads/2015/10/5-erase-target-volume-mac.jpg)
I'm not sure if you should erase the whole drive or just the OS X partition.
#HOW TO FACTORY RESET MACBOOK OS X AIR INSTALL#
If you're on 10.7 or later and you don't need to perform any updates or install any software, you should normally just erase and reinstall OS X from the recovery partition. Remove the flag indicating that the initial setup has been done. Rm -R /Library/Caches/* rm -R /var/vm/swapfile* Press ↑ to go back and edit the command.ĭelete /Groups/admin GroupMembership factory Don't worry if you enter it wrong, you'll receive an error message. Read /Users/factory GeneratedUID shows the UID of the user, we'll need it below.ĭelete /Groups/admin GroupMembers, where UID is given above. Same goes for the daemon, Guest, messagebus, nobody and root accounts. The usernames starting with an underline, those are system accounts that have to be left alone. System/Library/LaunchDaemons/Īccess the directory services command line utility and remove the factory user:
![how to factory reset macbook os x air how to factory reset macbook os x air](https://i.ytimg.com/vi/CE05PY75mW0/maxresdefault.jpg)
Launchctl load /System/Library/LaunchDaemons/ Remount the root partition in read-write mode.
![how to factory reset macbook os x air how to factory reset macbook os x air](https://cdn.osxdaily.com/wp-content/uploads/2015/10/6-choose-install-os-x.jpg)
A bare console will appear in a dozen seconds or so. Reinstall iLife either from media, or by copying it from the backup you've made in preflight.īoot into the single-user mode by holding down ⌘-S during boot. If it takes just a minutes, you didn't zero the disk! This will take an hour or longer on a mechanical drive, and at least several minutes on an SSD. Use the Disk Utility to erase (zero out) the hard drive. Note: With SSDs, you ideally should first use a utility that lets you do a secure erase of the medium instead. If booting from external media, use the Disk Utility to repartition the hard drive with one partition. Boot from the recovery partition (hold ⌘-R on power-up) if you wish to retain the recovery partition as-is. Unregister the machine from your iTunes account.īoot from an external OS X install media, if you wish to completely wipe the hard drive.