LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 891|回复: 3

请教:关于升级内核后grub的问题

[复制链接]
发表于 2005-11-2 17:45:55 | 显示全部楼层 |阅读模式
我的机子同时装有Debian 和 Redhat,平时主要用Debian,Debian的内核为2.6.8,今天升级为2.6.12.
执行命令apt-get update 和apt-get install kernel-image-....后,重新启动,启动过程字体非常模
糊,并且没有出现系统选择界面,而是直接进入Debian.小弟修改menu.list后,情况依旧!
求各位大侠帮帮小弟.
发表于 2005-11-2 18:01:57 | 显示全部楼层
看来在用sid。。因为testing都没有2.6.12,

你的具体问题我判断不了。

但我知道,既然想用新内核,最好的方法是自己用debian独有的kernel-package的工具自己做一个最新核的deb包,具体方法手册上有。

ps:原来是刘家本家印挺酷的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-3 09:30:55 | 显示全部楼层
谢谢2楼的,我把menu.list贴出来,大家帮我看看,也许我menu.list改错了.

# menu.lst - See: grub(, info grub, update-grub(
#            grub-install(, grub-floppy(,
#            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'.
default         0

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

# Pretty colours
color cyan/blue white/blue
splashimage (hd0,0)/grub/splash.xpm.gz
## 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 specifiv 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=root=/dev/hda8 ro

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

## 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

## 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
## ## End Default Options ##
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title           Debian GNU/Linux, kernel 2.6.12-1-386
root            (hd0,0)
kernel          /vmlinuz-2.6.12-1-386 root=/dev/hda8 ro
initrd          /initrd.img-2.6.12-1-386
savedefault
boot

title           Debian GNU/Linux, kernel 2.6.12-1-386 (recovery mode)
root            (hd0,0)
kernel          /vmlinuz-2.6.12-1-386 root=/dev/hda8 ro single
initrd          /initrd.img-2.6.12-1-386
savedefault
boot

title           Redhat GNU/Linux, kernel 2.4.20-8
root            (hd0,5)
kernel          hda5/vmlinuz-2.4.20-8 root=/dev/hda5 ro
initrd          /initrd-2.4.20-8.img
回复 支持 反对

使用道具 举报

发表于 2005-11-3 09:38:01 | 显示全部楼层
Post by imkow1
看来在用sid。。因为testing都没有2.6.12,

我的Etch就是2.6.12内核
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表