当前位置: 技术问答>linux和unix
编译好的内核,也设置好了,但是启动时候总是失败
来源: 互联网 发布时间:2016-01-09
本文导语: 我编译了2.6.19.2的内核,编译成功了,但是在用新内核启动的时候总是出错,还在启动信息不多,我摘抄了一部分: Uncompressing Linux... Ok, booting the kernel. ACPI: Getting cupindex for acpiid 0x1 ACPI: Getting cupindex for acpii...
我编译了2.6.19.2的内核,编译成功了,但是在用新内核启动的时候总是出错,还在启动信息不多,我摘抄了一部分:
Uncompressing Linux... Ok, booting the kernel.
ACPI: Getting cupindex for acpiid 0x1
ACPI: Getting cupindex for acpiid 0x2
ACPI: Getting cupindex for acpiid 0x3
Red Hat nash version 4.2.15 starting
scsi_mod: exports duplicate symbol scsi_device_cancel(owned by kerel)
insmod: error inserting '/lib/scsi_mod.ko': -1 Invalid module format
ERROR: /bin/insmod exited abnormally with value 1 ! (pid 301)
insmod: error inserting '/lib/sd_mod.ko': -1 No such device
ERROR: /bin/insmod exited abnormally with value 1 ! (pid 302)
sda: asking for cache data failed
sda: assuming drive cache: write through
sda: asking for cache data failed
sda: assuming drive cache: write through
Reading all physical volumes. This may tak a while...
Found volume group "VolGroup00" using metadata type lvm2
2 logical volume(s) in volume group "VolGroup00" now active
Enforcing Mode Requested but no policy loaded. Halting now.
Kernel panic - not syncing: Attempted to kill init!
我使用的是VMware,在fedora4下编译的。
似乎主要的错误在insmod /lib/scsi_mod.ko。 不知道这时个什么东西,起什么作用呢?又该如何处理?
Uncompressing Linux... Ok, booting the kernel.
ACPI: Getting cupindex for acpiid 0x1
ACPI: Getting cupindex for acpiid 0x2
ACPI: Getting cupindex for acpiid 0x3
Red Hat nash version 4.2.15 starting
scsi_mod: exports duplicate symbol scsi_device_cancel(owned by kerel)
insmod: error inserting '/lib/scsi_mod.ko': -1 Invalid module format
ERROR: /bin/insmod exited abnormally with value 1 ! (pid 301)
insmod: error inserting '/lib/sd_mod.ko': -1 No such device
ERROR: /bin/insmod exited abnormally with value 1 ! (pid 302)
sda: asking for cache data failed
sda: assuming drive cache: write through
sda: asking for cache data failed
sda: assuming drive cache: write through
Reading all physical volumes. This may tak a while...
Found volume group "VolGroup00" using metadata type lvm2
2 logical volume(s) in volume group "VolGroup00" now active
Enforcing Mode Requested but no policy loaded. Halting now.
Kernel panic - not syncing: Attempted to kill init!
我使用的是VMware,在fedora4下编译的。
似乎主要的错误在insmod /lib/scsi_mod.ko。 不知道这时个什么东西,起什么作用呢?又该如何处理?
|
initrd 里面有问题,看提示信息是说,你静态编译了scsi_mod模块,然后又加载scsi_mod,于是出现dup的错误。你可以试试不用initrd,即在grub的配置文件里面直接给内核参数 root=/xxx/sss,将initrd=xxx去掉