Saturday, December 17, 2011

In which I fight bcdedit.exe for a week

I'm fixing a friend's HP Pavilion dv6928us laptop, which got infected with one of those fake system fix malwares. The malware pretended to find all kinds of horrible problems which were about to cause IMMINENT SYSTEM FAILURE and also by the way marked all of the files in her user directory hidden, making it seem like ALL HER FILES WERE GONE OH NO. Tried removing it with half a dozen different tools, no go.

So after doing some attrib -H C:\Users /S /D, backing everything up to an external drive, reformatting C:, restoring Vista from the HP Recovery partition, and installing Microsoft Security Essentials, everything should have been hunky-dory.

Except there was a little chunk of rootkit stuck somewhere in the Master Boot Record or BOOTMGR or something, and MSE kept detecting it and failing to remove it. So I did what anyone* would do and attempted surgery via LiveCD. I backed up the Master Boot Record and the Partition Boot Records, used sfdisk -d to make a text version of the partition table, dd to zero out the whole part of the disk before the start of the first partition, sfdisk to restore the partition layout, and BootICE to reinstall the Vista MBR. Problem solved! Or... not. Somehow, doing that screwed up the Boot Configuration Database so that the laptop would boot Vista but not boot the HP Recovery partition. Well, until that point I didn't know that the BCD existed so I hadn't made a backup of it before reformatting. This then set me off on about a week (I had a cold for much of it so a lot of that week was spent sleeping) of painful wrestling with bcdedit.exe and related tools, absolutely none of which resulted in a working recovery partition.

Then while poking around in the HP-specific areas of the disk, on the off-chance that there was a program named "FIX HP RECOVERY PARTITION BCD ENTRY" (yeah right) I found, against all odds [sfx: angelic chorus] C:\WINDOWS\SMINST\HPRM-BCDFix.cmd.bak.

Well, that was easy.

Of course, before running it I opened it up to see what it did, which seemed to be exactly what it said on the label. I made a copy without the .bak extension and ran it from an Administrator console.

And it worked.

TIL that the answer I'm searching for far and wide is sometimes right under my nose.

*Anyone insane.

Monday, January 03, 2011

Thanks, Netflix!

So I signed up for a Netflix instant streaming free trial under the mistaken impression that I would be able to use it to watch movies. Turns out they require Silverlight, which is of course the work of Satan. After doing some searching to find out if there's a way to stream to a PC without Silverlight (there isn't) and whether it's possible to contact technical support without making a phone call (it isn't) I decided to cancel my account. Time elapsed: 42 minutes.

Now here's the interesting part: on the why did you cancel, oh god, why? page there are the obvious questions, but midway down there's something that kind of surprised me. They want to know where I'm going to be watching movies and TV shows now that I'm cut off from their life-giving nectar, which is a reasonable question. However the first two multiple-choice options are Bootleg DVDs and Peer-to-peer / bit torrent sites such as Torrentz.com, Demonoid.com, Tvlinks.com, ThePirateBay.org, etc.

Wow, Netflix is giving out juicy tips on where to illegally acquire copyrighted material! I'm really glad they have such a positive attitude towards P2P that they're basically advertising it to ex-customers! A+++++ WOULD CANCEL SERVICE AGAIN.