Windowsで削除されたEFIシステムパーティションを復元する方法

紛失または削除された Windows EFI ブート パーティションを修復する方法

ディスクパーティションをいじったり、UEFIベースのマシンで誤ってEFIパーティションをフォーマットしたりしたことがあるなら、Windowsが突然起動しなくなったときのパニックをご存知でしょう。多くの場合、システムは「Reboot and select proper boot device起動に必要なEFIファイルが見つからない」といった典型的なエラーを表示します。これは本当に頭の痛い問題で、特にWindowsを最初から再インストールしたくない場合はなおさらです。しかし、CLIの魔法と少しの忍耐があれば、重要なEFIパーティションとMSRパーティションを再作成し、システムを再び起動可能にすることができます。この方法は、Windows 10、11、さらにはWindows Serverマシンなど、基本的にすべてのUEFIデバイスで有効です。

ただし、ディスクパーティションをいじるとすぐに問題が発生する可能性があるので注意してください。EFIdiskpartファイルのコピーなどのコマンドに慣れていない場合は、事前にバックアップを作成するか、少なくとも各ステップの内容を理解しておくことをお勧めします。このプロセスは、Windowsインストールメディアからの起動、EFIパーティションとMSRパーティションの作成、そしてブートローダーの復元で構成されます。こうすることで、OSを再インストールする必要がなくなり、既存のブート環境を復元するだけで済みます。

🎯 UEFI ディスク上の EFI ブートパーティションを再構築する方法

方法1:DiskpartとBCDbootを使用してEFIおよびMSRパーティションを再作成する

これは最も簡単な方法ですが、回復環境への起動が必要です。UEFIモードが有効になっているWindowsインストールまたは回復USBドライブが必要です。確かに最も簡単な設定ではありませんが、間違いなく実行可能です。コマンドプロンプト(インストーラーからShift + F10)で、ディスクパーティションを直接操作できますdiskpart

  1. Windowsインストールメディアから起動します。UEFIモードで起動していることを確認してください。不明な場合は、BIOS/UEFI設定を確認するか、起動オプションを確認してください。UEFIが明示的に記載されているはずです。
  2. インストーラ画面が表示されたら、 を押してShift + F10コマンドプロンプトを起動します。Windowsシェルと似ていますが、リカバリモードになっているのでご安心ください。
  3. 入力しdiskpartてEnterキーを押します。次に、次のようにディスクを一覧表示しますlist disk。ディスクのGPT列に*が表示されている場合は、GPTディスクであり、UEFIモードが正しく設定されていることを意味します。
  4. プライマリディスクを選択します: select disk 0。ここでは十分注意してください。間違ったディスクを選択すると、問題が発生する可能性があります。
  5. 次に、現在のパーティションを一覧表示します:list partitionおそらく、EFI パーティションが欠落しているか破損しています。
  6. EFIパーティションは存在するものの破損している場合は、修復だけで十分な場合もありますが、多くの場合は再作成が必要です。EFIパーティションが欠落している場合は、新しいEFIパーティションとMSRパーティションを作成するために、未割り当て領域が必要になります。
  7. 破損していることが確実な既存のMSRを削除するには、それを選択しますselect partition N(Nはパーティション番号に置き換えてください)delete partition override。削除するには、 で重要なボリュームを削除していないことを確認してくださいlist partition
  8. 次に、EFIパーティションを作成します。少なくとも100MBの空き未割り当て領域があることを確認してください。
    • ディスクをもう一度選択してください:select disk 0
    • EFI パーティションを作成しますcreate partition efi size=100(これにより 100 MB の FAT32 パーティションが作成されます)。
    • フォーマットしてドライブ文字を割り当てますselect partition 1(新しいドライブだと仮定して、 で確認してくださいlist partition)。次に、次の操作を行います。
      • format quick fs=fat32 label="System"
      • assign letter=G
  9. 次に、MSRパーティションを再作成します。Diskpartコマンドを使用しますcreate partition msr size=16。これは、Windowsがシステム関連で使用する16MBの小さなパーティションです。
  10. Diskpartが空き容量が足りないと警告する場合は、メインのWindowsパーティションを縮小する必要があるかもしれません(select volume N, then shrink desired=128) to free up space.
  11. Once these are created, exit diskpart: exit.

After partitioning, the next step is copying the EFI boot files and configuring the boot manager.

Method 2: Copying EFI Boot Files and Rebuilding BCD

Once the EFI partition exists, you need to load the Windows boot files there. If you already have a Windows install disk or recovery media, you can use the bcdboot utility to do that automatically:

bcdboot c:\windows /s G: /f UEFI

This command copies all necessary EFI boot files from your Windows system directory to the EFI volume (the G: drive in this example).It also creates a fresh Boot Configuration Data (BCD) store. On some setups, this step is enough for Windows to boot again. Just make sure the EFI partition has the right files, particularly bootmgfw.efi.

To verify, you can check the EFI volume for necessary files:

  • \EFI\Microsoft\Boot\bootmgfw.efi
  • \EFI\Microsoft\Boot\BCD

If all that sounds like voodoo, don’t worry — after running bcdboot, reboot and see if Windows starts normally. Sometimes, you might need to also repair or rebuild the BCD store manually using Windows Recovery options or bcdedit.

Final Tips & When Things Still Fail

Even after fixing the EFI and BCD, some folks run into boot issues — especially if the UEFI boot entries are misconfigured or need to be recreated. In BIOS/UEFI firmware menus, check if the EFI Boot Priority is set correctly, especially if you have multiple drives or USB sticks plugged in.

And always verify that only the EFI partition has the boot flag set. Using a tool like GParted can help make sure the EFI partition is correctly flagged.

If Windows still refuses to boot, it might be worth rebuilding the BCD manually with bcdedit, or replacing the EFI files with clean copies from another working machine.

Wrap-up

This process isn’t as straightforward as clicking "Recover", but sometimes that’s unavoidable when EFI gets hosed. The biggest hurdle is just knowing what commands to run, and sometimes having to shrink a partition or two to get space for the new EFI and MSR slices. On one setup it worked the first try, on another, I needed to repeat parts of the process or retrieve some files by mounting the EFI volume on a working machine. But in the end, it’s surprisingly doable if you have a reasonable grasp of disk management commands and Windows recovery tools.

Summary

  • Boot into recovery mode with Windows installation media in UEFI mode.
  • Use diskpart to identify unallocated space and create EFI (100MB) & MSR (16MB) partitions.
  • Format the EFI partition as FAT32 and assign a drive letter.
  • Copy EFI boot files with bcdboot or manually rebuild BCD with bcdedit.
  • Check UEFI boot options, prioritize the EFI partition, and verify EFI files.

Wrap-up

Hopefully, this gets you back into Windows without the hassle of a full reinstall. Just be cautious when working with disk commands — one slip, and it’s a whole different recovery mission. Usually, recreating the EFI and MSR partitions and restoring the boot files is enough to revive a dead system, whether it's a physical machine or VM. Fingers crossed this helps someone out there avoid full reinstall headaches.