LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-11-2008, 01:35 AM   #1
ptemmerman
Member
 
Registered: Oct 2008
Location: Spain
Distribution: Ubuntu
Posts: 75

Rep: Reputation: 15
Question eth0 gone


Hi all,

Something really strange happened here.
Yesterday my laptop worked perfectly. Today after booting, my internet does not work.
dhclient returned errors, and ifconfig showed that there was no eth0.
Thought I'd do a /etc/init.d/network restart, but it only restarted lo and vmware8, no eth0 at all.
Then I took a look at /etc/sysconfig/network-scripts and there was no ifcfg-eth0, just an ifcfg-eth0.bak. I renamed the file to ifcfg-eth0 and retried /etc/init.d/network restart, now getting an error that there was nu such device eth0, wtf?

I really don't know what happened. I'm the only one using this laptop, so it's impossible somebody screwed with it.
Now I booted with my previous kernel and everything is working.
So it makes me think that I screwed up something yesterday with my kernel.
To think of it, I tried to recompile my kernel to get my wireless network card working and to enable NTFS support. Therefor, I downloaded the sources of my current kernel (kernel-2.6.18-92.1.17.el5.src.rpm) and executed the following steps (after installing and uncompressing the sources):

Quote:
cd /home/ptemmerman/rpmbuild/BUILD/kernel-2.6.18/linux-2.6.18.i686
make menuconfig
make all
That's where I stopped, because I got an error during compilation.
For those interested, the error was as follows:

Quote:
815 drivers/net/wireless/hostap/hostap_ioctl.c: In function ‘prism2_ioctl_giwrange’:
816 drivers/net/wireless/hostap/hostap_ioctl.c:1098: error: ‘struct iw_range’ has no member named ‘scan_capa’
817 drivers/net/wireless/hostap/hostap_ioctl.c:1098: error: ‘IW_SCAN_CAPA_ESSID’ undeclared (first use in this function)
818 drivers/net/wireless/hostap/hostap_ioctl.c:1098: error: (Each undeclared identifier is reported only once
819 drivers/net/wireless/hostap/hostap_ioctl.c:1098: error: for each function it appears in.)
820 make[4]: *** [drivers/net/wireless/hostap/hostap_ioctl.o] Error 1
821 make[3]: *** [drivers/net/wireless/hostap] Error 2
822 make[2]: *** [drivers/net/wireless] Error 2
823 make[1]: *** [drivers/net] Error 2
At no point I did a "make modules_install·, which may have disabled some modules previously enabled.
I don't know what happened, but it's clear that the problem is in the kernel. But that doesn't make sense to me as I booted that same kernel yesterday without problems. What is it that I may have done wrong?

I'm puzzled.
 
Old 11-11-2008, 02:25 AM   #2
ptemmerman
Member
 
Registered: Oct 2008
Location: Spain
Distribution: Ubuntu
Posts: 75

Original Poster
Rep: Reputation: 15
Hi guys,

I dug a bit deeper into this, and it seems that most of my modules are gone.

Quote:
[root@localhost ~]# ls /lib/modules/2.6.18-92.1.13.el5/kernel/drivers/
acpi atm bluetooth char crypto edac firmware i2c infiniband isdn md message mmc net pci rtc serial video
ata block cdrom cpufreq dma firewire hwmon ide input leds media misc mtd parport pcmcia scsi usb
[root@localhost ~]# ls /lib/modules/2.6.18-92.1.17.el5/kernel/drivers/
char
As a result, lsmod is only showing the following modules to be loaded:

Quote:
Module Size Used by
vmnet 42668 8
vmmon 106668 0
fglrx 1807720 28
ata_piix 22341 3
libata 143997 1 ata_piix
sd_mod 24897 4
scsi_mod 134605 2 libata,sd_mod
ext3 123593 2
jbd 56553 1 ext3
uhci_hcd 25421 0
ohci_hcd 23261 0
ehci_hcd 33357 0
Seems I figured out the minimum amount of modules required to get a server to boot

Anyway, it definitely seems these modules were removed when trying to recompile my kernel. I would appreciate if somebody could point me out where this could have happened (As I didn't remove them manually).

Thanks.
 
Old 11-28-2008, 03:23 PM   #3
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
It was a very long time since I tried to compile the kernel, but often the all target of make include all steps. There is a probability that 'make all' even executed 'make modules' and 'make modules_install'
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Eth0 using DHCP and eth1 using static ip: eth0 receive internal ip not the router ip geraldomanaus Linux - Networking 3 04-23-2008 03:00 PM
'eth0 does not seem to be present" : RHEL 5 suddenly fails to recognize eth0 linaru Linux - Networking 8 03-14-2008 07:01 AM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM
howto delete static ip configured on eth0 & reconf multiple ip on one eth0(redhat8 viveku Linux - Networking 0 01-31-2004 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration