Selling my MacBook, how to reinstall OS X?

Discussion in 'MacBook Pro' started by Nero Wolfe, Dec 28, 2007.

  1. Nero Wolfe macrumors regular

    Nero Wolfe

    Joined:
    Oct 28, 2007
    Location:
    Atlanta, GA
    #1
    I (hope to be) selling my MacBook on eBay soon and I obviously need to wipe the hard drive and reinstall OS X but I don't know when to stop the install. That is, I obviously want it to finish but don't want to set up the account, etc so the buyer can do that.

    Anyone done this / know how to do this?
     
  2. mad jew Moderator emeritus

    mad jew

    Joined:
    Apr 3, 2004
    Location:
    Adelaide, Australia
    #2
    Boot from the restore discs holding C, reformat the drive with Disk Utility and then perform the clean reinstall. Pull the power once it gets to the OSX introduction video.
     
  3. aethelbert macrumors 601

    Joined:
    Jun 1, 2007
    Location:
    Chicago, IL, USA
    #3
    Once it finishes installing, the welcome video will start playing. Just shut it off during the video. When it is powered on again, it will be just like opening it out of the box as brand new.
     
  4. Nero Wolfe thread starter macrumors regular

    Nero Wolfe

    Joined:
    Oct 28, 2007
    Location:
    Atlanta, GA
  5. DCJ001 macrumors 6502

    DCJ001

    Joined:
    Dec 12, 2007
    #5
    You don't need to shut it off. You can just type Command-Q to quit the registration like any other program.
     
  6. Nero Wolfe thread starter macrumors regular

    Nero Wolfe

    Joined:
    Oct 28, 2007
    Location:
    Atlanta, GA
    #6
    Doing this again but this time I need to Install OS X, then create a user account to install iLife (it's separate because they are all uprades) then delete the user account so when buyer receives it it's like a 'new' mac.

    I know this can be done. I *think* you would boot into single user mode, use rm to delete the user folder... but isn't there a file that needs to be deleted that tells OS X that the first time setup has never been run?

    Thanks.
     
  7. Chupa Chupa macrumors G5

    Chupa Chupa

    Joined:
    Jul 16, 2002
    #7
    When you are reformatting do at least a "zero out" format otherwise its infinitely easier for the the new buyer could harvest your info off the drive, especially personal data like passwords.
     
  8. davidjearly macrumors 68020

    davidjearly

    Joined:
    Sep 21, 2006
    Location:
    Glasgow, Scotland
  9. davidjearly macrumors 68020

    davidjearly

    Joined:
    Sep 21, 2006
    Location:
    Glasgow, Scotland
    #9
    After installing all the software and updates, boot into single user mode by holding command + s at startup.

    Then, enter the following at the command line:

    $ mount -uw /
    $ rm -R /Library/Preferences/
    $ rm -R /Users/USERNAME/

    $ /bin/launchctl load /System/Library/LaunchDaemons/com.apple.DirectoryServices.plist & (mind the space after 'load')
    $ dscl . -delete /Users/USERNAME (mind the space after '-delete')

    $ rm /var/db/.AppleSetupDone

    $ shutdown -h now


    USERNAME = the name assigned to the user account you used to install all the software.

    Afterwards, your Mac will be ready for the new customer and you just need to pack it and ship it.

    I recently done this when upgrading my iMac to a new MBP.

    HTH, David
     
  10. Nero Wolfe thread starter macrumors regular

    Nero Wolfe

    Joined:
    Oct 28, 2007
    Location:
    Atlanta, GA
    #10
    Thanks for your help that was exactly what I needed!
     
  11. tnaseem macrumors newbie

    Joined:
    Mar 7, 2008
    #11
    Worked great on Snow Leopard too. Thanks for your help!

    Anyone want to buy a MBP? :)
     

Share This Page