Resetting Macbook Pro as if it has never been setup

Discussion in 'Apple' started by Aawara Chowdhury, Jul 21, 2007.

  1. Hi -

    I turned on my Macbook Pro and setup a user account, but didn't run
    Migration Assistant at that time. I've now learned that it would have
    been easier to transfer my filevault-protected account on my iBook if
    I had run Migration Assistant at that time (before account setup).

    How can I "reset" my MacBook Pro to be as is it has never been turned

    Aawara Chowdhury, Jul 21, 2007
    1. Advertisements

  2. You can run Migration Assistant in /Applications/Utilities at any time.

    Alternatively if you want to rerun the first-boot setup you need to
    delete the invisible file /private/var/db/.AppleSetupDone. From a
    Terminal command prompt:

    sudo rm /private/var/db/.AppleSetupDone
    Roger Johnstone, Jul 21, 2007
    1. Advertisements

  3. Or do an erase and install.
    Michelle Steiner, Jul 21, 2007
  4. Aawara Chowdhury

    The Mac Dude Guest

    Having done this step recently I found that the extant user accounts
    remain (the one extant one anyway). However, the account you create on
    the subsequent turn-on will become the new default account on startup.

    I don't know what happens in a name conflict situation (i.e. the new one
    you make has the same name as an old one).

    As always:backup twice, lose nothing!

    Mac Dude
    The Mac Dude, Jul 21, 2007
  5. I just tried it.

    "The name you entered cannot be used. Please check the highlighted field
    and choose a different short name."
    Very good advice.

    I came across .AppleSetupDone here

    The reader comments on that page also give a method of deleting the last
    administrator account. This is very useful if you want to set up a Mac
    for someone else. You can do a clean install of the OS, install all the
    updates, then remove the admin account. When it's next turned on you'll
    get the setup assistant and no other user accounts, just as if it were a
    new Mac, but with an up-to-date OS.

    Start up in single-user mode (Command+S) and mount the volume as a
    readable volume (using the instructions at the prompt).

    Then type the following, where <admin> is the name of the
    administrator's account:

    nicl -raw /var/db/netinfo/local.nidb delete /users/<admin>
    rm -r /Users/<admin>
    rm /var/db/.AppleSetupDone
    Roger Johnstone, Jul 21, 2007
  6. Aawara Chowdhury

    Warren Oates Guest

    If you read the man page for asr, down where it begins "How to use asr,"
    you'll learn some interesting stuff.
    Warren Oates, Jul 21, 2007
  7. In <>,
    I tried this already. It doesn't work if the account that I want to
    copy over from my iBook is filevault-protected.
    This worked like a charm. The filevault-protected account copied
    over just fine.

    Thank you, Mr. Roger Johnstone!

    Aawara Chowdhury, Jul 21, 2007
  8. That's what I meant by "re-install the operating system". ; )[/QUOTE]

    But not in the message I replied to. Further "reinstall" could be done
    by archiving and installing, and that wouldn't accomplish the desired
    Michelle Steiner, Jul 21, 2007
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.