[问题]怎么启用新的内核

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
shb110119
帖子: 105
注册时间: 2008-05-24 17:52

[问题]怎么启用新的内核

#1

帖子 shb110119 » 2008-08-03 13:18

shb@shb-desktop:~$ uname -a
Linux shb-desktop 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 GNU/Linux
shb@shb-desktop:~$ dpkg --get-selections|grep lin
libreadline5 install
libselinux1 install
linux-generic install
linux-headers-2.6.24-16 install
linux-headers-2.6.24-16-generic install
linux-headers-2.6.24-19 install
linux-headers-2.6.24-19-generic install
linux-headers-2.6.24-20 install
linux-headers-2.6.24-20-generic install
linux-headers-generic install
linux-image-2.6.24-16-generic install
linux-image-2.6.24-19-generic install
linux-image-2.6.24-20-generic install
linux-image-generic install
linux-restricted-modules-2.6.24-16-generic install
linux-restricted-modules-2.6.24-19-generic install
linux-restricted-modules-2.6.24-20-generic install
linux-restricted-modules-common install
linux-restricted-modules-generic install
linux-sound-base install
linux-ubuntu-modules-2.6.24-16-generic install
linux-ubuntu-modules-2.6.24-19-generic install
linux-ubuntu-modules-2.6.24-20-generic install
linuxqq install
readline-common install
util-linux install
util-linux-locales install
xserver-xorg-video-glint install
mathslinux
帖子: 58
注册时间: 2007-03-24 20:19
联系:

#2

帖子 mathslinux » 2008-08-03 14:23

这个要在开机出现grub菜单的时候选择吧
风吹草动
帖子: 3
注册时间: 2008-08-03 16:39

#3

帖子 风吹草动 » 2008-08-03 16:41

:o :o :o :o :o :o :o :o
shb110119
帖子: 105
注册时间: 2008-05-24 17:52

#4

帖子 shb110119 » 2008-08-03 18:13

mathslinux 写了:这个要在开机出现grub菜单的时候选择吧
我是多系统引导 没有出现啊
shb110119
帖子: 105
注册时间: 2008-05-24 17:52

#5

帖子 shb110119 » 2008-08-03 18:20

我的menu.lst 还是这个样子的

代码: 全选

# 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 use 'savedefault' 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		3

## 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=UUID=4168a9a5-95f4-4914-9d47-9b9090bb9061 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

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

## 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 locale=zh_CN

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) 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

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##
title Windows
root (hd0,0)
makeactive
chainloader +1

title		Ubuntu 8.04, kernel 2.6.24-16-generic
root		(hd1,1)
kernel		/boot/vmlinuz-2.6.24-16-generic root=UUID=4168a9a5-95f4-4914-9d47-9b9090bb9061 ro quiet splash locale=zh_CN
initrd		/boot/initrd.img-2.6.24-16-generic
quiet

title		Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)

root		(hd1,1)
kernel		/boot/vmlinuz-2.6.24-16-generic root=UUID=4168a9a5-95f4-4914-9d47-9b9090bb9061 ro single
initrd		/boot/initrd.img-2.6.24-16-generic

title		Ubuntu 8.04, memtest86+
root		(hd,1)
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST
头像
我叫大米
帖子: 93
注册时间: 2008-05-27 14:41

#6

帖子 我叫大米 » 2008-08-04 22:27

update-grub一下了
然后重启应该就能进新的内核了,接着可以选择在menu.lst里面把老的内核选项去了
mathslinux
帖子: 58
注册时间: 2007-03-24 20:19
联系:

#7

帖子 mathslinux » 2008-08-05 1:37

你的/boot里面有initrd.img-2.6.24-20-generic和vmlinuz-2.6.24-20-generic着些吗,有的话,直接编辑menu.lst就行了
shb110119
帖子: 105
注册时间: 2008-05-24 17:52

#8

帖子 shb110119 » 2008-08-07 15:56

我的 MENU.LST不是在上面么  就是没有啊
sdzzg
帖子: 315
注册时间: 2008-05-30 16:22

那肯定是由于你升级后有个grub的选项你选了"Keep the current..."

#9

帖子 sdzzg » 2008-08-07 16:21

那肯定是由于你升级后有个grub的选项你选了"Keep the current..."
sdzzg
帖子: 315
注册时间: 2008-05-30 16:22

#10

帖子 sdzzg » 2008-08-07 16:22

直接修改menu.lst改16成20就行了
头像
zhiquanhe2003
帖子: 12
注册时间: 2008-04-16 20:41

Re: [问题]怎么启用新的内核

#11

帖子 zhiquanhe2003 » 2009-04-20 10:46

1. 直接在menu.lst中修改内核版本名好像不行阿
我的改了后重启进入不了界面。
2. 用update grub后,menu.lst中也没有添加新的启动项。
Ubuntu 8.04 LTS
回复