我的电脑ASUS K55VD 原来是windows7 系统, 安装了ubuntu 18.04, 开始装不上显示无法安装到 /target, 连网后安装,ubuntu的安装程序会在网上下载一些更新,这些更新能够正常的安装grub, 但是在gru菜单中找不到windows的选项.
多方搜索无果.
最后在https://superuser.com/questions/1247300/how-to-make-uefi-bios-start-grub-not-windows
找到了相关答案
efibootmgr
-- This Linux tool can adjust the boot order. Begin by typingsudo efibootmgr
alone to see the options. Note the number (Boot####
) associated with theubuntu
entry, and the current boot order (on theBootOrder
line). You can then enter a new boot order with theubuntu
entry at the top by using the-o
option. For instance, if the current boot order is 0000,0003,0007,0004 andubuntu
is 0007, you'd typesudo efibootmgr -o 0007,0000,0003,0004
to adjust the boot order.
along@along-K55VD:~$ efibootmgr
BootCurrent: 0005
Timeout: 3 seconds
BootOrder: 0002,0006,0005
Boot0002* Hard Drive
Boot0005* ubuntu
Boot0006* CD/DVD Drive
执行命令后,显示当前的启动项和启动顺序.
sudo efibootmgr -t 3
指定timeout 是3秒
sudo efibootmgr -o 0002,0005
指定原来的硬盘启动作为首选项.开机时按Esc,即可看到启动项.也可以按键盘上下键,进行选择.
问题解决.