当前位置: 技术问答>linux和unix
编译后的内核启动有问题,请教!
来源: 互联网 发布时间:2015-06-09
本文导语: 我用新编译的内核启动不了系统,提示是 ds: No socket drivers loaded! VFS: can not open root device"LABEL=linux"or 00:00 please append a correct "root=" boot option kernel panic VFS: unable to mount root fs on 00:00 于是我把grub.conf成这样...
我用新编译的内核启动不了系统,提示是
ds: No socket drivers loaded!
VFS: can not open root device"LABEL=linux"or 00:00
please append a correct "root=" boot option
kernel panic VFS: unable to mount root fs on 00:00
于是我把grub.conf成这样,系统能启动了,但是mount不能用了,USB,vfat系统都不能被mount,不知什么原因.
default=1
timeout=10
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-4.ELcustom)
root (hd0,7)
kernel /boot/vmlinuz-2.4.21-4.ELcustom ro root=/dev/hda8 hdc=ide-scsi[/code:1:d06b7aeba2]
initrd /boot/initrd-2.4.21-4.ELcustom.img
title Red Hat Enterprise Linux AS (2.4.21-4.EL)
root (hd0,7)
kernel /boot/vmlinuz-2.4.21-4.EL ro root=LABEL=/
initrd /boot/initrd-2.4.21-4.EL.img
title windows
rootnoverify (hd0,0)
chainloader +1
ds: No socket drivers loaded!
VFS: can not open root device"LABEL=linux"or 00:00
please append a correct "root=" boot option
kernel panic VFS: unable to mount root fs on 00:00
于是我把grub.conf成这样,系统能启动了,但是mount不能用了,USB,vfat系统都不能被mount,不知什么原因.
default=1
timeout=10
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-4.ELcustom)
root (hd0,7)
kernel /boot/vmlinuz-2.4.21-4.ELcustom ro root=/dev/hda8 hdc=ide-scsi[/code:1:d06b7aeba2]
initrd /boot/initrd-2.4.21-4.ELcustom.img
title Red Hat Enterprise Linux AS (2.4.21-4.EL)
root (hd0,7)
kernel /boot/vmlinuz-2.4.21-4.EL ro root=LABEL=/
initrd /boot/initrd-2.4.21-4.EL.img
title windows
rootnoverify (hd0,0)
chainloader +1
|
这跟grub没什么关系,关键在内核配置,用make xconfig, make oldconfig,
make menuconfig等将File Systems中的vfat配置,可以设为编译入内核和作为可装载模块
可装载模块,可用modprobe,insmod装载,USB根据你的USB类型,可配置为usb-uhci(USB1.1),ehci-hcd(usb2.0)后,用modprobe usbcore;modprobe usb-uhci;modprobe ehci-hcd,然后再mount.
make menuconfig等将File Systems中的vfat配置,可以设为编译入内核和作为可装载模块
可装载模块,可用modprobe,insmod装载,USB根据你的USB类型,可配置为usb-uhci(USB1.1),ehci-hcd(usb2.0)后,用modprobe usbcore;modprobe usb-uhci;modprobe ehci-hcd,然后再mount.