我买了一台新笔记本电脑,东芝 Satellite NB10t-A-101,预装了 Windows 8,在弄清楚如何在 UEFI 中安装 Ubuntu 一天后,我终于成功了(这并不容易,因为 M$ , Intel 和 Toshiba 使这种模式变得更加困难)。它安装正确。我创建了新分区(在 Windows 8 中预先腾出空间)。然而,在安装之后,Windows 引导管理器打开,同时具有 Windows 8 和 Ubuntu 选项。选择 Ubuntu 后,我遇到了与此处所述相同的 WUBI 错误:Installing Ubuntu Alongside a Pre-Installed Windows with UEFI
Windows failed to start. A recent hardware or software change might be the
cause. To fix the problem:
1. Insert your Windows Installation disc and restart your computer.
2. Choose your language settings, and then click "Next."
3. Click "Repair your computer."
If you do not have this disc, contact your system administrator or computer
manufacturer for assistance.
File: \ubuntu\winboot\wubildr.mbr
Status: 0xc000007b
Info: The application or operating system couldn't be loaded because a
required file is missing or contains error.
这已经很奇怪了,因为我认为安装是在 EFI 模式下(注意——安全启动选项从一开始就被禁用,所以这不应该是原因)。然而,在进入“修复”选项后,会出现 Windows 菜单(与允许进入 UEFI 配置的菜单相同),并且在“从设备启动”选项中会出现一个额外的数字 - “ubuntu”,它直接启动到之前安装的Ubuntu(14.04.1 LTS)。
在这一点上,我希望引导修复会有所帮助。我按照此处的说明进行操作:https ://help.ubuntu.com/community/UEFI (“将 Ubuntu 转换为 EFI 模式”),不幸的是它没有帮助,我收到此错误:
An error occurred during the repair.
Please write on a paper the following URL:
http://paste.ubuntu.com/8012282/
In case you still experience boot problem, indicate this URL to:
[email protected]
You can now reboot your computer.
Please disable SecureBoot in the BIOS.
A broken Wubi has been detected. Please fix it this way:
https://wiki.ubuntu.com/WubiGuide#Cannot_boot_into_Ubuntu
重新启动后,我遇到了相同的初始错误(缺少 WUBI 文件)并且只能如上所述进入 Ubuntu。为什么 Ubuntu 还在寻找 WUBI?如何修复引导选项,保持与 Windows 的双引导? (不幸的是,我仍然需要 Windows 来安装一个无法模拟的程序,商店销售员也告诉我,如果我延迟 Windows,我将失去保修)
我是初学者,很难做到这一点 - 请使用简单的解释 :)
编辑:引导过程的照片。出现错误消息后,我可以转到其他 Windows 菜单并“从设备启动”
I did a quick look in the manual for the laptop and F12 (confirmed to be working) should have been the right key according to instructions for booting from external media. You should probably check the manual yourself.
UEFI firmware update
There is the possibility that the UEFI firmware of the laptop does something else than what is expected according to the output from
efibootmgr -v
.You should check if there is a firmware update available to update and check again after the update if it fixed your issue.
Per HDD-default UEFI bootloader
Another possbibility is that the default bootloader (
\EFI\BOOT\BOOTx64.EFI
on each HDDs ESP) is always booted (seems to be the case). Check if you can change this behaviour. A fully functional firmware should be able boot theubuntu
orWindows Boot Manager
entries (as seen in theefibootmgr -v
output) instead of the default one. I found a related post in a blog.My general advice is too back up
\EFI\BOOT\BOOTx64.EFI
and replace it. I prefer gummiboot (tested, works), rEFInd is also possbile. I don't know what boot-repair does or suggest for this.This really seems to be a firmware issue and installing another distribution does not seem to improve on this (I also found a forum post for Fedora with a similar issue).
Suggested solution
You con only boot the
\EFI\BOOT\BOOTx64.EFI
file on a harddrive with this laptop, so you need to replace it with something, that can boot more than just Windows. Running boot-repair will not help or make confusion worse.Get gummiboot
Download gummiboot from the Arch Linux repositories. (Everything is fine, we are just doing Linus Torvalds style package management. You can find the download link on that page far on the right under Package Actions > Download From Mirror)
Mount the EFI System Partition (ESP) and backup all existing files on the ESP (e.g. use zip or tar). You can put the backup file at the root of the partition, there should be enough space.
Extract
gummibootx64.efi
from the package (it's under/usr/lib/gummiboot/
) and copy it as\EFI\BOOT\BOOTx64.EFI
to your ESP.Configure gummiboot to boot GRUB
Create folders along the path
loader/entries/
at the root of your ESP and create a file namedubuntu-grub.conf
with the following content:You also need to add the file
loader.conf
inloader/
to make gummiboot work.default is the title of the default entry to boot. Edit appropriately if you have chosen another title.
Reboot
That's it. Gummiboot will automatically find and create menu entries to boot Windows.
WUBI 与 EFI 模式引导不兼容,如果您的计算机预装了 Windows 8 或 8.1,则几乎可以肯定这就是您的计算机所使用的模式。我建议您删除 WUBI 安装并执行标准的 EFI 模式安装。(另请参阅Ubuntu 社区 wiki和我关于 EFI 模式安装的页面以获取更多信息。)