第五次编译内核失败,请求这个的问题解决办法

编译打包和其他
回复
头像
M2WOW
帖子: 175
注册时间: 2008-01-23 11:13

第五次编译内核失败,请求这个的问题解决办法

#1

帖子 M2WOW » 2008-11-02 17:47

我下了内核,把内核放在了~/linux里面安装说明配置后编译,make -j4,make bzImage,make modules; make modules_install,又运行mkinitramfs -o /boot/initrd.img-2.6.27.4,最后在menu.lst中增加如下字样:title Ubuntu 8.04.1, kernel 2.6.27
root (hd0,2)
kernel /vmlinuz-2.6.27.4 root=UUID=cf5b700c-8513-472f-8bda-0fe589ccdb8f ro quiet splash
initrd /initrd.img-2.6.27.4
可是启动时,我选择我编译的内核,在正常应该显示UBUNTU那个读取的进度条时却什么都没有,屏幕分成两块,上面是红的,下面是黑的,就这么一直了,这到底是怎么回事?难道是我该把内核文件放在/src中?我每次都是这样的错误,真快疯了
头像
xhy
帖子: 3916
注册时间: 2005-12-28 1:16
系统: Ubuntu 12.10 X64
来自: 火星

Re: 第五次编译内核失败,请求这个的问题解决办法

#2

帖子 xhy » 2008-11-02 17:55

配置错了
目前负债150多万
头像
M2WOW
帖子: 175
注册时间: 2008-01-23 11:13

Re: 第五次编译内核失败,请求这个的问题解决办法

#3

帖子 M2WOW » 2008-11-02 18:18

在出现错误之前有一段载入的文字,可是太快看不清,怎么才能看清那段文字?
头像
xhy
帖子: 3916
注册时间: 2005-12-28 1:16
系统: Ubuntu 12.10 X64
来自: 火星

Re: 第五次编译内核失败,请求这个的问题解决办法

#4

帖子 xhy » 2008-11-02 18:23

禁用ubuntu的splash就能看见那个了

基本上可以断定你配置内核的时候没有选全驱动
目前负债150多万
头像
M2WOW
帖子: 175
注册时间: 2008-01-23 11:13

Re: 第五次编译内核失败,请求这个的问题解决办法

#5

帖子 M2WOW » 2008-11-02 21:58

谢谢xhy,看到错误信息了,信息如下
warning: couldn't open directory /lib/modules/2.6.27.4:No such file or dirctory /*可是我的/lib/modules中有2.6.27文件夹呀*/

FATAL:counld not open /lib/modules/2.6.27.4/modules.dep.tem for writing :No such file or directory

check root=bootarg cat /proc/cmdline or missing modules, devices: cat /proc/modules ls /dev

ALERT!/dev/disk/by-uuid/cf5b700c-8513-4725-...-..b8f does not exist .dropping to a shell

其中cf57700......是我boot分区的UUID吧,因为/boot/grub/menu.lst好使的kernel也是这样写了
title Ubuntu 8.04.1, kernel 2.6.24-21-generic
root (hd0,2)
kernel /vmlinuz-2.6.24-21-generic root=UUID=cf5b700c-8513-472f-8bda-0fe589ccdb8f ro quiet nosplash
initrd /initrd.img-2.6.24-21-generic
这到底是怎么回事?
头像
xhy
帖子: 3916
注册时间: 2005-12-28 1:16
系统: Ubuntu 12.10 X64
来自: 火星

Re: 第五次编译内核失败,请求这个的问题解决办法

#6

帖子 xhy » 2008-11-02 22:07

make install了没有?

磁盘驱动检查下编译进去了没有

用/dev/xxx 不要用uuid
目前负债150多万
头像
M2WOW
帖子: 175
注册时间: 2008-01-23 11:13

Re: 第五次编译内核失败,请求这个的问题解决办法

#7

帖子 M2WOW » 2008-11-02 22:31

感觉应该是某个必要的东西我编成了module,导致启动时不能引用,我用了下面的教程能进去了
if the drivers for the file system are fix compiled into the kernel. Initrd will not work, if the needed drivers are compiled as modules - and compiling as modules is the standard in most kernels, I learnt.

Initramfs is the successor of initrd. It works independently from this question. So I installed the debian-package "initramfs-tools".
Within the folder, where my kernel-sources are (don't know, if this is nessecary), I did
Code:
update-initramfs -c -k 2.6.20
-c says: create (a inintramfs)
-k XYZ says, for whitch Kernel the initramfs should be created.
(Note: There is an other tool named "mkinintramfs". I didn't use it, because it's recommended only for advanced users. "update-inintramfs" is recommended for people like I am.)

Then, I found a new file named "initrd.img-2.6.20" in /boot/.
I inserted
Code:
initrd /boot/initrd.img-2.6.20
into my file /boot/grub/menu.1st

- and it worked.
现在的问题是我到底把什么编成模块了?能查出来吗?而且现在在gdm中不能使用terminal了,会出现这样的字样
创建此终端的子进程时出错
晕,它怎么了?
头像
HuntXu
帖子: 5776
注册时间: 2007-09-29 3:09

Re: 第五次编译内核失败,请求这个的问题解决办法

#8

帖子 HuntXu » 2008-11-02 22:42

要编译内核干什么?
连VT都去掉了...
HUNT Unfortunately No Talent...
回复