DEV Community

Cover image for Rebuild Windows EFI boot
Sergio Peris
Sergio Peris

Posted on • Originally published at sertxu.dev

Rebuild Windows EFI boot

If your Windows computer is showing the Blue Screen of Death with the error code 0x0000001 or 0x00000098, you're required to rebuild the Windows EFI boot to continue booting Windows as before.

To do the following steps, you require an USB drive with a bootable Windows installer. Boot your computer with the USB drive and enter the recovery mode so you get a command prompt.

Once you have the command prompt, run the following commands one by one carefully as some might be different on your computer.

We enter the DiskPart utility.

diskpart 
Enter fullscreen mode Exit fullscreen mode

Now, we should find the disk where Windows is installed.

list disk Núm Disco Estado Tamaño Disp Din Gpt ---------- ---------- ------- ------- --- --- Disco 0 En línea 953 GB 0 B * 
Enter fullscreen mode Exit fullscreen mode

And we select it.

select disk 0 El disco 0 es ahora el disco seleccionado. 
Enter fullscreen mode Exit fullscreen mode

Next, we should find the volume that contains the boot. Usually it uses FAT32 and has a size of 100 MB.

list volume Núm Volumen Ltr Etiqueta Fs Tipo Tamaño Estado Info ----------- --- ----------- ----- ---------- ------- --------- -------- Volume 0 C NTFS Partición 952 GB Correcto Arranque Volume 1 FAT32 Partición 100 MB Correcto Sistema Volume 2 NTFS Partición 786 MB Correcto Oculto 
Enter fullscreen mode Exit fullscreen mode

And we select it.

select volume 1 El volumen 1 es el volumen seleccionado. 
Enter fullscreen mode Exit fullscreen mode

Next, we format it to delete all it's content.

format fs=fat32 quick 
Enter fullscreen mode Exit fullscreen mode

Once formated, we assign an availabe letter to our volume.

assign letter T: DiskPart asignó correctamente una letra de unidad o punto de montaje. 
Enter fullscreen mode Exit fullscreen mode

And we exit DiskPart utility.

exit 
Enter fullscreen mode Exit fullscreen mode

Now we rebuild the Windows EFI boot by pointing it to our Windows installation.

bcdboot C:\Windows /s T: 
Enter fullscreen mode Exit fullscreen mode

Ensure you're Windows installation is located at C:\Windows before running this command.

Top comments (0)