Welcome 微信登录

首页 / 操作系统 / Linux / Ubuntu 9.10 修复Windows系统引导

Ubuntu 9.10使用了grub2(不确定是不是2),与以往不同新版本的grub的引导配置文件不再是menu.lst而是
/boot/grub/grub.cfg ,这个文件默认是只读的,因此在修改之前需要先将其改为可写sudo chmod +w /boot/grub/grub.cfg然后就可以修改了。给其中加上如下内容即可sudo gedit /boot/grub/grub.cfg添加后内容如下:#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from  and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,7)
search --fs-uuid --set 28d5eac5-c42c-49ef-8537-0b280ff87de1
if loadfont /usr/share/grub/ascii.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don"t
# understand terminal_output
terminal gfxterm
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, linux 2.6.30-8-generic" {
set root=(hd0,7)
search --fs-uuid --set 28d5eac5-c42c-49ef-8537-0b280ff87de1
linux    /boot/vmlinuz-2.6.30-8-generic root=UUID=28d5eac5-c42c-49ef-8537-0b280ff87de1 ro  quiet splash
initrd    /boot/initrd.img-2.6.30-8-generic
}
menuentry "Ubuntu, linux 2.6.30-8-generic (recovery mode)" {
set root=(hd0,7)
search --fs-uuid --set 28d5eac5-c42c-49ef-8537-0b280ff87de1
linux    /boot/vmlinuz-2.6.30-8-generic root=UUID=28d5eac5-c42c-49ef-8537-0b280ff87de1 ro single
initrd    /boot/initrd.img-2.6.30-8-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux    /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux    /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
menuentry "Windows XP Pro" {
set root=(hd0,1)
chainloader +1
}
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###Ubuntu One 安装说明Ubuntu Intel 用户新希望相关资讯      Ubuntu 9.10 
  • Ubuntu 9.10官方支持将在4月29日停  (04/15/2011 16:44:33)
  • SecureCRT登录Ubuntu 9.10的中文乱  (04/30/2010 09:18:22)
  • Ubuntu 9.10 下安装 OpenTTD 1.0.0  (04/26/2010 06:03:54)
  • Ubuntu 9.10出现:mount of   (04/30/2010 16:20:42)
  • 修复了Ubuntu 9.10诡异的变成了只  (04/27/2010 16:18:26)
  • Ubuntu 9.10 下使用 Wacom Bamboo   (04/25/2010 08:10:10)
本文评论 查看全部评论 (0)
表情: 姓名: 字数