Formatting Mac Hard Disk so it's like new installation

Discussion in 'Mac Basics and Help' started by Arganos0, Dec 21, 2010.

  1. Arganos0 macrumors member

    Joined:
    Sep 24, 2008
    #1
    Hey there,

    I'm going to sell my macbook. I was wondering if it's possible to wipe my hard disk fully, and make the mac start a clean installation when it's powered on (like when you buy a new mac) for the new user.

    I tried to google it, but didn't find anything very helpful.

    Kind regards,

    Arganos0
     
  2. Dark Dragoon macrumors 6502a

    Dark Dragoon

    Joined:
    Jul 28, 2006
    Location:
    UK
    #2
    You should be able to do a clean install from the install disk, then at the point where it asks you to restart instead remove the disk and shut it down. On the next boot it should then run through the next step of the setup where it asks for your details etc... just like when you buy a new Mac.

    It's probably worth testing it first as I'm not certain, though as far as I know it should work.

    Also of note is that you might want to use disk utility on the install disk to erase (zero out) the hard drive first, so that your old files can't be recovered by the new owner using file recovery software.
     
  3. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #3
    Yes, but if you want to install iLife and any updates, just delete this file when you are done:

    /var/db/.applesetupdone

    The next boot will be like new, where it walks through the setup.
     
  4. peterja macrumors regular

    peterja

    Joined:
    Jan 21, 2008
    #4
    To get the Welcome animation on next reboot you apparently delete this file, in a terminal:

    sudo rm /var/db/.AppleSetupDone
     
  5. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #5
    Just to clarify, this does the same as mine, only this is the Terminal command to delete that file.
     
  6. Dark Dragoon macrumors 6502a

    Dark Dragoon

    Joined:
    Jul 28, 2006
    Location:
    UK
    #6
    The downside of removing the /var/db/.applesetupdone file later though is that you'll leave the account you used to do the setup/install iLife etc... on the machine. Whether this is actually an issue or not is another matter.
     
  7. r.j.s Moderator emeritus

    r.j.s

    Joined:
    Mar 7, 2007
    Location:
    Texas
    #7
    Doesn't applesetup create a new admin account? I thought it did.
     
  8. Dark Dragoon macrumors 6502a

    Dark Dragoon

    Joined:
    Jul 28, 2006
    Location:
    UK
    #8
    Yes I'm pretty sure it does, what I meant was the account you would have used to set up iLife and install updates would still be on the machine. So the new user would end up with two accounts, the one they set up and the one the previous owner set up. Of-course the new user can then go into the account preferences and delete the previous owners account if they wanted.
     
  9. peterja macrumors regular

    peterja

    Joined:
    Jan 21, 2008
    #9
    Yeah, I missed your post there 2min.. :)
     

Share This Page