Chinaunix

标题: 编译Linux2.6.10内核后,不能进入系统,请高手指教!! [打印本页]

作者: NETENG    时间: 2005-03-28 08:18
标题: 编译Linux2.6.10内核后,不能进入系统,请高手指教!!
小生我在LINUX9.0以级在LINUX AS 3.0上(make menuconfig,make bzImage,make modules,makemodules_install,make install)编译Linux2.6.10内核时没有出任何错误,但是用新内核启动时说找不到INIT文件,屏幕内容如下:
Initializing IPsec netlink socket                                             
NET: Registered protocol family 1                                             
NET: Registered protocol family 17                                             
NET: Registered protocol family 8                                             
NET: Registered protocol family 20                                             
md: Autodetecting RAID arrays.                                                
md: autorun ...                                                               
md: ... autorun DONE.                                                         
RAMDISK: Compressed image found at block 0                                    
VFS: Mounted root (ext2 filesystem).                                          
Red Hat nash version 3.5.13 starting                                          
Loading ext3.ko module                                                         
insmod: QM_MODULES:                                                            
                                                                              
ERROR: /bin/insmod exited abnormally!                                          
Mounting /proc filesystem                                                      
Creating block devices                                                         
Creating root device                                                           
Mounting root filesystem                                                      
mount: error 19 mounting ext3                                                  
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2                     
umount /initrd/proc failed: 2                                                  
Freeing unused kernel memory: 236k freed                                       
Kernel panic: No init found.  Try passing init= option to kernel.              
  请高手指点!!!!
作者: NETENG    时间: 2005-03-28 08:39
标题: 编译Linux2.6.10内核后,不能进入系统,请高手指教!!
不好意思我更改一下:新内核为:2.6.5
作者: cgweb    时间: 2005-03-28 08:58
标题: 编译Linux2.6.10内核后,不能进入系统,请高手指教!!
http://bbs.chinaunix.net/forum/viewtopic.php?t=519093&highlight=cgweb
作者: yanjing5462    时间: 2005-03-30 18:51
标题: 编译Linux2.6.10内核后,不能进入系统,请高手指教!!
修改/boot/grub/grub.conf配置文件。新内核并不识别"root=LABEL=/"这个启动参数, 如果现在你就重新启动新内核的话, 将发生kernel panic错误。因此,必需把这个" LABEL=/"替换成你真实的根分区,就OK了。

如何知道你的根目录"\"在哪个partition上? 命令为: # df
以下是偶机器的部分输出:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 3834496 1609188 2030520 45% /
/dev/hda1 101089 15154 80716 16% /boot
none 46548 0 46548 0% /dev/shm

可见,我的根目录在/dev/hda2上,需要将启动参数改为 "root=/dev/hda2"。

当然,编译时要选中 ext3 模块

· 重启便可以看见kernel-2.6.5了。
作者: netbee    时间: 2005-03-31 14:58
标题: 编译Linux2.6.10内核后,不能进入系统,请高手指教!!
不用修改grub.conf文件,2。6内核可以识别"root=LABEL=/"。最近是升级相关的工具程序包,在Changes中有提到。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2