Archive and Install Snow Leopard

In: Apple

30 Aug 2009

Actually, it’s as simple as pie, if Terminal made pie, that is.

Start up from the Snow Leopard DVD (or start the Snow Leopard Installer from Leopard or Tiger, and after a restart it’ll boot off the Snow Leopard DVD).

Go to the Utilities menu and select Terminal.
Type this in Terminal:
“cd /Volumes/Macintosh\ HD” – or whatever your current system partition is called
Press Enter
“mkdir Previous” – to create a folder called Previous (I opted not to go for Previous System, cause I have no clue as to what the Snow Leopard installer would do to a “reserved” folder name)
Press Enter
“mv Applications/ Developer/ Library/ System/ Users/ ./Previous/” – to move these folders to the Previous folder
Press Enter
You should also delete any other folders and files lying around which don’t contain information you’d rather keep. I deleted everything else except including all the files and folders beginning with a period (I reinstalled again). It didn’t hurt and I didn’t lose any data. You just have to:
“rm -r foldername” and press Enter
Then go to the Terminal menu and select Quit.
Continue with your installation.

Your data should be available in the Previous folder after your new clean Snow Leopard install is complete. I know it was there for me. Enjoy. Don’t forget that you will be creating a new user on a new system once this is done, and you may have to “sudo chown” and “sudo chgrp” your files to be able to access them from your new user account.

PS: I don’t know how this works for FileVault users but files are definitely preserved.

NB: If this doesn’t work for you or you screw up in any way, should you lose data or whatever, it’s your problem, not mine. I shall not be held liable for that. This advice is provided “as is”, with no guarantees whatsoever, bla bla, bla bla bla.

31 Responses to Archive and Install Snow Leopard

Avatar

Matt

October 8th, 2009 at 2:27 pm

I’ve restarted and tried putting in “cd/Volumes/Macintosh\HD” and it just says “No such file or directory.” I know it’s there and I know it’s called “Macintosh HD.” Is there something I’m missing?

Avatar

chris

October 8th, 2009 at 11:23 pm

Your syntax is off. I think you mean:

cd /Volumes/Macintosh\ HD/

Use tab-complete to avoid errors.

Avatar

Karl Reed

October 23rd, 2009 at 6:27 am

This method worked great for me, but now I’m not sure how to set up a new admin acct so that I can copy “previous” stuff over to the new directory. Can anyone offer some help? Plz & thx!

Avatar

TJ

October 25th, 2009 at 2:36 pm

@Karl Reed: After you’ve finished installing Snow Leopard, you’ll have all your stuff right there in the “previous” directory, and you can just copy it using Finder. I personally don’t copy over the folders but just copy the contents of the Desktop, Documents, Downloads, Movies, Music, Pictures, Public and Sites folders to the new account I created during the Snow Leopard installation (at the end, when it asks for your details and what username and password you want). That way you avoid most issues with those folders belonging to the username they did under Leopard.
I also copy the folders from Library/Application Support/ for apps that required lots of customization and for which I’d rather not start fresh.

You can also move stuff via the Terminal, if you so need.
And whenever your user needs admin rights, you just “sudo”. I.e. If “mv /Previous/Documents/* ~/Documents/*” tells you you don’t have the rights to execute that move operation (though you should and this is just an example) you can always just “sudo mv /Previous/Documents/* ~/Documents/*” and after hitting Enter and then entering your user’s password, everything should execute.

Do note that using sudo in improper places (like the /System folder) can really foobar your system.

Hope this helped.

Avatar

Zachary

October 26th, 2009 at 5:56 pm

Just did the archive and install- however when I was done I was not prompted to create a new user account- as my old users were still there. I signed into my old “admin” account to find the system looks new and my previous folder contained everything I wanted it to- yay- but I can’t make any changes or move anything over since all accounts are now “Standard”. How do I make one an “admin” account if I no longer have the rights to do so?

Avatar

zachary

October 27th, 2009 at 7:30 am

Nevermind. Found a solution. Ended up just deleting the old “admin” through terminal which prompted the system to have me make a new one. Good as new.

Avatar

TJ

November 1st, 2009 at 3:28 am

@Zachary: Wow… that’s weird… and really shouldn’t have happened, though.

Avatar

James

November 3rd, 2009 at 11:15 pm

I tried this and had the same result as Zachary; Snow Leopard installed cleanly, but I was never prompted to create a new user. And my old account is still there, but now is a “Standard” one, without admin privileges. Zachary, if you’re out there, how did you delete the old “admin” in terminal?

Avatar

JKT

November 13th, 2009 at 9:21 pm

There were various kinds of archive install. Remember how you were prompted whether you wanted to retain user accounts, network settings, etc? To that end, I recommend using “cp’ instead of “mv”. Leave the Library and Users directories where they are so that the new install can read and retain the old settings. Yes, this leaves open the possibility that any corruption you may be reinstalling OS X to get around will be retained, but it also might go swimmingly. So I recommend copying first. If your system still doesn’t behave properly, only then try the moving the old directories.

Avatar

TJ

November 14th, 2009 at 10:16 am

That kind of defeats the whole purpose of Archive and Install though…
Plus that one can copy those folders while still running Leopard, from Finder, and wouldn’t need to go all Terminal to do it :)

The really nice thing about using mv and clearing all crap out for a new install is that afterwards you can just copy your old keychain files or Application Support files you really do need.

Avatar

Mr.Bojangles

December 2nd, 2009 at 1:18 am

Alternatively:
cd /Volumes/Macintosh\ HD
mkdir Previous
mv * ./Previous

This moves the Unix items you don’t normally see out of the way and preserves your Fink / Ports / etc items. (Basically anything in the root of your drive, but if you have more then 9 folders there tops, you’ve been doing it wrong.)

Avatar

j

January 2nd, 2010 at 1:24 am

I am having this problem where the system wont startup past the white opening screen. I dont even get a apple logo. I have some very important files that I want to backup –

I just did what you explained. It took 2 mins and that was that…
I am a litttle sceptic that, that simple action has saved all my documents. Am understanding right that supposedly I can reinstall snow leopard now, and find my old desktop files and everything in a folder somewhere after finishing the installation?

Is this the best way of saving your files if your mac wont start?

Avatar

TJ

January 2nd, 2010 at 5:37 am

That should really be it.

Just to make sure, you can go into that Previous folder via Terminal, by typing: “cd Previous” then hitting ENTER and then listing all the files and folders by typing “ls -al” and hitting ENTER.

This is the “simplest” way of saving your files on the same computer if your Mac won’t start.
The best way would be starting in Target Disk Mode if you have a second Mac and they both have Firewire ports, and then copying the files to another hard drive altogether, just in case something is wrong with the drive itself and not your OS.
Oh, and using a backup service is the best for peace of mind. I personally use Mozy for my Mac.

Avatar

Rob

January 17th, 2010 at 6:32 pm

you don’t have to go to all that trouble. if you already had snow leopard, you just choose the partition where it is installed, and it will automatically archive install it. no more “previous” folders and a whole lot simpler.

Avatar

TJ

January 21st, 2010 at 8:23 pm

Rob, you’re wrong here. It doesn’t archive and install, it installs over it. Archive and Install means and has always meant “move everything to a Previous System folder and install a fresh copy of OS X”.

Avatar

Jack

February 2nd, 2010 at 7:26 am

RE:I just did the archive and install- however when I was done I was not prompted to create a new user account- as my old users were still there. I signed into my old “admin” account to find the system looks new and my previous folder contained everything I wanted it to- yay- but I can’t make any changes or move anything over since all accounts are now “Standard”. How do I make one an “admin” account if I no longer have the rights to do so?

I have this same exact problem and Im stuck here any help would be great. Please and thanks you!

Avatar

TJ

February 5th, 2010 at 11:27 pm

Well, Zachary deleted that “admin” account and it fixed it for him…
NOTE: This will also delete the files in /Users/username but not those in /Previous/Users/username. Don’t come crying if you delete your data.

To delete an account from Terminal you could just run “dscl . -delete /Users/username”

Avatar

eric

March 3rd, 2010 at 3:05 am

if you really need an admin account you can also just log in to root obviously if you hadnt tried that, but just checking, and if you cant the use the singleuser mode trick. just google mac singlueuser mode admin hack and you should find how to do it

Avatar

eric

March 3rd, 2010 at 3:17 am

im bored so i might as well post how.

restart your computer while holding command+s
once you get to white text on a black screen, and you let it finish doing whatever its doing, type in

passwd root
(new password)
(confirm new password)

then you should be good. if you dont get prompted for a new password after typing passwd root, type

/sbin/mount -uw /
(let it finish)
passwd root
and type the new passwords

Avatar

hollie

March 17th, 2010 at 10:29 pm

my computer was recently stolen from me and returned. the asshole who stole it knocked out all of my info and I’m trying to archive and install but I don’t know where the utilities button would be and snow leopard just let me reinstall and didn’t give me any options? Anyone have any ideas?

Avatar

M@ Smith

April 2nd, 2010 at 5:47 am

Pretty sure that Rob is right. an hour ago I was convinced that I’d fubared my data. Following apple’s instructions, and then I thought that I missed a step. I panicked once i thought that I was overwriting everything and hard booted the computer back to the install disk. I entered the terminal and the directory didn’t show anything non system! Convinced that it had overwritten everything, I followed the instructions here anyway. After completing a new install, all the old data appears to be there in my Previous folder. I haven’t started moving anything but I don’t expect any problems except perhaps with MobileMe, blackberry, and iPod syncing?

Avatar

M@ Smith

April 2nd, 2010 at 5:25 pm

If someone wanted to test this procedure they should use a different folder name than Previous? Pr3v10u5 :)
I had to drag all my files over manually to any existing folders on the new system since they are “required” or something to that effect.
Also some could not be used since they are in use. In the case of the dock, I decided to keep the new one. It was nice to get my preferences back. I am afraid that I crossed the streams again because I ran a ‘sudo chmod 755 [userFolder]‘ before moving the files, however I don’t think that was helpful and therefore not necessary.

Avatar

BoomBox-Creations

April 3rd, 2010 at 10:40 am

How would you do this to back up the files to an external hard drive?

Ive tried the cp command instead, so it looks like this:

cp Volumes/(drivename)/ ./Previous/

But it keeps on coming up with an error of no such file or directory.

Can someone help?

Avatar

BoomBox-Creations

April 3rd, 2010 at 10:46 am

Edit the one above:

i also tried

cp Volumes/ “(drivename”/ ./Previous/

but still no luck (the “” are supposed to be there, it tells it that the drive is the whole name if there is a space)

Avatar

TJ

April 6th, 2010 at 8:58 am

Are you sure the drive’s mounted?
Try a “ls -l /Volumes” and see if it’s there. If it’s not, you may have to mount it using “diskutil mount /dev/HDDDEVICE”.

HDDDEVICE = diskXsY where X and Y are numbers representing the device and respectively the partition. Hope this helps you.

Avatar

BoomBox-Creations

April 8th, 2010 at 12:41 pm

I figured out the problem with the drive, it was an NTFS, so no working, thanks for the help anyway.

I ended up taking it into the shop, i archived it to the hard drive and the install failed half way through…. Multiple times.

It was a software bug.

Thanks for all the help that you managed to give and hope it works for others.

Avatar

Bill Thompson

June 24th, 2010 at 1:39 am

If the object is to go back to 10.6.3 after using Software Update to take it up to 10.6.4 (have the 10.6.3 Install DVD in hand), is the procedure any different than described above?

Thanks!

Avatar

TJ

June 24th, 2010 at 3:57 am

Same thing, basically. Unless you have a Time Machine backup of before the update which you’d rather use.

Avatar

George

August 1st, 2010 at 5:52 pm

Neither method for getting an admin account worked for me. Got nothing on the first suggestion and got No such file or directory on the second. What now?

Avatar

TJ

August 11th, 2010 at 5:42 pm

Seeing as I’ve never run into any of these problems (and have done this quite a lot, on multiple Macs), I’m guessing this has to do with the fact that I remove all the files and folders in /Volumes/Macintosh HD with the exception of the ones I move to the Prev folder.

Avatar

MacBook won't start,flashing apple grey screen - MacTalk Forums

August 16th, 2010 at 11:07 pm

[...] Snow Leopard DVD, entering Disk Utilities (under the top Utilities menu) and using the Terminal. Instructions shown here. But I'll post a moderator here to come in and answer the question, as it's some ways out of my [...]

Comment Form

About this blog

Outlet for giving a crap.

Services I like enough to recommend

Subscribe via Email

Enter your email address:

Delivered by FeedBurner

Twitter: intlect