View previous topic :: View next topic |
Author |
Message |
john_deaux n00b
Joined: 16 Sep 2013 Posts: 56 Location: On the banks of the Pontchartrain
|
Posted: Wed Jul 02, 2014 7:08 pm Post subject: [SOLVED] Losing network devices after installation reboot. |
|
|
Hi All,
After I get done emerging and installing grub2 with no errors, I then proceed with 10.e. Rebooting the System. When the system reboots I no longer have network connectivity and my wired (enp0s20u1) and wireless (enp025) devices are gone.
I have been compiling my kernel using the options recommended here: http://wiki.gentoo.org/wiki/Lenovo_ThinkPad_T440s and here: http://wiki.gentoo.org/wiki/Xorg/Configuration.
Up until I reboot ifconfig shows all of my devices. After I reboot I am greeted with this:
This is tux.unknown_domain (Linux x86_64 3.12.21-gentoo-r1) time
tux login:
I'm apparently breaking something but I have no idea how to find that something.
Any help would be appreciated.
Last edited by john_deaux on Wed Jul 09, 2014 8:15 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54244 Location: 56N 3W
|
Posted: Wed Jul 02, 2014 7:25 pm Post subject: |
|
|
john_deaux,
There are lots of possibilities.
Boot into your install and run
If your network interfaces are listed, your kernel is in good shape but the interfaces have hot been started. What happens if you do Code: | dhcpcd <interface_name> |
Try the wired interface - WiFi may need firmware and encryption to make it work.
If your interfaces are missing in you have some kernel options missing.
We will need to see the output of and probably too to identify the options you need.
Those commands tell about your hardware, you need not be in the chroot for them to work. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
john_deaux n00b
Joined: 16 Sep 2013 Posts: 56 Location: On the banks of the Pontchartrain
|
Posted: Wed Jul 02, 2014 7:46 pm Post subject: |
|
|
Hi Neddy,
ifconfig -a shows:
enp0s25: flags=4098<broadcast,multicast> ntu 1500.
lo: flags=73<UP,LOOPBACK,RUNNING> ntu 65536.
sit0: flags=128<NOARP> ntu 1480.
dhcpcd enp0s20u1 = interface not found or invalid <wired>.
dhcpcd enp0s25 = waiting for carrier - timed out - exited <wireless>.
dhcpcd sit0 = unsupported interface type 308, falling back to ethernet - soliciting a DHCP lease - timed out - exited. I have not seen that device until now.
lspci = command not found.
lsusb = command not found.
Thanks. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54244 Location: 56N 3W
|
Posted: Wed Jul 02, 2014 8:08 pm Post subject: |
|
|
john_deaux,
In the chroot, you need to Code: | emerge pciutils usbutils | to get lspci and lsusb.
They are on your boot CD/USB and will give the same answers. Emerge without a network is possible but its a complication you can do without.
enp0s20u1 looks like a USB device but its not listed in ifconfig -a, so something is missing.
enp0s25 appears to be a PCI device.
Making a wired interface work is easier than wireless but its only useful to you if you can use it to get wireless going too.
sit0 isn't a real interface. Its a IPv6 over IPv4 tunnel endpoint. It tells that you have IPv6 support in your kernel. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
john_deaux n00b
Joined: 16 Sep 2013 Posts: 56 Location: On the banks of the Pontchartrain
|
Posted: Wed Jul 02, 2014 9:36 pm Post subject: |
|
|
Hi Neddy,
Not sure if this tells anyone anything but when I go to chroot into my system using the handbook:
# mount /dev/sda4 /mnt/gentoo
# mount /dev/sda2 /mnt/gentoo/boot
# cd /mnt/gentoo
# mount -t proc proc /mnt/gentoo/proc
# mount --rbind /sys /mnt/gentoo/sys
# mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
My network cards dissapear. If I type exit, the network comes back but I cannot use emerge.
I finally got in my using: (http://aaronbonner.io/post/21103731114/chroot-into-a-broken-linux-install)
# mount -t proc none /mnt/gentoo/proc
# mount -o bind /dev /mnt/gentoo/dev
# mount -o bind /sys /mnt/gentoo/sys
# chroot /mnt/gentoo /bin/bash
# source /etc/profile
lspci
Code: |
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation Lynx Point-LP USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation Lynx Point-LP HECI #0 (rev 04)
00:16.3 Serial controller: Intel Corporation Lynx Point-LP HECI KT (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218-LM (rev 04)
00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 6 (rev e4)
00:1c.1 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 3 (rev e4)
00:1d.0 USB controller: Intel Corporation Lynx Point-LP USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Lynx Point-LP LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation Lynx Point-LP SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation Lynx Point-LP SMBus Controller (rev 04)
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
03:00.0 Network controller: Intel Corporation Wireless 7260 (rev 83)
|
lspci -k
Code: |
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
Subsystem: Lenovo Device 220c
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
Subsystem: Lenovo Device 220c
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
Subsystem: Lenovo Device 220c
Kernel driver in use: snd_hda_intel
00:14.0 USB controller: Intel Corporation Lynx Point-LP USB xHCI HC (rev 04)
Subsystem: Lenovo Device 220c
Kernel driver in use: xhci_hcd
00:16.0 Communication controller: Intel Corporation Lynx Point-LP HECI #0 (rev 04)
Subsystem: Lenovo Device 220c
00:16.3 Serial controller: Intel Corporation Lynx Point-LP HECI KT (rev 04)
Subsystem: Lenovo Device 220c
Kernel driver in use: serial
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218-LM (rev 04)
Subsystem: Lenovo Device 2214
Kernel driver in use: e1000e
00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04)
Subsystem: Lenovo Device 220c
Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 6 (rev e4)
Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 3 (rev e4)
Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation Lynx Point-LP USB EHCI #1 (rev 04)
Subsystem: Lenovo Device 220c
Kernel driver in use: ehci-pci
00:1f.0 ISA bridge: Intel Corporation Lynx Point-LP LPC Controller (rev 04)
Subsystem: Lenovo Device 220c
00:1f.2 SATA controller: Intel Corporation Lynx Point-LP SATA Controller 1 [AHCI mode] (rev 04)
Subsystem: Lenovo Device 220c
Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation Lynx Point-LP SMBus Controller (rev 04)
Subsystem: Lenovo Device 220c
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader (rev 01)
Subsystem: Lenovo Device 220c
03:00.0 Network controller: Intel Corporation Wireless 7260 (rev 83)
Subsystem: Intel Corporation Dual Band Wireless-AC 7260
|
lsusb
Code: |
Bus 001 Device 002: ID 8087:8000 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 006: ID 04f2:b39a Chicony Electronics Co., Ltd
Bus 002 Device 005: ID 8087:07dc Intel Corp.
Bus 002 Device 004: ID 138a:0017 Validity Sensors, Inc.
Bus 002 Device 003: ID 152e:2571 LG (HLDS)
Bus 002 Device 002: ID 05ac:1402 Apple, Inc. Ethernet Adapter [A1277]
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
|
Regards... |
|
Back to top |
|
|
john_deaux n00b
Joined: 16 Sep 2013 Posts: 56 Location: On the banks of the Pontchartrain
|
Posted: Thu Jul 03, 2014 8:31 pm Post subject: Update... |
|
|
I tried to build my system a couple more times by configuring the kernel manually with the options listed here: http://wiki.gentoo.org/wiki/Lenovo_ThinkPad_T440s, and each time I had no network devices after the first reboot.
I tried again this morning using genkernel and it works like a charm, except I don't see my wireless card (again). So the logical conclusion is that something I'm adding to the kernel is killing my network.
I'm going to keep at it until I get it figured out.
JD |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54244 Location: 56N 3W
|
Posted: Thu Jul 03, 2014 9:11 pm Post subject: |
|
|
john_deaux,
You have a selection of network cards there On PCI
Code: | 00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218-LM (rev 04)
Subsystem: Lenovo Device 2214
Kernel driver in use: e1000e
03:00.0 Network controller: Intel Corporation Wireless 7260 (rev 83)
Subsystem: Intel Corporation Dual Band Wireless-AC 7260 |
and on USB Code: | Bus 002 Device 002: ID 05ac:1402 Apple, Inc. Ethernet Adapter [A1277] |
For the wired interface you need e1000e in the kern, or made as a module and the module loaded.
Its unusual for your interfaces to vanish when you chroot, since they are always provided by the host system outside the chroot.
Does givue different results inside and outside the chroot?
You can test both at the same time ...
Boot your liveCD
Issue the passwd command and set the root password to something you know. You will need this password later.
Mount everything and get into the chroot.
Press Ctl-F2 to switch to Virtual Terminal (VT) 2.
Log in as root, using the password you just set.
You now have VT1 (ctl-F1) inside the chroot and VT2, where you are now outside the chroot. You have VT1 ... VT5 like this. Ctrl-Fx switches between them.
You can even copy/paste between VTs too.
Its quite common for networking to vanish when you chroot but not the interfaces.
No networking in the chroot is usually the result of not copying /etc/resolv.conf to /mnt/gentoo/etc/resolv.conf before chrooting.
Have a look in /etc/resolv.conf in both of your VTs. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
john_deaux n00b
Joined: 16 Sep 2013 Posts: 56 Location: On the banks of the Pontchartrain
|
Posted: Fri Jul 04, 2014 3:21 pm Post subject: |
|
|
NeddySeagoon, thank you for your time and trouble, I no longer have this issue after the genkernel build.
Instead of bothering you folks with things that I don't fully understand yet, I'm going to work with what I have to learn more about the kernel, modules, drivers, firmware, and Gentoo.
Again, Thanks!
john_deaux |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54244 Location: 56N 3W
|
Posted: Fri Jul 04, 2014 5:42 pm Post subject: |
|
|
john_deaux,
Its no bother. Don't struggle, ask for a few pointers.
The old hands here will teach you to fish, not give you a fish :) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
john_deaux n00b
Joined: 16 Sep 2013 Posts: 56 Location: On the banks of the Pontchartrain
|
Posted: Wed Jul 09, 2014 8:13 pm Post subject: |
|
|
NeddySeagoon,
I thought I'd post an update as I figured out what I was doing wrong.
The first thing I did wrong, and kept doing wrong was leaving the mount options as "noauto" in /etc/fstab, instead of "defaults" as depicted in the handbook.
Another thing I was doing wrong was using my USB to RJ-45 adapter instead of the built-in network adapter. Once I corrected my network settings to show the proper interface all was well with my wired connection.
Cheers!
J_D |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54244 Location: 56N 3W
|
Posted: Thu Jul 10, 2014 4:54 pm Post subject: |
|
|
john_deaux,
To use your USB-RJ45 dongle, you will need te build the kernel module(s) for it. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|