QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 902|回复: 7

内核编译完.出现init 问题

[复制链接]
发表于 2003-10-25 03:56:06 | 显示全部楼层 |阅读模式
内核升级到2.4.22 出现如下问题.
Warning : Unable to open an initial console
Kernel panic:No init found .Try passing init=iption to kernel
我把loopback 编进内核.并mkinitrd  /boot/initrd-2.4.22.img
/etc/grub.conf 有initrd-2.4.22.img因为无法进入系统.之后我把/etc/grub.conf 有initrd-2.4.22.img 去除了.并把/boot 里的initrd-2.4.22
给删了.可还是没法进入系统.问题和上面一样.
是什么地方错了.
发表于 2003-10-25 10:05:53 | 显示全部楼层
post u grub.conf /etc/fstab , df

http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=38644
回复

使用道具 举报

 楼主| 发表于 2003-10-25 12:03:40 | 显示全部楼层
[root@localhost root]#less /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,2)
#          kernel /vmlinuz-version ro root=/dev/hda5
#          initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,2)/grub/splash.xpm.gz
title Red Hat  Linux (2.4.22)
        root (hd0,2)
        kernel /vmlinuz-2.4.22 ro root=/dev/hda3

title Red Hat Linux (2.4.20-20.
        root (hd0,2)
        kernel /vmlinuz-2.4.20-20.8 ro root=LABEL=/
        initrd /initrd-2.4.20-20.8.img
title Red Hat Linux (2.4.18-14)
        root (hd0,2)
        kernel /vmlinuz-2.4.18-14 ro root=LABEL=/
        initrd /initrd-2.4.18-14.img
title DOS
        rootnoverify (hd0,0)
        chainloader +1

[root@localhost root]#less /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda6               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0


[root@localhost root]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda5             19061904   3459388  14634200  20% /
/dev/hda3               101107     19472     76414  21% /boot
none                    127704         0    127704   0% /dev/shm
回复

使用道具 举报

发表于 2003-10-25 12:57:07 | 显示全部楼层
i no wai
回复

使用道具 举报

发表于 2003-10-25 12:59:10 | 显示全部楼层
title Red Hat Linux (2.4.20-20.
root (hd0,2)
kernel /vmlinuz-2.4.20-20.8 ro root=LABEL=/
initrd /initrd-2.4.20-20.8.img

-------------------
title Red Hat Linux (2.4.20-20.
root (hd0,2)
kernel /vmlinuz-2.4.20-20.8 ro root=/dev/hda5
initrd /initrd-2.4.20-20.8.img
回复

使用道具 举报

发表于 2003-10-26 22:37:41 | 显示全部楼层
i have the same problem.
回复

使用道具 举报

发表于 2003-10-27 10:29:25 | 显示全部楼层
i have met the same problem.
回复

使用道具 举报

发表于 2003-10-28 02:57:53 | 显示全部楼层
"/dev/hda5 19061904 3459388 14634200 20% / " so u / is /dev/hda5


but u have " kernel /vmlinuz-2.4.22 ro root=/dev/hda3 "

so root is wrong. use root=/dev/hda5.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-14 11:21 , Processed in 0.045117 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表