Wednesday, December 30, 2009

The beauty of multiple hard drives

So, I am a techy kinda guy, and I like having things different.  Part of it is consistency, part of it is ease of usability, and part of it is sheer simplicity.  Back when I was using XP, and honing my skills around an NT based OS (I ran 2000 on a laptop previously, but with the release of XP, I built a new machine around the OS), I figured out pretty quickly that the *nix methodology of using separate partitions for different aspects of the OS and applications and user space makes sense - perfect sense, logical sense, the kind of sense that transcends just logic and traverses into the realm of harmony, of righteousness, of that sense of everything being "right as rain" as the Oracle is fond of saying.

I learned how to make custom installs, thanks to a little gem of a find called nLite, at http://www.nliteos.com (Thanks Nuhi!), and I quickly used it not to cut out any real fat, as some users were prone to do with the OS, but to customize it to my own tastes - I forced it to install to a system that either had dual partitions, or else had dual HDs, and it moved the Entire Program Files tree as well as the Entire Documents and Settings tree to the second drive / partition.  Why?  The answer is not as complicated as you may think.

Ever notice how every tech support agent and all their cronies (not to mention System Administrators, Windows gurus, and virtually every other banner advertisement on the web, and of course,...ME!) advocates some sort of backup strategy to safeguard your DATA when you use a computer?  Ever notice also how it is a PITA to try to figure out what to back up, and even then getting everything back in place is not always the easiest thing to do b/c of some of the idiosyncrasies of the way modern OSs (read: Vista / 7) save settings, extended settings, documents, etc.?

You're not alone - but I figured out very early that having separate partitions for the OS and applications from the data was vital.  I later extended this to separate physical HDs.  It has made re-installation of applications after an OS reinstall almost trivial - and that is a good thing, considering that I am testing no less than 10 apps on a daily basis, not to mention testing productivity applications, anti-malware applications, and for the last year (well, until Aug 9) even testing OSs.  When you test things, you tend to need to restore items as fast as you can, but a lot of times the testing is more of an indefinite type of thing - I continue to keep the latest nightly build of Minefield (the Über Geek bleeding edge testing build of the next generation of Firefox), and it gets upgraded almost daily, and the same goes for most other Mozilla apps.  Therefore, restoring is not much of an option, at least not for me - b/c on any given day, I'll have updated various Mozilla apps, updated the extension versions, updated malware definition files, etc.  Therefore, for me, the best is to perform a clean install every now and again (usually 9-12 months).

OK, I know what you're thinking - I am a Mathematics major, and yet I cannot count the number of days from 9 August to 20 December???  Yeah, well, there was a bit of user shenanigans involved, and I basically did something I should not have done, and hosed my system.  But, see, the good part is that *I* can afford to do that and be back up and running less than 24 hours later.

You see, when I was testing Windows 7, I realized that performing an upgrade of a heavily used system, particularly from Vista, took aeons - not to mention still messed things up with application compatibility issues.  So, my age old strategy of using separate partitions / HDs came in handy in a big way with all the build releases of Windows 7, from 6801 all the way through the RC.  I was able to perform a completely fresh install when needed, rather than upgrading, and therefore avoided a lot of the idiosyncrasies that some folks faced when upgrading over and over, and yet I was still able to use the OS as my daily OS on any given day.


With Vista and 7 both, you can move the location of certain special folders, namely Desktop, Favorites, (My ) Music, (My ) Pictures, (My ) Videos, (My ) Documents, Downloads, Saved Games, Contacts, Searches, and Links.  This makes for an interesting time, b/c by moving all of those to separate partitions / HDs, you are effectively ensuring that, barring a complete multiple partition / total HD failure, that all of your documents, saved games, contacts, even pictures, videos, downloads and searches, will be saved in the even of an OS re-installation.  Furthermore, it means that there is a *LOT* less that you actually have to back up in the even that you need to reinstall your OS.  For more information on how to move these folders, for Vista see http://www.vistax64.com/tutorials/107990-personal-user-shell-folders-move-location.html and for 7 see http://www.sevenforums.com/tutorials/18629-user-folders-change-default-location.html.

Now, that leads me to my point:  Installing the OS all over again is not the long drawn out process of having to install all your apps and configure them, and here is why.  (This assumes that the OS re-installation is not caused by a major fault that also affected other partitions / HDs).  When you go to reinstall, before you do, all you have to do is make a copy of the %USERDATA%\AppData folder onto some free space on a different HD (you'll need to enable viewing of hidden files and folders to do that - see http://www.sevenforums.com/tutorials/394-hidden-files-folders-show-hide.html?filter[2]=File%20Folder%20Settings), and you're off and running with the new OS install.  The key is that that folder stores 99% of all of you program configuration data - everything from .ini and .xml files to .dat, .sqlite, etc. types of files.  What's more, if you start exploring that AppData folder, you'll see some really interesting things.

First of all, there are three subdirectories, Local, LocalLow, and Roaming - the majority of your installed application settings will be in either Local, Roaming, or a combination of both.  I simply keep an explorer window open to wherever I have copied the %USERDATA%\AppData folder to (in my case, F:\, so it ends up looking like F:\{username}\AppData\) and keep another explorer window open to the original %USERDATA%\AppData folder, and just copy and paste any relevant folders from the save copy to the live folder.

As an example, I'll use Firefox.  Now, after the OS was installed, I simply ran a Firefox installer, choosing Custom at the initial screen (I don't use Desktop shortcuts nor QuickLaunch shortcuts, so I like to turn them off - plus, I like making sure that each build has it's own specific (and descriptive) folder name (luckily, Firefox has done just that, each installing into it's codename folder now).  When the installation ends, be sure to uncheck the box next to Launch Firefox/Shiretoko/Namoroka/Minefield now.  Now, from the saved copy (F:\{username}\AppData\) I copy \Local\Mozilla and \Roaming\Mozilla to %USERDATA%\AppData.  Et voila!  Now, when I run Firefox, it sees me profiles just like before and shows me my profile manager, allowing me to pick my profile based upon which build I installed.

After this is completed, any subsequent build installs can commence normally - no need to uncheck the last check box (although you will still want custom if you want to change other options).

It may seem like a lot of work - but, TBH, with my having planned for this previously, and with me having a nice, fast Cable modem connection, including downloading the 4 builds, and then installing them, I spent a grand total of 10 minutes installing and 'configuring' 4 different builds of Firefox.  I spent about 7 minutes for 3 builds of Thunderbird, and about 5 minutes on the latest build of Songbird (I would have spent less, but prior to the crash I was still running Songbird 1.2, so the latest 1.4 build performed an addon check and update).

Oh, and this is pretty much how fast it goes every time I was cleanly installing Windows 7 Beta / RC.  10 applications, all perfectly configured, just like I had it before I wiped the OS, in under 25 minutes.

Not bad for an hour's work.

No comments: