Tim's Web Log #3
Thoughts and opinions of an opinionated person

Mon, 30 Dec 2002

Recurse of Technology
Well, after expending 14 hours of effort and starting over twice, I was finally able to complete the brain transplant on my laptop. I don't know why Microsoft wants to make this kind of thing so frickin' hard.

A simple drive image copy wouldn't work because of the rather large bad spot. I tried to use the Windows 2000 tools to search for and patch bad sectors, but as near as I can tell, that tool is entirely decorative, because it had no effect whatsoever.

That means I have to use xcopy to transfer the data. That's OK, I know how to script that. And, as it turns out, transferring the data was the easy part. The hard part was getting Windows 2000 to boot when I was done.

In the end, here was my successful recipe:

  1. Install Windows 2000 from scratch on the new disk
  2. Let it reformat the disk
  3. Choose a system directory name OTHER than my original one
  4. Boot this new, barebones Win2K
  5. Mount the old hard disk (with a life-saving PCMCIA-to-2.5"-IDE adaptor)
  6. Xcopy all of the old data (except for the bad directory)
  7. Modify boot.ini to include both Win2K's

Here's where I start cursing Microsoft. At this point, it will boot the new (temporary) installation. It will boot the OLD (xcopied) installation up to the point where it asks for my user name. At that point, it tells me there is no swap file, and it can't create one, so it won't let me log in. However, if I have the bad hard disk attached, it boots just fine, but it uses Win2K and the swap file from the bad disk!

After a bit of hacking, I discovered there is a registry entry that maps disk serial numbers to drive letters (HKLM\SYSTEM\MountedDevices). The temporary install had C: mapped to the new drive, and E: mapped to the bad drive. The xcopied install had those reversed, so when it went to find the pagefile on C:\pagefile.sys, it wanted to talk to the old, bad drive. I swapped those two registry entries, and now everyone is happy.



Name:


E-mail:


URL:


Comment:


Please enter "blog" here (without the quotes) so I know you are human and not a spam script:


About Me
E-mail Tim
Work info
Personal info
My big dog!
My little dog!
RSS feed

Archives
2010-Jan
2008-Nov
2008-Feb
2007-Oct
2007-Sep
2007-Jul
2007-May
2007-Feb
2006-Oct
2006-Sep
2006-Aug
2006-Jun
2006-May
2006-Apr
2006-Mar
2006-Feb
2006-Jan
2005-Nov
2005-Oct
2005-Sep
2005-Aug
2005-Jul
2005-Jun
2005-May
2005-Apr
2005-Mar
2005-Jan
2004-Dec
2004-Nov
2004-Aug
2004-Jul
2004-Jun
2004-Apr
2004-Feb
2004-Jan
2003-Dec
2003-Nov
2003-Oct
2003-Sep
2003-Aug
2003-Jul
2003-Jun
2003-May
2003-Mar
2003-Feb
2003-Jan
2002-Dec

Categories


Web Sites
P&B company site
Python language site