升级breezy的内核后,新内核不能启动
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
- Tenyears
- 帖子: 2245
- 注册时间: 2005-06-30 15:46
- 来自: 成都
升级breezy的内核后,新内核不能启动
为用上摄像头,决定升级内核。
换为breezy的源后,执行了
sudo apt-get update
sudo apt-get install linux-image-k7 linux-headers-k7 linux-restricted-modules-k7
重启
GRUB启动了linux-2.6.12-5-k7
然后出现错误
cannot open /sys/bus/scsi/devices/*/type
找不到/dev/hda7(大意)
hda7是我的根分区所在。
请帮忙。
换为breezy的源后,执行了
sudo apt-get update
sudo apt-get install linux-image-k7 linux-headers-k7 linux-restricted-modules-k7
重启
GRUB启动了linux-2.6.12-5-k7
然后出现错误
cannot open /sys/bus/scsi/devices/*/type
找不到/dev/hda7(大意)
hda7是我的根分区所在。
请帮忙。
Humanity to others // 己所不欲,勿施与人
Laptop: ThinkPad X220 --- Win7 Home / Ubuntu 12.04
Desktop: Win7/Ubuntu 12.04
Server: Ubuntu12.04
Laptop: ThinkPad X220 --- Win7 Home / Ubuntu 12.04
Desktop: Win7/Ubuntu 12.04
Server: Ubuntu12.04
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- Tenyears
- 帖子: 2245
- 注册时间: 2005-06-30 15:46
- 来自: 成都
- yonsan
- 帖子: 887
- 注册时间: 2005-07-01 18:56
- 来自: 广州市
- Tenyears
- 帖子: 2245
- 注册时间: 2005-06-30 15:46
- 来自: 成都
多谢。检查过了,我觉得没有问题。贴在后面,兄台看看。yonsan 写了:试试检查一下/boot/grub/menu.lst中是否作了相应的修改!
升级内核成功,当然内核文件就变名了,如果/etc/grub/menu.lst文件中没有自动作变更的话就会出现引导错误!!
## ## End Default Options ##
title Ubuntu, kernel 2.6.12-6-k7
root (hd0,6)
kernel /boot/vmlinuz-2.6.12-6-k7 root=/dev/hda7 ro quiet splash
initrd /boot/initrd.img-2.6.12-6-k7
savedefault
boot
title Ubuntu, kernel 2.6.12-6-k7 (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.12-6-k7 root=/dev/hda7 ro single
initrd /boot/initrd.img-2.6.12-6-k7
savedefault
boot
title Ubuntu, kernel 2.6.10-5-k7
root (hd0,6)
kernel /boot/vmlinuz-2.6.10-5-k7 root=/dev/hda7 ro quiet splash
initrd /boot/initrd.img-2.6.10-5-k7
savedefault
boot
title Ubuntu, kernel 2.6.10-5-k7 (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.10-5-k7 root=/dev/hda7 ro single
initrd /boot/initrd.img-2.6.10-5-k7
savedefault
boot
title Ubuntu, kernel 2.6.10-5-386
root (hd0,6)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda7 ro quiet splash
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot
title Ubuntu, kernel 2.6.10-5-386 (recovery mode)
root (hd0,6)
kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda7 ro single
initrd /boot/initrd.img-2.6.10-5-386
savedefault
boot
title Ubuntu, kernel memtest86+
root (hd0,6)
kernel /boot/memtest86+.bin
savedefault
boot
难道一定要全面升级吗?只升级内核应该没关系的。
Humanity to others // 己所不欲,勿施与人
Laptop: ThinkPad X220 --- Win7 Home / Ubuntu 12.04
Desktop: Win7/Ubuntu 12.04
Server: Ubuntu12.04
Laptop: ThinkPad X220 --- Win7 Home / Ubuntu 12.04
Desktop: Win7/Ubuntu 12.04
Server: Ubuntu12.04
- Tenyears
- 帖子: 2245
- 注册时间: 2005-06-30 15:46
- 来自: 成都
- yonsan
- 帖子: 887
- 注册时间: 2005-07-01 18:56
- 来自: 广州市
- Tenyears
- 帖子: 2245
- 注册时间: 2005-06-30 15:46
- 来自: 成都
- Tenyears
- 帖子: 2245
- 注册时间: 2005-06-30 15:46
- 来自: 成都
试过了。还是老样子。yonsan 写了:换为breezy的源后,执行了有试过这样吗?代码: 全选
sudo apt-get update aptitude install linux-k7
因为看到了这些信息,觉得直接安装linux-image-k7 与 linux-k7是有分别的!
p linux-image-k7 - Linux kernel image on AMD K7.
p linux-k7 - Complete Linux kernel on AMD K7.
Humanity to others // 己所不欲,勿施与人
Laptop: ThinkPad X220 --- Win7 Home / Ubuntu 12.04
Desktop: Win7/Ubuntu 12.04
Server: Ubuntu12.04
Laptop: ThinkPad X220 --- Win7 Home / Ubuntu 12.04
Desktop: Win7/Ubuntu 12.04
Server: Ubuntu12.04