wiping a drive to start new?

Discussion in 'Mac OS X Lion (10.7)' started by FortWorthMac, Aug 21, 2011.

  1. FortWorthMac macrumors 6502a

    Joined:
    Oct 29, 2008
    Location:
    the parched earth of North Texas
    #1
    Hello all,

    I am selling my 2010 MBA and need to wipe the drive and load Lion back on fresh. How does one accomplish this? I tried the Command "R" and that simply reloads the system files.

    Do I have to reload Snow Leopard first then do Lion?

    Thanks
     
  2. soundguy15 macrumors member

    soundguy15

    Joined:
    Dec 9, 2009
    #2
    Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_6 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8E200 Safari/6533.18.5)

    Create a lion boot drive.

    http://www.osxdaily.com/2011/07/08/make-a-bootable-mac-os-x-10-7-lion-installer-from-a-usb-flash-drive/
     
  3. vansouza macrumors 68000

    vansouza

    Joined:
    Mar 28, 2006
    Location:
    West Plains, MO USA Earth
    #3
    Make Your Computer Start Up with the New Computer Setup Program

    Remember when you first got your Mac? When you first turned it on, it booted into a flashy video sequence before it had you begin configuring your users and settings. You may know that if you restore your computer from the original DVDs that you can achieve the results, but what if you don’t want to erase the hard drive? You can achieve the same thing, but you’ll have to be OK with running some terminal commands.

    This is definitely a more advanced tip, can be difficult to learn at first, and you can screw things up. Please make sure it’s what you want to do.

    First, you need to reboot your machine in single-user mode. This mode will start the computer up in a text-only terminal (kind of like a Unix version of DOS). You won’t get any windows or graphicsTo start up in single-user mode, turn your computer on while holding down the Command and “S” keys until your screen begins to show text (rather than the spinning Apple logo).
    Eventually, the text will stop loading, and you’ll be left at a prompt with the pound key: #. Once you’re there, I’m going to have you type a few things. Make sure you type it exactly as I have written it (hit the Return key at the end of each line):
    mount -uw /
    What we did here was tell the computer to make your hard drive readable and writable. I’m now going to have you type the command that will erase all of your users’ data. If you don’t want to do this for some reason, don’t type the next line and continue to the next paragraph. I assume you want to erase your personal data, however, since you want the computer to start up as though it’s brand new.

    rm -rf /Users/*
    The above command says to remove absolutely everything in the Users folder (make sure you type shift-8 to make the asterisk symbol at the end of the line).

    Now, type this:

    cd /var/db/
    rm .AppleSetupDone
    rm .TimeMachine.Cookie
    rm .TimeMachine.Results.plist
    rm .com.apple.iokit.graphics
    rm -rf dhcpclient
    rm -rf samba
    Whew! We had a bunch of commands there. Basically, these are settings and preference files for some programs on the Mac, and we want those to be reset when the computer turns back on. The most important file to remove is the .AppleSetupDone file (and yes, it does start with a period). When this file is present, the computer boots up normally. When it is absent, the computer thinks you’re turning it on for the first time and boots up to the flashy set up program.

    We’re done, so you’ve got two choices: if you want to shut the computer down, type:

    shutdown -h now
    If you want to reboot the computer (to check out your handy work), type:

    reboot
    That’s it! With the above steps, you can install whatever software you like, then make your computer act like it’s brand new.




    Sent from my iPhone 4!
     

Share This Page