当前位置: 技术问答>linux和unix
重新编译linux内核后无法启动
来源: 互联网 发布时间:2017-04-20
本文导语: 小弟最近在做一个比较老的项目,是将linux2.6.17.4版本的源码做了一些扩展,重新编译后作为启动项启动不了,错误信息如下: mount:mounting none on /dev failed : no such devic udevd[288]:error getting socket:invalid argument error...
小弟最近在做一个比较老的项目,是将linux2.6.17.4版本的源码做了一些扩展,重新编译后作为启动项启动不了,错误信息如下:
mount:mounting none on /dev failed : no such devic
udevd[288]:error getting socket:invalid argument
error initializing netlink socket
udevd [288]: error initializing netlink socket
libudev:udev_monitor_new_from_netlink: error getting socket: Invalid argument
Segmentation fault
Gave up waiting for root device. Common problems
- Boot args (cat/proc/cmdline)
- Check root delay=(did the system wait long enough?)
- check root (did the system wait for the right device?)
- Missing modules(cat /porc/modules; ls /dev)
ALERT! /dev/loop0 does not exist. Dropping to a shell.
(initramfs):
mount:mounting none on /dev failed : no such devic
udevd[288]:error getting socket:invalid argument
error initializing netlink socket
udevd [288]: error initializing netlink socket
libudev:udev_monitor_new_from_netlink: error getting socket: Invalid argument
Segmentation fault
Gave up waiting for root device. Common problems
- Boot args (cat/proc/cmdline)
- Check root delay=(did the system wait long enough?)
- check root (did the system wait for the right device?)
- Missing modules(cat /porc/modules; ls /dev)
ALERT! /dev/loop0 does not exist. Dropping to a shell.
(initramfs):
|
编译的内核出问题了吧,重新还原到以前的内核吧。
具体做法是:使用光盘引导,进入修复模式。
然后:
root (hd0,0)
kernel .... root=/dev/sdax
initrd ...
boot
具体做法是:使用光盘引导,进入修复模式。
然后:
root (hd0,0)
kernel .... root=/dev/sdax
initrd ...
boot