编译Ubuntu 8.04内核启动失败

编译打包和其他
回复
chinaren009
帖子: 9
注册时间: 2007-11-01 17:35

编译Ubuntu 8.04内核启动失败

#1

帖子 chinaren009 » 2008-07-22 14:13

hi:
我重新编译了Ubuntu 8.04的内核.
但是用新内核启动的时候,系统停在"Waiting for root file system".

需要什么特别设置吗?
----------------
(编译内核时候,我用的是Ubuntu 8.04的默认配置文件: /boot目录下的配置文件)
----------------
chasye
帖子: 333
注册时间: 2007-05-13 15:20

#2

帖子 chasye » 2008-07-22 16:10

没有把文件系统的驱动编译到内核
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#3

帖子 BigSnake.NET » 2008-07-22 16:19

怎么编译? 有创建 initrd 吗?
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
chinaren009
帖子: 9
注册时间: 2007-11-01 17:35

#4

帖子 chinaren009 » 2008-07-24 17:34

编译内核的时候,已经把文件系统编译到内核了。

我是按如下步骤编译的:
make bzImage
make modules
make modules_install
make install
mkinitramfs -o /boot/initrd-2.6.26.img
------------------------------
然后重新编辑了一下grub/menu.list
添加了如下一项:
title Ubuntu 8.04-Custom(2.6.26)
root (hd0,6)
kernel /boot/vmlinuz root=UUID=17a7abb7-0110-46f3-b577-717c797ebe47 ro
initrd /boot/initrd-0724.img
------------------------------
重启系统后,还是停在"waiting for root file system"
头像
HuntXu
帖子: 5776
注册时间: 2007-09-29 3:09

#5

帖子 HuntXu » 2008-07-24 17:41

initrd-2.6.26.img
initrd-0724.img
究竟哪一个是...
HUNT Unfortunately No Talent...
chinaren009
帖子: 9
注册时间: 2007-11-01 17:35

#6

帖子 chinaren009 » 2008-07-24 18:14

Sorry,打错了
menu.lst中,应为 : initrd-2.6.26.img
--------------------
是不是因为新内核把硬盘识别为sda (我的是IDE接口的硬盘,正常启动Ubuntu后,用fdisk -l 看,Ubuntu是安装在sda7分区上)
--------------------
我试了一下,把
kernel /boot/vmlinuz root=UUID=17a7abb7-0110-46f3-b577-717c797ebe47 ro
改为:
kernel /boot/vmlinuz root=/dev/sda7 ro
也不行
chasye
帖子: 333
注册时间: 2007-05-13 15:20

#7

帖子 chasye » 2008-07-24 23:37

为特定硬件编译的内核是不用生成 initrd的


ide支持模块,ide总线驱动 有没有编译进内核

可以的话,多给一定信息
chinaren009
帖子: 9
注册时间: 2007-11-01 17:35

#8

帖子 chinaren009 » 2008-07-25 17:35

用dpkg工具重新编译同一个内核,并且用"dpkg -i"安装新编译好的内核。
就可以成功启动UBUNTU 进入新内核.
所以,推测不是编译选项的问题。
chinaren009
帖子: 9
注册时间: 2007-11-01 17:35

#9

帖子 chinaren009 » 2008-07-25 17:38

打错了,是用make-kpkg工具编译同一个内核
whf839
帖子: 5
注册时间: 2008-06-23 15:32

#10

帖子 whf839 » 2008-07-25 20:35

将你grub 设置和 make-kpkg 自动生成的参数比较一下
回复