跳转至

Ubuntu Grub2没有Windows引导菜单


2015-04-29 by dongnan

问题描述

笔记本电脑装有 windows 7 系统,在安装 ubuntu 14.04系统后直接进入 ubuntu 系统,并没有出现 windows 7 引导项。

环境

操作系统2: ubuntu 14.04.2 amd64
操作系统1: windows 7

解决方法

更新 grub

# 执行命令
update-grub

Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.16.0-34-generic
Found initrd image: /boot/initrd.img-3.16.0-34-generic
Found linux image: /boot/vmlinuz-3.16.0-30-generic
Found initrd image: /boot/initrd.img-3.16.0-30-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
done

注意, Windows 7 字段。

命令帮助

man update-grub

NAME
       update-grub, update-grub2 - stub for grub-mkconfig

SYNOPSIS
       update-grub

DESCRIPTION
       update-grub is a stub for running grub-mkconfig -o /boot/grub/grub.cfg to generate a grub2 config file.

SEE ALSO
       grub-mkconfig(8)

参考

Ubuntu 14.04 Grub2 的小技巧

欢迎关注微信公众号: 运维录

Back to top