15 12
发新话题
打印

Kernel panic - not syncing: Attempted to kill init!

Kernel panic - not syncing: Attempted to kill init!

我在编译2.6.18.8和2.6.15.5成功后,启动时都出现了下面的错误:

Unable to find volume group "VolGroup00"
ERROR: /bin/lvm exited abnormally (pid 326)
mount: error 6 mounting ext3
mount: error 2 mounting none
switchroot: mount failed: 22
umount: /initrd/dev failed: 2
Kernel panic - not syncing: Attempted to kill init!
请教高手帮小妹解决一下也好啊      

TOP

咦,通常声明为mm的帖子总会有n个人回帖,怎么这个坛子竟然不一样呢?

从你给出的信息暂时无法知道原因,需要更多的信息:
1,你用的发行版,自带内核是哪个版本
2,贴出/boot/grub/grub.conf的内容
3,贴出fdisk -l 的结果      
1,本人乃Linux伊甸园“Linux内核学习”,“红旗等发行版”版主,请大家捧场。
2,红旗Linux在设备驱动,系统设置,中文美化,易用性方面做得非常好,建议大家使用。
3,本人是红旗Linux的粉丝,不是枪手。

TOP

谢楼上

我用的是Red Hat Enterprise Linux 4,自带内核为2.6.9-22.EL
grub如下:
# 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,0)

#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00

#          initrd /initrd-version.img

#boot=/dev/sda

default=2
timeout=10

splashimage=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

title Red Hat Enterprise Linux AS (2.6.18.8)
        root (hd0,0)

        kernel /vmlinuz-2.6.18.8 ro root=/dev/VolGroup00/LogVol00 rhgb quiet

        initrd /initrd-2.6.18.8.img

title Red Hat Enterprise Linux AS (2.6.7)
        root (hd0,0)

        kernel /vmlinuz-2.6.7 ro root=/dev/VolGroup00/LogVol00 rhgb quiet

        initrd /initrd-2.6.7.img

title Red Hat Enterprise Linux AS (2.6.9-22.EL)

        root (hd0,0)

        kernel /vmlinuz-2.6.9-22.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet

        initrd /initrd-2.6.9-22.EL.img

title Red Hat Enterprise Linux AS (2.6.15.5)

        root (hd0,0)

        kernel /vmlinuz-2.6.15.5 ro root=/dev/VolGroup00/LogVol00 kgdb8250=0,115200 kgdbwait



title Red Hat Enterprise Linux AS (2.6.7-kgdb)

        root (hd0,0)

        kernel /vmlinuz-2.6.7-kgdb ro root=/dev/VolGroup00/LogVol00 kgdbwait kgdb8250=0,115200
        #initrd /initrd-2.6.7-kgdb.img

        
fdis -l的内容如下:
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        1305    10377990   8e  Linux LVM


请大哥再帮小妹瞧瞧,谢谢!      

TOP

这个东西我没碰到过,无能为力……………………      

TOP

这个问题跟LVM相关,LVM我不是很熟,试试以下办法是否有效
1,将启动项里面的root=/dev/VolGroup00/LogVol00改为root=/dev/sda2
2,如果上面的办法不行,那么编译内核的时候注意要加上LVM支持,应该在这个地方:
  device drivers -- Multiple devices driver support (RAID and LVM) 选上这个,然后回车,把它的子项目选上,再使用root=/dev/VolGroup00/LogVol00参数启动。      
1,本人乃Linux伊甸园“Linux内核学习”,“红旗等发行版”版主,请大家捧场。
2,红旗Linux在设备驱动,系统设置,中文美化,易用性方面做得非常好,建议大家使用。
3,本人是红旗Linux的粉丝,不是枪手。

TOP

第1个方法没用,第二个方法,我在编译时就已经选上这个选项了,试了好多办法都没有用
http://blog.chinaunix.net/u/4312/showart_295760.html
这篇文章说他已经解决了,但我不知道他是怎么解决的,大哥您能看一下吗,
我用这个命令:mkinitrd -v --preload mptspi --preload dm-mod -f initrd-2.6.20.4 2.6.20.4
出现如下错误
Creating initramfs
Looking for deps of module mptspi
No module mptspi found for kernel 2.6.18.8, aborting.
好像是说没有mptspi呀,怎么办啊!!!
还有这个mkinitrd-4.2.17.tar.gz怎么安装呢?      

TOP

1,你跟他一样使用scsi硬盘吗?如果不是,他的方法就不一定管用。
2,mptspi使他那种scsi硬盘的驱动,编内核时若没选上就会找不到。
3,mkinitrd的安装跟一般的软件差不多,解压,make,make install即可。
4,如果你原来的mkinitrd能够工作,就不要安装新的,以免带来新问题。      
1,本人乃Linux伊甸园“Linux内核学习”,“红旗等发行版”版主,请大家捧场。
2,红旗Linux在设备驱动,系统设置,中文美化,易用性方面做得非常好,建议大家使用。
3,本人是红旗Linux的粉丝,不是枪手。

TOP

555555555555555,我找不到解决的方法      

TOP

内核的版本真吓人,

这是什么啊?
从未见过,

      

TOP

这么高版本的内核从未出生过啊      

TOP

 15 12
发新话题