Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Network Card Not Detected after install

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
29 posts
  • 1
  • 2
  • Next
Author
Message
shawl01
n00b
n00b
Posts: 11
Joined: Wed Jul 09, 2008 8:46 am

Network Card Not Detected after install

  • Quote

Post by shawl01 » Wed Jul 09, 2008 10:03 am

Hi all,
I am a newbie to gentoo and have just started a fresh install of 2008 using the i686 live cd (rc1) on a HP D510 ultra slim PC.

The install went fine with no problems at all but upon reboot I have noticed two strange things.

1) eth0 is not detected and wont start

2) it won't display the grub boot loader screen and the text that appears on-screen is corrupt until it enters runlevel 3

the network card is strange as it was detected by the live cd because I could browse the net ok and the installer also detected it when I configured it for dhcp.

The graphics I can live with but I just thought it strange, did have the problem with 2007.

Like I said I am very new to linux in general and so if I need to recompile the kernel, please teach me to suck eggs, with plenty of detail :D

Many thanks
Luke
Top
Akhouk
Guru
Guru
User avatar
Posts: 476
Joined: Fri May 23, 2003 9:09 am
Location: The Two Niles, Africa
Contact:
Contact Akhouk
Website

  • Quote

Post by Akhouk » Wed Jul 09, 2008 10:18 am

Which network card do you have? What is the output of lspci ?
AMD 64 3500+, 2Gb RAM DDR400, 2 x 180Gb SATA, 256Mb Nvidia
Top
shawl01
n00b
n00b
Posts: 11
Joined: Wed Jul 09, 2008 8:46 am

  • Quote

Post by shawl01 » Wed Jul 09, 2008 10:36 am

Ok,

network card is on-board and according to HP website it is an Intel pro/1000.

tried lspci at command prompt and got command not found.

When I did the install and did not pick any extra options except sshd on the last couple of screens, did I need to pick something their?

Thanks
Luke
Top
terracotta_shore
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Dec 05, 2006 2:36 pm

  • Quote

Post by terracotta_shore » Wed Jul 09, 2008 10:42 am

shawl01 wrote:tried lspci at command prompt and got command not found.
Su to root and try again.

Sucking eggs version: :wink: In a terminal, type 'su -' (no quotes) and press return. Type in the root password - it appears not to be going in. Don't worry, it is. Press return again and you get the # prompt meaning you have root privileges. Now try lspci again.
Top
shawl01
n00b
n00b
Posts: 11
Joined: Wed Jul 09, 2008 8:46 am

  • Quote

Post by shawl01 » Wed Jul 09, 2008 10:51 am

:cry: ok, I already logged in at the PC as root (didn't create any other accounts during install)

But did try su - and it came back with the prompt which had the # before and after I type the su - command :?

lspci still the same - command not found :cry:
Top
terracotta_shore
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Dec 05, 2006 2:36 pm

  • Quote

Post by terracotta_shore » Wed Jul 09, 2008 10:55 am

shawl01 wrote::cry: ok, I already logged in at the PC as root (didn't create any other accounts during install)

But did try su - and it came back with the prompt which had the # before and after I type the su - command :?

lspci still the same - command not found :cry:
Sorry! I think I need to be the one being taught to suck eggs. :(

You need to emerge pcutils. Or something like that. I'm using a mac at the moment and can't do an emerge --search. I'll check it out and edit this post if necessary.

Edit: Just checked, and it's pciutils, not pcutils. Try emerging that and then you'll actually get the lspci utility installed.
Last edited by terracotta_shore on Wed Jul 09, 2008 10:59 am, edited 1 time in total.
Top
Akhouk
Guru
Guru
User avatar
Posts: 476
Joined: Fri May 23, 2003 9:09 am
Location: The Two Niles, Africa
Contact:
Contact Akhouk
Website

  • Quote

Post by Akhouk » Wed Jul 09, 2008 10:55 am

There was no need to do the su if you are already root. Root user has # prompt instead of a $ prompt (by default).

Try /usr/sbin/lspci
AMD 64 3500+, 2Gb RAM DDR400, 2 x 180Gb SATA, 256Mb Nvidia
Top
shawl01
n00b
n00b
Posts: 11
Joined: Wed Jul 09, 2008 8:46 am

  • Quote

Post by shawl01 » Wed Jul 09, 2008 11:12 am

lspci does not exist in the /usr/sbin dir

used find / -name lspci and nothing was found :(
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Wed Jul 09, 2008 11:16 am

can you show output of

Code: Select all

cat /usr/src/linux/.config | grep E1000
Top
shawl01
n00b
n00b
Posts: 11
Joined: Wed Jul 09, 2008 8:46 am

  • Quote

Post by shawl01 » Wed Jul 09, 2008 11:29 am

Nothing in the /usr/src directory :(
Top
terracotta_shore
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Dec 05, 2006 2:36 pm

  • Quote

Post by terracotta_shore » Wed Jul 09, 2008 11:54 am

shawl01 wrote:lspci does not exist in the /usr/sbin dir

used find / -name lspci and nothing was found :(
lspci won't exist in /usr/sbin yet because it isn't included in a default install of Gentoo. Apologies for forgetting that. Apologies also for the su to root red-herring and for forgetting that without a network connection, trying to emerge pciutils wasn't going to get very far. I might just manage to get my brain in gear before the day is out. :oops:

What you could do from any computer with an internet connection is to go to http://mirror.bytemark.co.uk/gentoo/distfiles/ (or http://any_gentoo_mirror/distfiles/ ) and download the file pciutils-2.2.10.tar.gz. Copy this to /usr/portage/distfiles and then try:

Code: Select all

emerge pciutils
I'm just hoping that the version of the portage tree that came with your new install recognises that version of pciutils.
Top
shawl01
n00b
n00b
Posts: 11
Joined: Wed Jul 09, 2008 8:46 am

  • Quote

Post by shawl01 » Wed Jul 09, 2008 12:15 pm

ok going to look for the download now.

If i put that on to a usb flash drive or usb hdd how do i mount it so I can transfer the file ?

Thanks
Luke
Top
terracotta_shore
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Dec 05, 2006 2:36 pm

  • Quote

Post by terracotta_shore » Wed Jul 09, 2008 12:43 pm

shawl01 wrote:If i put that on to a usb flash drive or usb hdd how do i mount it so I can transfer the file ?
I've got a horrible feeling that the default skeleton install might not detect plugged in usb drives. Plug in your drive and:

Code: Select all

dmesg | tail
I did that and got:
sd 3:0:0:0: [sdc] Mode Sense: 23 00 00 00
sd 3:0:0:0: [sdc] Assuming drive cache: write through
sd 3:0:0:0: [sdc] 4030464 512-byte hardware sectors (2064 MB)
sd 3:0:0:0: [sdc] Write Protect is off
sd 3:0:0:0: [sdc] Mode Sense: 23 00 00 00
sd 3:0:0:0: [sdc] Assuming drive cache: write through
sdc: sdc1
sd 3:0:0:0: [sdc] Attached SCSI removable disk
sd 3:0:0:0: Attached scsi generic sg3 type 0
usb-storage: device scan complete
which is telling me that the usb drive is sdc and, as there's only one partition, the one I want will be sdc1. If you get something similar do:

Code: Select all

# mkdir /mnt/whateveryouwanttocallit
# mount /dev/sdc1 /mnt/whateveryouwanttocallit
# cp /mnt/whateveryouwanttocallit/pciutils-2.2.10.tar.gz /usr/portage/distfiles/
assuming you've put the tar.gz file in the root directory of your usb drive, and adjust sdc1 as appropriate.

But a couple of other things have occurred to me. Can you post the contents of /etc/conf.d/net ? We need to make sure that's been setup properly. Also, for reasons I've never been able to fathom, the onboard ethernet card is sometimes picked up as eth1. That's happened to me with two motherboards. It's a real gotcha although since the liveCD detected it as eth0, your new install should too.

Are you using the genkernel or one you compiled yourself?
Top
xlillo
n00b
n00b
Posts: 16
Joined: Mon Dec 26, 2005 11:49 am
Location: Prato - Italy

  • Quote

Post by xlillo » Wed Jul 09, 2008 12:59 pm

I have the same problem.
In livecd all ok, but in real system don't find the eth0, Icopiled kernel with genkernel and "at hand" but problem persist.
I noted that don't have the command 'net-setup' for configure eth0 auto, is it possible make an emerge for install it?
Card: Realtek RTL8139
Tks in advance
Il mio colore preferito era il blu.
Fino a quando non ho installato Windows...
Top
Akhouk
Guru
Guru
User avatar
Posts: 476
Joined: Fri May 23, 2003 9:09 am
Location: The Two Niles, Africa
Contact:
Contact Akhouk
Website

  • Quote

Post by Akhouk » Wed Jul 09, 2008 1:02 pm

xlillo wrote:I have the same problem.
In livecd all ok, but in real system don't find the eth0, Icopiled kernel with genkernel and "at hand" but problem persist.
I noted that don't have the command 'net-setup' for configure eth0 auto, is it possible make an emerge for install it?
Card: Realtek RTL8139
Tks in advance
Make sure you have the 8139too kernel module. Try modprobe 8139too. What does it say?

If it doesn't detect it automatically you can add 8139too to /etc/modules.autoload.d/kernel-2.6
AMD 64 3500+, 2Gb RAM DDR400, 2 x 180Gb SATA, 256Mb Nvidia
Top
xlillo
n00b
n00b
Posts: 16
Joined: Mon Dec 26, 2005 11:49 am
Location: Prato - Italy

  • Quote

Post by xlillo » Wed Jul 09, 2008 1:20 pm

Akhouk wrote:
xlillo wrote:I have the same problem.
In livecd all ok, but in real system don't find the eth0, Icopiled kernel with genkernel and "at hand" but problem persist.
I noted that don't have the command 'net-setup' for configure eth0 auto, is it possible make an emerge for install it?
Card: Realtek RTL8139
Tks in advance
Make sure you have the 8139too kernel module. Try modprobe 8139too. What does it say?

If it doesn't detect it automatically you can add 8139too to /etc/modules.autoload.d/kernel-2.6
Tks it work!
Just with modprobe 8139too work, after I edit /etc/modules.autoload.d/kernel-2.6 as you ask, restart and work perfect.
Il mio colore preferito era il blu.
Fino a quando non ho installato Windows...
Top
shawl01
n00b
n00b
Posts: 11
Joined: Wed Jul 09, 2008 8:46 am

  • Quote

Post by shawl01 » Wed Jul 09, 2008 1:43 pm

terracotta_shore wrote:
shawl01 wrote:If i put that on to a usb flash drive or usb hdd how do i mount it so I can transfer the file ?
I've got a horrible feeling that the default skeleton install might not detect plugged in usb drives. Plug in your drive and:

Code: Select all

dmesg | tail
I did that and got:
sd 3:0:0:0: [sdc] Mode Sense: 23 00 00 00
sd 3:0:0:0: [sdc] Assuming drive cache: write through
sd 3:0:0:0: [sdc] 4030464 512-byte hardware sectors (2064 MB)
sd 3:0:0:0: [sdc] Write Protect is off
sd 3:0:0:0: [sdc] Mode Sense: 23 00 00 00
sd 3:0:0:0: [sdc] Assuming drive cache: write through
sdc: sdc1
sd 3:0:0:0: [sdc] Attached SCSI removable disk
sd 3:0:0:0: Attached scsi generic sg3 type 0
usb-storage: device scan complete
which is telling me that the usb drive is sdc and, as there's only one partition, the one I want will be sdc1. If you get something similar do:

Code: Select all

# mkdir /mnt/whateveryouwanttocallit
# mount /dev/sdc1 /mnt/whateveryouwanttocallit
# cp /mnt/whateveryouwanttocallit/pciutils-2.2.10.tar.gz /usr/portage/distfiles/
assuming you've put the tar.gz file in the root directory of your usb drive, and adjust sdc1 as appropriate.

But a couple of other things have occurred to me. Can you post the contents of /etc/conf.d/net ? We need to make sure that's been setup properly. Also, for reasons I've never been able to fathom, the onboard ethernet card is sometimes picked up as eth1. That's happened to me with two motherboards. It's a real gotcha although since the liveCD detected it as eth0, your new install should too.

Are you using the genkernel or one you compiled yourself?
OK.

1. I have mounted the usb stick all ok. However, in the folder /usr/portage thier is a file called distfiles and so I cannot create a directory with the same name. Should I just delete the file?
2. /etc/conf.d/net only contains 1 line it is

Code: Select all

config_eth0=( "dhcp" )
3. using genkernel (assuming that's the default), don't know how to compile my own yet!

Thanks for all the help, please send more 8O
Luke
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Wed Jul 09, 2008 1:59 pm

well, if you /usr/src is empty then i suppose you didn't compile your kernel...
maybe the one you use got the driver, but with hal it should have autoload it, but if you feel lucky try

Code: Select all

modprobe e1000
if your kernel doesn't handle e1000 (witch is driver for intel 1g network card, i saw also an e1000e that depend on model, but i think e1000 is most common), you need to build your own kernel to have that driver.
Please refer to wiki, howto... for proper kernel installation, and make sure you select e1000, e100 and e1000e as modules.
Top
terracotta_shore
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Dec 05, 2006 2:36 pm

  • Quote

Post by terracotta_shore » Wed Jul 09, 2008 2:17 pm

shawl01 wrote:in the folder /usr/portage thier is a file called distfiles and so I cannot create a directory with the same name. Should I just delete the file?
No, /usr/portage/distfiles is a directory. Don't delete it! :shock: It's fundamental to the way Gentoo works. It's where all the source files for the various apps are put.

But I think I can see where you misunderstood me. When you 'mkdir /mnt/somemountpoint', you are creating an empty directory in /mnt in which you can mount your usb drive. Why not call it /mnt/usb or /mnt/donglethingy ? Whatever you like. :) Then, when you do the cp (copy) command, you simply copy the tar.gz file from your mounted usb drive into /usr/portage/distfiles.
shawl01 wrote:/etc/conf.d/net only contains 1 line it is

Code: Select all

config_eth0=( "dhcp" )
Aha. Now we're getting somewhere. It should have two lines. Before I tell you the second, try (in a root terminal):

Code: Select all

dhcpcd eth0
Hopefully, it will connect and you won't have to worry about lspci, recompiling kernels, and all the rest. Whether or not that works, add this line immediately after that first one:

Code: Select all

dhcpcd_eth0=""
You'll have to edit it as root. Probably easiest to reboot now.

Glad you're using genkernel. Makes it easier for now. You've almost certainly got the driver for your ethernet card compiled into the kernel.
Top
terracotta_shore
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Dec 05, 2006 2:36 pm

  • Quote

Post by terracotta_shore » Wed Jul 09, 2008 2:52 pm

Out of curiosity, I've made a fresh install with the live 2008 CD onto a spare partition and I've made some interesting discoveries.

There was no /usr/portage/distfiles directory - I had to make one - but neither was there a distfiles file - so I don't understand where yours came from. Predictably I suppose, the system wanted to emerge pciutils-2.2.8.tar.gz rather than the ..10.. version I suggested. :roll: Sorry about that. Using the ...8... version does work except that it's not on the server I linked to. I had a copy on my home server, so I was OK, but.... And you can't do an emerge --sync yet....

AAAAAAaaaaaaaaaarrrgh!

And I can't get eth0 to work either, even though it was working fine from the live CD. I've tried a few things without success. I need a rest now, but I'll come back to it later and post anything I might find.

Hmm - it was simpler with a stage 3 install. :(

Edit: A cup of tea was as good as a rest. Posting from the fresh install now. All I had to do was modprobe the driver for my network card and here I am. I had already added that second line to /etc/conf.d/net though.

If it hasn't already been explained, we need the output from lspci to determine which chipset your ethernet card has - hence which kernel driver to load. Rather than fart around trying to install pciutils without a network connection, have you got a live CD from another distro handy? Ubuntu, Mepis or Mint would do. You can boot up a live CD and run lspci from that. It's possible that the live Gentoo CD has pciutils, but I haven't the energy to try it out.
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Wed Jul 09, 2008 3:40 pm

terracotta_shore wrote:...we need the output from lspci to determine which chipset your ethernet card has - hence which kernel driver to load...
shawl01 wrote: network card is on-board and according to HP website it is an Intel pro/1000.
2nd cup of tea coming....
Top
terracotta_shore
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Dec 05, 2006 2:36 pm

  • Quote

Post by terracotta_shore » Wed Jul 09, 2008 4:13 pm

krinn wrote:2nd cup of tea coming....
That's very kind of you. Earl Grey with milk please. Oh, and a nice chocolate biscuit too. :P
Top
shawl01
n00b
n00b
Posts: 11
Joined: Wed Jul 09, 2008 8:46 am

  • Quote

Post by shawl01 » Wed Jul 09, 2008 4:19 pm

ok,

Steep learning curve here for me, sorry it's taken me a little while. But I rebooted the 2008 live cd and once I had figured out how to change the root password I could then su root. Once thier I could run lspci and captured the output into a text file.

Once I done that I quickly reread some notes on how to attach my freenas drive and was then able to save the text file to somewhere that I can access it on my mac and hence bring it to you.

and here it is

Code: Select all

livecd gentoo # lspci
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 01)
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 81)
00:1f.0 ISA bridge: Intel Corporation 82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge (rev 01)
00:1f.1 IDE interface: Intel Corporation 82801DB (ICH4) IDE Controller (rev 01)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
05:08.0 Ethernet controller: Intel Corporation 82801DB PRO/100 VM (LOM) Ethernet Controller (rev 81)
Someone please tell me were getting somewhere now :roll:
Top
shawl01
n00b
n00b
Posts: 11
Joined: Wed Jul 09, 2008 8:46 am

  • Quote

Post by shawl01 » Wed Jul 09, 2008 6:49 pm

Code: Select all

dhcpcd eth0
Gives error

Code: Select all

Error, eth0: ioctl SIOCGIFHWADDR: No such device
Top
terracotta_shore
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Tue Dec 05, 2006 2:36 pm

  • Quote

Post by terracotta_shore » Wed Jul 09, 2008 7:12 pm

Have you tried the

Code: Select all

modprobe e1000
that krinn suggested which will load the driver for your ethernet card? You're getting an error message after 'dhcpcd eth0' because there's no driver loaded - I presume. Edit /etc/conf.d/net as I suggested and then do the modprobe. If nothing happens try the dhcpcd command. The ethernet driver should have autoloaded on bootup, but it didn't on my new install, so perhaps it isn't on yours as well. Goodness knows why.
Top
Post Reply

29 posts
  • 1
  • 2
  • Next

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic