突然のフリーズ

昼食から戻ったら、CF-T5 が起動しなくなっていた。バッテリー駆動のまま、USB バスパワーの HDD を2台つないで席を離れたのが直接の原因ではあるのだが、この程度のことでブート不能に陥るのは非常に困る。具体的なエラーは、メモしていないのではっきり覚えていない。

winload.exe is missing or corrupt

などと出て、インストールディスクを入れて再起動せよと表示されている。都合により手元にディスクは無い。無い場合はメーカーのサポートに聞け、とすべて英語で書いてある。

で、色々調べたところ、winload.exe が無かったり(missing)、破損(corrupt)したりしているわけではないらしい。メッセージは明らかに間違っている。かつての MS-DOS の「コマンドまたはファイル名が違います」のような紛らわしいエラー表記である。さらに、インストールディスクが無くても復旧できそうだ。bcdedit というコマンドでブート関連の修正をすればいいらしいのだが、そもそもウィンドウズが起動しないのでどうしようもない。ブートローダFreeBSD のものに置き換えているのも今回のトラブルの原因の一つかもしれない。

解決方法は、 winload.exe is missing or corrupt (no it's not!) を参考にした。中程に記述があるが、うまくリンクできないので全文引用しておく。

Solution Summary

On working PC
===========
1. To run bcdedit.exe I needed to boot windows first ... for that I
 downloaded Microsoft Windows AIK (around 1 GB) from
http://www.microsoft.com/downloads/details.aspx?familyid=C7D4BC6D-15F3-4284-9123-679830D629F2&displaylang=en
It is free.

2. I loaded the image file in daemon tools' virtual dvd drive and
 installed Windows aik and then opened 
"start>All Programs>Microsoft Windows AIK>Windows PE tools Commad Prompt"

3. Then I issued following commands
 a. copype.cmd x86 d:\myWinPE1
 b. D:\myWinPE1>oscdimg -n -bd:\myWinPE1\etfsboot.com d:\myWinPE1\ISO d:\myWinPE1\hellyea.iso

4. Then I burned the "hellyea.iso" created in previous step to a blank CD.
 (difficult part is over)

On broken PC:
==========

5. I booted the PC with the CD created in previous step and I was shown
 a place command prompt
(from here onwards you can also follow the steps explained by DivineLogix)

6. In this command prompt I enterd following commands
 a. c:
 b. cd Windows\System32
 c. bcdedit /set {default} osdevice "partition=C:   (assuming your windows are in C)
 d. bcdedit /set {default} device "partition=C:

7. Then I removed the CD and rebooted the system and VOILA I had my windows back again.

動いている windows でブート CD を作成して、壊れた PC でこの CD をブートした上で bcdedit によって正しいパラーメータを与えてやれば良い。ということで3時間かかってようやく復旧した。午後のほとんどを使ってしまった。