关于livecd引起的Grub出错的问题。

为当前最终发行版之前的所有版本提供支持
回复
mouse21
帖子: 107
注册时间: 2006-12-19 10:14
送出感谢: 0
接收感谢: 0

关于livecd引起的Grub出错的问题。

#1

帖子 mouse21 » 2007-05-09 10:26

用livecd安装7.04,第一次引导时,能见到Grub的启动画面和各个选项,但是安装成功之后,却发现Grub的启动画面没有了,取而代之的是一段话:“Grub loading,please waiting……press ESC to enter the menu ……”,按了ESC之后,出现了菜单,但是没有背景图片,而且也没有windows的选项了!
我试着编辑menu.ls,发现一切正常

代码: 全选

timeout 5

default 0

fallback 1

splashimage (hd0,0)/boot/grub/bj2008.xpm.gz

fontfile (hd0,0)/boot/grub/fonts



title Ubuntu Linux 7.04

kernel (hd0,0)/boot/feisty/vmlinuz boot=gnix_oag ramdisk_size=1048576 root=/dev/ram rw quiet splash  debian-installer/locale=zh_CN fd_dir=feisty

initrd (hd0,0)/boot/feisty/initrd.gz 



title GO Back (MS Windwos OS)

rootnoverify (hd0,0)

makeactive

chainloader  +1


请问这是怎么回事,应该如何处理?谢谢!
mouse21
帖子: 107
注册时间: 2006-12-19 10:14
送出感谢: 0
接收感谢: 0

#2

帖子 mouse21 » 2007-05-10 16:44

大家帮帮忙咯,难道只有我一个人遇到这样的问题?
头像
hualang0929
帖子: 1226
注册时间: 2006-11-11 10:23
来自: Mars
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 hualang0929 » 2007-05-10 16:55

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/hda5 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,4)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title Debian testing, kernel 2.6.18-4-486
root (hd0,8)
kernel /boot/vmlinuz-2.6.18-4-486 root=/dev/hda9 ro vga=791
initrd /boot/initrd.img-2.6.18-4-486
savedefault

title Debian testing, kernel 2.6.18-4-486 (recovery mode)
root (hd0,8)
kernel /boot/vmlinuz-2.6.18-4-486 root=/dev/hda9 ro single
initrd /boot/initrd.img-2.6.18-4-486
savedefault


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda5.
title hiweed1.0, kernel 2.6.15-28-386 (on /dev/hda5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.15-28-386 root=/dev/hda5 ro quiet splash
initrd /boot/initrd.img-2.6.15-28-386
savedefault


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/hda5.
title hiweed1.0, kernel 2.6.15-28-386 (recovery mode) (on /dev/hda5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.15-28-386 root=/dev/hda5 ro single
initrd /boot/initrd.img-2.6.15-28-386
savedefault


title Debian stable, kernel 2.6.18-4-486
root (hd0,9)
kernel /boot/vmlinuz-2.6.18-4-486 root=/dev/hda10 ro
initrd /boot/initrd.img-2.6.18-4-486
savedefault

title Debian stable, kernel 2.6.18-4-486 (recovery mode)
root (hd0,9)
kernel /boot/vmlinuz-2.6.18-4-486 root=/dev/hda10 ro single
initrd /boot/initrd.img-2.6.18-4-486
savedefault

title Ubuntu7.04, kernel 2.6.20-15-generic
root (hd0,10)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=37d6362f-a56d-4050-8e5d-d6e81e43a50e ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
quiet
savedefault

title Ubuntu7.04, kernel 2.6.20-15-generic (recovery mode)
root (hd0,10)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=37d6362f-a56d-4050-8e5d-d6e81e43a50e ro single
initrd /boot/initrd.img-2.6.20-15-generic


贴一个menu.lst,你自己参考一下
抬头望星空一片晴,我独行,夜已渐寒……
mouse21
帖子: 107
注册时间: 2006-12-19 10:14
送出感谢: 0
接收感谢: 0

#4

帖子 mouse21 » 2007-05-11 11:29

谢谢,试过类似的方法,不过我就更改了uuid值,不知道操作是否正确!
因为我比较过安装前后的menu.ls,并没有发生改变!但以前安装6.10的时候,它就在安装好之后,设置好了Grub。
mouse21
帖子: 107
注册时间: 2006-12-19 10:14
送出感谢: 0
接收感谢: 0

#5

帖子 mouse21 » 2007-05-15 16:24

难道真的RP问题,只有我遇到这种事情?
头像
sevk
帖子: 2059
注册时间: 2007-05-08 16:26
系统: arch
来自: 火星内核某分子内某原子核内
送出感谢: 20 次
接收感谢: 6 次
联系:

#6

帖子 sevk » 2007-05-19 9:01

用livecd安装7.04后,menu.lst已经被 /boot/grub/menu.list替换。
按ESC说明menu.lst里有 hidemenu命令。
reallpw
帖子: 6
注册时间: 2007-05-13 10:14
送出感谢: 0
接收感谢: 0

#7

帖子 reallpw » 2007-05-19 11:32

昨天装了Ubuntu,但是启动的时候按ESC
也没有出现Windows的选项,真奇怪。。

另外,本来删除了D盘(11.7G)给Ubuntu的,但现在,我也不知道到底装在哪个盘里(现在有23.8G),,,

新手新手,困扰啊
mouse21
帖子: 107
注册时间: 2006-12-19 10:14
送出感谢: 0
接收感谢: 0

#8

帖子 mouse21 » 2007-05-21 15:21

sevk 写了:用livecd安装7.04后,menu.lst已经被 /boot/grub/menu.list替换。
按ESC说明menu.lst里有 hidemenu命令。


报告:并没有找到menu.list文件,我后来打开隐藏文件选项和用文件搜索的方法,都没有发现这个文件,请详细指教,谢谢!
回复

回到 “老旧版本支持”