Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

ethernet controller not working on my debian installation

Need help with peripherals or devices?
Post Reply
Message
Author
francois.e
Posts: 38
Joined: 2009-03-06 22:03

ethernet controller not working on my debian installation

#1 Post by francois.e »

I do not know how I got there. The problem is that I like playing around with my linux installations. It has been sometime since I got into debian in that second machine of mine with which I used to run with a slackware type of installation (porteus frugal install or hdd install).

I am on debian stretch stable.

My linux box is a toshiba satelite z930, the specs:
https://www.cnet.com/products/toshiba-z930-s9301/specs/

From what I understand the ethernet driver on this machine I need the package:

Code: Select all

xserver-xorg-video-intel


So chrooting into debian stretch from porteus:

Code: Select all

mkdir /mnt/chroot  &&
mount /dev/sda1 /mnt/chroot &&
mount --bind /dev /mnt/chroot/dev &&
mount --bind /proc /mnt/chroot/proc &&
mount --bind /sys /mnt/chroot/sys &&
chroot /mnt/chroot
su rimbaud #which is my user account

Trying to reinstall xserver-xorg-video-intel, I get the following error:

Code: Select all

rimbaud@porteus:/$ sudo apt-get install xserver-xorg-video-intel
sudo: no tty present and no askpass program specified
rimbaud@porteus:/$ 
So consider that system with a dualboot debian-slackware installation. Ethernet and wifi functioning on the slackware type installation but not on the debian installation.

I want to resume ethernet function on the debian system thru chroot. Or if you prefer by any other way you will find more effective.

Thanks.
Last edited by francois.e on 2018-12-12 17:38, edited 1 time in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: ethernet controller not working on my debian installatio

#2 Post by Head_on_a_Stick »

francois.e wrote:From what I understand the ethernet driver on this machine I need the package:

Code: Select all

xserver-xorg-video-intel
No.

Code: Select all

sudo: no tty present and no askpass program specified
You need to (bind) mount /dev/pts as well.
deadbang

francois.e
Posts: 38
Joined: 2009-03-06 22:03

Re: ethernet controller not working on my debian installatio

#3 Post by francois.e »

Code: Select all

mkdir /mnt/chroot
mount /dev/sda1 /mnt/chroot
mount --bind /dev /mnt/chroot/dev
mount --bind /proc /mnt/chroot/proc
mount --bind /sys /mnt/chroot/sys
mount --bind /dev/pts /mnt/chroot/dev/pts
chroot /mnt/chroot
https://wiki.archlupinux.org/index.php/ ... ation#Ping

Code: Select all

root@porteus:/# ping 8.8.8.8 8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=43 time=31.465 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=43 time=32.853 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=43 time=33.892 ms
^C--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 31.465/32.737/33.892/0.994 ms
PING 8.8 (8.0.0.8): 56 data bytes
--- 8.8 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
root@porteus:/# google.com
bash: google.com: command not found
root@porteus:/#  lspci -v
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
	Subsystem: Toshiba America Info Systems 3rd Gen Core processor DRAM Controller
	Flags: bus master, fast devsel, latency 0
	Capabilities: [e0] Vendor Specific Information: Len=0c <?>
	Kernel driver in use: ivb_uncore
lspci: Unable to load libkmod resources: error -12

00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Toshiba America Info Systems 3rd Gen Core processor Graphics Controller
	Flags: bus master, fast devsel, latency 0, IRQ 28
	Memory at e0000000 (64-bit, non-prefetchable) [size=4M]
	Memory at d0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 2000 [size=64]
	[virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
	Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [d0] Power Management version 2
	Capabilities: [a4] PCI Advanced Features
	Kernel driver in use: i915

00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04) (prog-if 30 [XHCI])
	Subsystem: Toshiba America Info Systems 7 Series/C210 Series Chipset Family USB xHCI Host Controller
	Flags: bus master, medium devsel, latency 0, IRQ 25
	Memory at e0620000 (64-bit, non-prefetchable) [size=64K]
	Capabilities: [70] Power Management version 2
	Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
	Kernel driver in use: xhci_hcd

00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
	Subsystem: Toshiba America Info Systems 7 Series/C216 Chipset Family MEI Controller
	Flags: bus master, fast devsel, latency 0, IRQ 27
	Memory at e0634000 (64-bit, non-prefetchable) [size=16]
	Capabilities: [50] Power Management version 3
	Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Kernel driver in use: mei_me

00:19.0 Ethernet controller: Intel Corporation 82579V Gigabit Network Connection (rev 04)
	Subsystem: Toshiba America Info Systems 82579V Gigabit Network Connection
	Flags: bus master, fast devsel, latency 0, IRQ 26
	Memory at e0600000 (32-bit, non-prefetchable) [size=128K]
	Memory at e063b000 (32-bit, non-prefetchable) [size=4K]
	I/O ports at 2080 [size=32]
	Capabilities: [c8] Power Management version 2
	Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
	Capabilities: [e0] PCI Advanced Features
	Kernel driver in use: e1000e

00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04) (prog-if 20 [EHCI])
	Subsystem: Toshiba America Info Systems 7 Series/C216 Chipset Family USB Enhanced Host Controller
	Flags: bus master, medium devsel, latency 0, IRQ 16
	Memory at e063a000 (32-bit, non-prefetchable) [size=1K]
	Capabilities: [50] Power Management version 2
	Capabilities: [58] Debug port: BAR=1 offset=00a0
	Capabilities: [98] PCI Advanced Features
	Kernel driver in use: ehci-pci

Code: Select all

root@porteus:/# dmesg | grep e1000e
[    3.880061] e1000e: loading module not compiled with retpoline compiler.
[    3.911026] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    3.911027] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    3.911269] e1000e 0000:00:19.0: Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode
[    4.081467] e1000e 0000:00:19.0 0000:00:19.0 (uninitialized): registered PHC clock
[    4.216571] e1000e 0000:00:19.0 eth0: (PCI Express:2.5GT/s:Width x1) b8:6b:23:a0:8c:17
[    4.216578] e1000e 0000:00:19.0 eth0: Intel(R) PRO/1000 Network Connection
[    4.216632] e1000e 0000:00:19.0 eth0: MAC: 10, PHY: 11, PBA No: FFFFFF-0FF
[    9.854212] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
root@porteus:/# 
From this last output, shouldn't eth0 be working?

Thanks.
Last edited by francois.e on 2018-12-05 20:17, edited 1 time in total.

francois.e
Posts: 38
Joined: 2009-03-06 22:03

Re: ethernet controller not working on my debian installatio

#4 Post by francois.e »

Too much time spent on trying to resolve the issue. I finally reintalled debian on sda1.

Thanks.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: ethernet controller not working on my debian installatio

#5 Post by Head_on_a_Stick »

francois.e wrote:From this last output, shouldn't eth0 be working?
Yes.

At a guess I would say that the interface was active but misconfigured but it's impossible to tell now.

For future reference, this will show all interfaces:

Code: Select all

ip link
It was probably called enp3s0 (or similar) rather than "eth0", see https://www.freedesktop.org/wiki/Softwa ... faceNames/ for more on this.
deadbang

francois.e
Posts: 38
Joined: 2009-03-06 22:03

Re: ethernet controller not working on my debian installatio

#6 Post by francois.e »

Indeed enp3s0.

Code: Select all

rimbaud@debian:~$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
    link/ether 00:1a:a0:ad:e6:ba brd ff:ff:ff:ff:ff:ff
rimbaud@debian:~$

But still chrooting into debian stretch from porteus with:

Code: Select all

    mkdir /mnt/chroot
    /mnt/chroot  &&
    mount /dev/sda1 /mnt/chroot &&
    mount --bind /dev /mnt/chroot/dev &&
    mount --bind /proc /mnt/chroot/proc &&
    mount --bind /sys /mnt/chroot/sys &&
    chroot /mnt/chroot
And then:

Code: Select all

root@porteus:/# ping 8.8.8.8 8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=43 time=31.465 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=43 time=32.853 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=43 time=33.892 ms
^C--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 31.465/32.737/33.892/0.994 ms
PING 8.8 (8.0.0.8): 56 data bytes
--- 8.8 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
And ping seems to be working. But it did not for:
ping google.com.

Were these obtained because I was chrooting by porteus and using porteus ethernet setup
or because, once into chroot debian, I was using deebian ethernet setup? So is it fair to test debian ethernet with a chroot procedure?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: ethernet controller not working on my debian installatio

#7 Post by Head_on_a_Stick »

francois.e wrote:And ping seems to be working. But it did not for:
ping google.com.
Did you set /etc/resolv.conf correctly in the chrooted system?
francois.e wrote:is it fair to test debian ethernet with a chroot procedure?
Not really, no.

I thought you reinstalled anyway, is that not the case?
deadbang

francois.e
Posts: 38
Joined: 2009-03-06 22:03

Re: ethernet controller not working on my debian installatio

#8 Post by francois.e »

Yes I did reinstalled. But as I had put some additional effort to solve the problem, I thougth that we might have squeezed the solution a little further for posterity. You never know, I might fall in the same pit at another time.

Thanks so much. :D

Post Reply