Where the greatest minds in the universe come to take a dump RSS 2.0
 Thursday, August 14, 2008

Enough people kept asking about sending me a donation as thanks for my help that I added a donation button to the blog. Please note that I am NOT posting stuff here looking for money... I genuinely enjoy helping people out when I can and it is payment enough to me to know that I was able to put a smile on someone's face.

Having said that, if you REALLY feel obligated to send me a little something, the link is on the right side of the page. :)

Thursday, August 14, 2008 2:38:57 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
General
 Sunday, March 30, 2008

Last night, I did something stupid on my primary desktop computer (a Vista box) and needed to restore the system to a recent backup.  I use Windows Home Server on my home network, so I was confident in my ability to roll back the system to a previous night's backup.  I booted my machine using the WHS Client Restore CD, chose the appropriate backup, waited (im)patiently for about two hours while the bits were restored, the system rebooted...

...and that's when I saw the Blue Screen of Death... specifically, a STOP 0x0000C1F5.  Shit.

Now, my first instinct was that I had a sketchy backup image in WHS, and perhaps I should try a slightlly older one.  I repeated the restore process with three older backups and got the same result.  On the verge of going off on a major "WHS sucks" tirade, I instead opted for some Googling on a still-working system to see if I could find any clues.  It seems as though the frequency of reports of STOP 0x0000C1F5 problems is increasing, with most people attributing the issue to a bad Vista SP1 (or prepare-for-SP1) update or patch.  Microsoft acknowledges the problem in KB946084, but there is no public hotfix or workaround save for "clear the MBR and reinstall", which IMHO is unacceptable.

Looking at the problem a little more closely, it seems that if the $TxfLog file is corrupted, the Common Log File System Driver shits the bed at boot time, causing the BSOD.  The particularly nasty thing about this problem is that you cannot even boot the Vista distribution DVD to use its repair tools; the BSOD occurs when you boot from DVD too!  Basically, it crashes whenever a Windows box tries to mount the file system.

Soooo... a fix might be possible by accessing the disk using an operating system that doesn't give a rat's ass about Windows file systems (e.g. Linux).

At this point, I broke out one of my favorite sysadmin tools, SystemRescueCD.  This is a Linux-based live distro that has all sorts of diagnostic and repair goodies on it.  I figured that if I booted the SystemRescueCD disk, I might be able to diagnose, and maybe even repair, the problem.

(Unsolicited plug alert: take a minute to download SystemRescueCD, burn a copy, and add it to your sysadmin bag of tricks.  The folks who make and maintain this disc do a helluva good job... it has saved my bacon more than once.  Check it out.)

So, here's an overview of how I fixed my system.  For part 1, you need a SystemRescueCD disc.  Don't forget that Linux commands are case-sensitive, so pay careful attention to upper and lower case letters and spaces between items on the command line.  Also note that several of these file names contain dollar signs ($), and the $ must be escaped from interpretation by the shell by preceding it immediately with a backslash (\), e.g. "\$foo" when referring to a file named $foo.

  1. Boot the SystemRescueCD disc, answering any localization questions as required, until you get to a shell prompt.
  2. Mount your hard drive at /mnt/windows using ntfs-3g, e.g. "ntfs-3g /dev/sda1 /mnt/windows".  You may have to "ls /dev/hd*" or "ls /dev/sd*" or "fdisk -l" to figure out the correct device to mount.  If you are using a RAID device for your root file system, run "dmraid -ay" to attempt to mount all available RAID file systems, then "ls /dev/mapper" and look for your device.  Also, if the NTFS file system is corrupted (which it probably is if you are reading this post) you may have to add the "-o force" flag to the mount, e.g. "ntfs-3g /dev/sda1 /mnt/windows -o force".  
  3. Verify that you have the correct file system mounted by "ls /mnt/windows".  You should see the content of "C:" or whatever is your boot drive in Windows... if you don't, repeat Step 2 until you mount the correct device.
  4. Navigate to the first hidden folder: "cd /mnt/windows/\$Extend".  Note the backslash before the $; that is important as it keeps the command shell from interpreting the $ (it is really part of the file name).  
  5. Navigate to the second hidden folder: type "cd \$RmMetadata".  Once again, note that the $ is escaped with a backslash.
  6. Type "ls".  Among the files/folders listed you should see "$TxfLog".
  7. Take a deep breath and recursively remove the $TxfLog file: "rm -rf \$TxfLog".  Once again, note that the $ is escaped with a backslash.
  8. Use "ls" to verify that it has been deleted.  (You should see the same listing as in Step 6 except the $TxfLog folder is now missing.)
  9. "cd /", "umount /mnt/windows", and "init 6" to reboot, removing the CD when appropriate.

At this point, your system will no longer bluescreen, but it won't boot, either.  To fix that, here's part 2, for which you'll need a Vista DVD.

  1. Boot the Vista DVD and choose "Repair my computer".
  2. When the system looks for Vista installations to repair, it probably won't find any.  Don't panic; just click Next.
  3. In the System Recovery Options list, choose Startup Repair.  The system will process for a minute or two, then state that it needs to reboot to finish its repair.  Allow it to reboot.
  4. Remove the DVD at the appropriate time and allow the system to boot from the hard drive.
  5. If the system complains that it was not shut down properly, choose "boot normally".

That's it.  With any luck at all you should have a bootable system again.

The STOP 0x0000C1F5 bug is a nasty one, and I am confident that Microsoft will release a hotfix and/or Windows Update for it soon.  In the meantime, if you are experiencing the problem, I hope this article helps to get you running again.

Sunday, March 30, 2008 7:02:03 PM (Eastern Standard Time, UTC-05:00)  #    Comments [117] -
Vista | WHS
 Thursday, November 01, 2007

One feature of blogs and web pages (that can be both a blessing and a curse at various times) is that everything you post is indexed by the Internet search engine sites.  A side effect of this is that people sometimes “Google themselves” to see what search results turn up.  (C’mon, admit it – you’ve done it.  Everyone does it.)

I’ve been trying to track down two friends of mine from high school and haven’t had much luck.  I’m hoping that they are as vain as the rest of us and follow suit by Googling themselves from time to time.  With any luck, they will see their names mentioned here and get in contact with me.

So… Gary Rosenthal and Michael Finnegan, members of BHS Class of 1980, if you happen to trip across this posting PLEASE contact me… I’d love to catch up with you!

Thursday, November 01, 2007 12:06:54 PM (Eastern Standard Time, UTC-05:00)  #    Comments [0] -
General
 Saturday, October 27, 2007

OK, OK, OK.  I did it.  I broke down and started a blog.

People blog for a variety of reasons.  Some use blogs as a newscast.  Some simply vent on every possible topic.  Some, I believe, just like to see themselves in "print".  Whatever.

I started this blog for one simple reason: I'm lazy.  From time to time, friends, colleagues, family members, or folks with whom I'm collaborating on a project ask that I send some information to them.  Sometimes people want to see some photos that I've taken.  Sometimes they want to get access to an application I've written.  And, yes, sometimes I just feel like ranting myself.

Blogs are cool because you basically have an easy-to-use "scribble pad" to stick text and data on the Internet with minimal effort.  Hosting my own blog lets me evaluate and extend the technology I'm using.  It also means that anything I write here is free from censorship.  Shit.  Fuck.  ShitFUCK.  See how well that works?

That's enough for now, until I come up with something "real" to post here.

Saturday, October 27, 2007 2:01:04 PM (Eastern Standard Time, UTC-05:00)  #    Comments [2] -
General
Navigation
Categories
 
 
 
Archive
<September 2008>
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011
Blogroll
About me
Bio
Contact me Send mail to the author(s)
Make a donation
Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2008
Tom Karpowitz

Sign In
Statistics
Total Posts: 4
This Year: 1
This Month: 0
This Week: 0
Comments: 119
All Content © 2008, Tom Karpowitz
DasBlog theme 'Business' created by Christoph De Baene (delarou)