Can someone explain how I got a Windows EFI error message without trying to install Windows?

Matthew

I'm using a HP Z620 workstation.

My main hard drive is Ubuntu, and it was working fine. I physically removed the hard disk with Ubuntu on and put in a brand new hard disk, and tried to install another OS (not Windows) and that failed. So I took the new hard disk out and put my Ubuntu hard disk back in and expected it to work as before. Instead, I get a Windows blue EFI error screen saying I need to repair my computer?

Now, when I want to boot into my old Ubuntu disk, I have to put in a rEFIt USB boot loader to manually select the hard drive otherwise it won't boot. I'm sure I can fix it somehow, I'm just wondering what exactly happened here?

Thank you!

Rod Smith

I have two hypotheses. The first is that the error message you report isn't actually a Windows message, but just something that's formatted in a style similar to what Microsoft uses. You haven't quoted it exactly or presented a screen shot, so it's impossible for us to judge precisely what it is.

My second hypothesis is that when you installed Ubuntu on the first disk, you did not completely wipe the Windows files from the EFI System Partition (ESP), which is where boot loaders reside on an EFI-based computer. This caused no immediate problems because your Ubuntu installation set EFI variables in NVRAM to point to the Ubuntu boot loader (GRUB) as the default, so the Windows boot loader was not activated. When you swapped your disks, though, your EFI noticed that the Ubuntu boot loader was not available and so deleted its entry from the NVRAM. When you swapped the disks back, the firmware relied on hard-coding of the Windows boot loader's location as a fallback, since it had no entries in NVRAM that worked, and the Windows boot loader sprang back to life.

The second hypothesis seems more likely to me. If it's correct, the solution is to re-create your Ubuntu/GRUB boot loader entry. This can be done in any number of ways. The simplest from a computer perspective is to boot an emergency system and use a tool like bcfg (in an EFI shell) or efibootmgr (in Linux) to re-create that missing entry. This requires a moderate amount of expertise, though; see this page for a summary. A simpler solution from a human perspective is to use Ubuntu's Boot Repair tool, which will re-install GRUB and set the new GRUB as the default. Another option is to install another EFI boot loader; several are available, and if you have problems with GRUB, getting another one to work may be easier than fixing GRUB, which is quite arcane and complex to set up manually.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Can someone explain how I got a Windows EFI error message without trying to install Windows?

来自分类Dev

How can I reinstall Windows 7 on a laptop without the drivers CD?

来自分类Dev

trying to install windows after ubuntu

来自分类Dev

How can I dual boot Ubuntu and Windows 10 but have my PC boot into windows without prompting me at start up

来自分类Dev

can someone explain this short segment of C++ code, I can't make heads or tails of it

来自分类Dev

在Windows上挂载EFI分区

来自分类Dev

Windows USB EFI启动文件

来自分类Dev

Windows如何还原EFI数据?

来自分类Dev

How to install pyYAML on windows 10

来自分类Dev

How can I stop my installer from triggering Windows 10's "This app has been blocked for your protection" error?

来自分类Dev

How can I enable or disable a windows service in .NET?

来自分类Dev

Windows: How can I use the command line to set registry permissions

来自分类Dev

Windows: How can I use the command line to set registry permissions

来自分类Dev

如何知道Windows是否以EFI模式安装?

来自分类Dev

如何修复Windows 8 EFI Bootloader?

来自分类Dev

Windows 8.1和Debian Dualboot EFI问题

来自分类Dev

在Windows上调整efi分区的大小

来自分类Dev

恢复Windows 10 EFI启动项

来自分类Dev

双启动EFI Windows 8.1 / Ubuntu

来自分类Dev

不同的EFI和Windows双启动

来自分类Dev

在 Windows/Ubuntu 之间共享 /boot/efi 分区

来自分类Dev

安装缺少Windows 10 efi文件`/ boot / efi / EFI / Microsoft`后弹出!_OS

来自分类Dev

How do I install Windows 10 from USB to a UEFI Secure Boot Machine

来自分类常见问题

How to pip or easy_install tkinter on Windows

来自分类Dev

How to install oct2py on windows?

来自分类Dev

Error 809 when trying to connect Windows 7 with IPsec

来自分类Dev

Windows UEFI bootmgfw.efi和Windows UEFI bkpbootx64.efi有什么区别?

来自分类Dev

Windows UEFI bootmgfw.efi和Windows UEFI bkpbootx64.efi有什么区别?

来自分类Dev

How to run the Windows Phone Emulator without Windows 8 Pro?

Related 相关文章

  1. 1

    Can someone explain how I got a Windows EFI error message without trying to install Windows?

  2. 2

    How can I reinstall Windows 7 on a laptop without the drivers CD?

  3. 3

    trying to install windows after ubuntu

  4. 4

    How can I dual boot Ubuntu and Windows 10 but have my PC boot into windows without prompting me at start up

  5. 5

    can someone explain this short segment of C++ code, I can't make heads or tails of it

  6. 6

    在Windows上挂载EFI分区

  7. 7

    Windows USB EFI启动文件

  8. 8

    Windows如何还原EFI数据?

  9. 9

    How to install pyYAML on windows 10

  10. 10

    How can I stop my installer from triggering Windows 10's "This app has been blocked for your protection" error?

  11. 11

    How can I enable or disable a windows service in .NET?

  12. 12

    Windows: How can I use the command line to set registry permissions

  13. 13

    Windows: How can I use the command line to set registry permissions

  14. 14

    如何知道Windows是否以EFI模式安装?

  15. 15

    如何修复Windows 8 EFI Bootloader?

  16. 16

    Windows 8.1和Debian Dualboot EFI问题

  17. 17

    在Windows上调整efi分区的大小

  18. 18

    恢复Windows 10 EFI启动项

  19. 19

    双启动EFI Windows 8.1 / Ubuntu

  20. 20

    不同的EFI和Windows双启动

  21. 21

    在 Windows/Ubuntu 之间共享 /boot/efi 分区

  22. 22

    安装缺少Windows 10 efi文件`/ boot / efi / EFI / Microsoft`后弹出!_OS

  23. 23

    How do I install Windows 10 from USB to a UEFI Secure Boot Machine

  24. 24

    How to pip or easy_install tkinter on Windows

  25. 25

    How to install oct2py on windows?

  26. 26

    Error 809 when trying to connect Windows 7 with IPsec

  27. 27

    Windows UEFI bootmgfw.efi和Windows UEFI bkpbootx64.efi有什么区别?

  28. 28

    Windows UEFI bootmgfw.efi和Windows UEFI bkpbootx64.efi有什么区别?

  29. 29

    How to run the Windows Phone Emulator without Windows 8 Pro?

热门标签

归档