View previous topic :: View next topic |
Author |
Message |
zrael n00b
Joined: 21 Jan 2008 Posts: 19 Location: Guangdong,China
|
Posted: Mon Apr 21, 2008 7:31 am Post subject: [已解决]eth0找不到了,内核已经重新编译不下5遍了。郁闷啊 |
|
|
重启登录前提示:
Code: | network interface eth0 does not exist
please verify hardware or kernel module (deriver)
error: cannot start netmount as net.eth0 could not start |
#ifconfig
只有 lo 项
#ifconfig -a
只有 lo 和 dummy0 两项
#lspci 可以检查出网卡
说明:系统装好后第一次编译的系统网络是通的,后来重新编译了一次内核(没动过网络部分选项),结果重启后两个内核都出现这样错误。。 _________________ 熟练内核配置是基本功!
Last edited by zrael on Tue Apr 22, 2008 1:22 am; edited 1 time in total |
|
Back to top |
|
|
punkid Apprentice
Joined: 18 Dec 2004 Posts: 215 Location: offline
|
Posted: Mon Apr 21, 2008 11:44 am Post subject: |
|
|
try
Code: |
mv /etc/udev /etc/udev.bak/
emerge udev
|
_________________ My Blog | Latest Screenshot |
|
Back to top |
|
|
EricHsu Bodhisattva
Joined: 03 May 2004 Posts: 591 Location: Aragon Consulting Group, Beijing, China
|
|
Back to top |
|
|
zrael n00b
Joined: 21 Jan 2008 Posts: 19 Location: Guangdong,China
|
Posted: Tue Apr 22, 2008 1:24 am Post subject: |
|
|
从新编译了内核,把网络网卡相关的选项都编进内核,还把大部分网卡驱动也编进去,新内核OK _________________ 熟练内核配置是基本功! |
|
Back to top |
|
|
EricHsu Bodhisattva
Joined: 03 May 2004 Posts: 591 Location: Aragon Consulting Group, Beijing, China
|
Posted: Tue Apr 22, 2008 2:06 am Post subject: |
|
|
zrael wrote: | 从新编译了内核,把网络网卡相关的选项都编进内核,还把大部分网卡驱动也编进去,新内核OK |
恭喜恭喜!
不过, 我建议你进一步研究一下: 自己的网卡是什么, 真正起作用的驱动模块是哪个. 然后进一步精简.
步骤很简单:
- $ /usr/sbin/lspci | grep -i ethernet - 你将会看到自己的模块的型号
- 然后拿着这个型号去 google, 加上 "linux driver/module" 之类的关键字, 你会得到一些信息
- $ lsmod, 你会看到中间有某个模块和上一步搜索的结果有关联, 那就是我们要的模块了
- 重新编译内核, 把其他没必要的驱动都弄掉, 完美.
_________________ - http://nkbit.com
- http://twitter.com/xuyihua |
|
Back to top |
|
|
doubledr n00b
Joined: 23 Feb 2008 Posts: 23
|
Posted: Tue Apr 22, 2008 6:53 pm Post subject: |
|
|
网络部分是比较烦的 |
|
Back to top |
|
|
|