Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[已解决]eth0找不到了,内核已经重新编译不下5遍了。郁闷啊
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
zrael
n00b
n00b


Joined: 21 Jan 2008
Posts: 19
Location: Guangdong,China

PostPosted: Mon Apr 21, 2008 7:31 am    Post subject: [已解决]eth0找不到了,内核已经重新编译不下5遍了。郁闷啊 Reply with quote

重启登录前提示:
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
View user's profile Send private message
punkid
Apprentice
Apprentice


Joined: 18 Dec 2004
Posts: 215
Location: offline

PostPosted: Mon Apr 21, 2008 11:44 am    Post subject: Reply with quote

try
Code:

mv /etc/udev /etc/udev.bak/
emerge udev

_________________
My Blog | Latest Screenshot
Back to top
View user's profile Send private message
EricHsu
Bodhisattva
Bodhisattva


Joined: 03 May 2004
Posts: 591
Location: Aragon Consulting Group, Beijing, China

PostPosted: Mon Apr 21, 2008 12:41 pm    Post subject: Re: eth0找不到了,内核已经重新编译不下5遍了。郁闷啊 Reply with quote

zrael wrote:
#lspci 可以检查出网卡


请把 lspci 的信息贴出来, 还有 lsmod 的 :)
_________________
- http://nkbit.com
- http://twitter.com/xuyihua
Back to top
View user's profile Send private message
zrael
n00b
n00b


Joined: 21 Jan 2008
Posts: 19
Location: Guangdong,China

PostPosted: Tue Apr 22, 2008 1:24 am    Post subject: Reply with quote

从新编译了内核,把网络网卡相关的选项都编进内核,还把大部分网卡驱动也编进去,新内核OK
_________________
熟练内核配置是基本功!
Back to top
View user's profile Send private message
EricHsu
Bodhisattva
Bodhisattva


Joined: 03 May 2004
Posts: 591
Location: Aragon Consulting Group, Beijing, China

PostPosted: Tue Apr 22, 2008 2:06 am    Post subject: Reply with quote

zrael wrote:
从新编译了内核,把网络网卡相关的选项都编进内核,还把大部分网卡驱动也编进去,新内核OK


恭喜恭喜!

不过, 我建议你进一步研究一下: 自己的网卡是什么, 真正起作用的驱动模块是哪个. 然后进一步精简.

步骤很简单:


  • $ /usr/sbin/lspci | grep -i ethernet - 你将会看到自己的模块的型号
  • 然后拿着这个型号去 google, 加上 "linux driver/module" 之类的关键字, 你会得到一些信息
  • $ lsmod, 你会看到中间有某个模块和上一步搜索的结果有关联, 那就是我们要的模块了 :)
  • 重新编译内核, 把其他没必要的驱动都弄掉, 完美.

_________________
- http://nkbit.com
- http://twitter.com/xuyihua
Back to top
View user's profile Send private message
doubledr
n00b
n00b


Joined: 23 Feb 2008
Posts: 23

PostPosted: Tue Apr 22, 2008 6:53 pm    Post subject: Reply with quote

网络部分是比较烦的
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum