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

 

 

 

New Install: Network Problems; Automatic Mount of USB Drives

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
rossi
Posts: 56
Joined: 2022-02-14 17:17
Has thanked: 1 time
Been thanked: 2 times

New Install: Network Problems; Automatic Mount of USB Drives

#1 Post by rossi »

Hello Everyone.

I just installed Debian 11 Bullseye+network+non-free firmware+unofficial version as a dual-boot image in a Windows drive with a lot of free space for the installation.

Before, I tell you about the problems, can I just mention one item here. During the installation, I used the option of automatic install on the largest free partition (I don't remember the exact term). It worked really well, but it provided 1 GB swap space. But shouldn't the amount of swap space be linked to the amount of system memory available. Some algorithim for this, like (0.2 x amount of memory), could be used. I know that I can increase the swap space but adding another swap partition, but I would have liked more swap space up front. Hey, the installation was really smooth, stop with the nitpicking already!

The whole process was very smooth using the Debian installer .... Hoooray! Debian is working very well except for the following problems:

1a. Networking.
The network doesn't start automatically upon booting.

root@debian11:/# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

iface enp11s0 inet dhcp

#[device]
#wifi.backend=iwd

I know this file needs work, but that isn't the problem.

I added the line "iface enp11s0 inet dhcp", and used the command ifup enp11s0 to bring up the network ethernet.

Something is missing besides the incorrect interfaces file. Can you please help me with this. Please know that I thoroughly researched this and tried many options.

1b. Wireless isn't present on the system at all.
I am completely clueless about this.

root@debian11:/# dpkg -l | grep wire
ii firmware-atheros 20210315-3 all Binary firmware for Qualcomm Atheros wireless cards
ii iw 5.9-3 amd64 tool for configuring Linux wireless devices
ii iwd 1.14-3 amd64 wireless daemon for Linux
ii libpipewire-0.3-0:amd64 0.3.19-4 amd64 libraries for the PipeWire multimedia server
ii libpipewire-0.3-modules:amd64 0.3.19-4 amd64 libraries for the PipeWire multimedia server - modules
ii pipewire:amd64 0.3.19-4 amd64 audio and video processing engine multimedia server
ii pipewire-bin 0.3.19-4 amd64 PipeWire multimedia server - programs
ii rfkill 2.36.1-8+deb11u1 amd64 tool for enabling and disabling wireless devices
ii wireless-regdb 2022.04.08-2~deb11u1 all wireless regulatory database for Linux
ii wireless-tools

It's all there but, I can't figure out what to do here. I am completely clueless. Where are is the wireless interface? Where are the logical units wherein I could issue commands like "iface wlp4s0 inet dhcp" or
"ip link set dev wlp4s0 up"? There is nothing like that anymore. I really need help here.

2. Automatically mount USB drives on Debian11.
Where are theroot@debian11:/# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 5986:9106 Acer, Inc Integrated Camera
Bus 003 Device 003: ID 06cb:00bd Synaptics, Inc. Prometheus MIS Touch Fingerprint Reader
Bus 003 Device 002: ID 17ef:60ab Lenovo ThinkPad Essential Wireless Mouse
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
wireless devices?

This isn't working. Again, I researched this on the web andtried so many option,
Can you please help with this.

I will be glad to sent more information, if it is needed.

Thanks for your attention to this.

Kind regards,

Angelo

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#2 Post by Aki »

Hello,

For the network configuration, you can see here: https://debian-handbook.info/browse/sta ... onfig.html

It could be useful to verify computer’s manufacturer and model.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

rossi
Posts: 56
Joined: 2022-02-14 17:17
Has thanked: 1 time
Been thanked: 2 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#3 Post by rossi »

id: debian11
description: Notebook
product: 20YU0069US (LENOVO_MT_20YU_BU_Think_FM_ThinkPad P17 Gen 2i)
vendor: LENOVO
version: ThinkPad P17 Gen 2i
width: 64 bits
capabilities: smbios-3.2.0 dmi-3.2.0 smp vsyscall32
configuration:
administrator_password=disabled
chassis=notebook
family=ThinkPad P17 Gen 2i
power-on_password = disabled
sku=LENOVO_MT_20YU_BU_Think_FM_ThinkPad P17 Gen 2

id: memory
description: System Memory
physical id: 1
slot: System board or motherboard
size: 128GiB

Thanks for looking into this.

Regards,

Angelo

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#4 Post by sunrat »

Show us:

Code: Select all

lspci -k |grep -i -A 3 'ethernet\|network'
And please post terminal text output inside CODE tags to make reading easier.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

rossi
Posts: 56
Joined: 2022-02-14 17:17
Has thanked: 1 time
Been thanked: 2 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#5 Post by rossi »

Code: Select all

root@debian11:~# lspci -k |grep -i -A 3 'ethernet\|network'
09:00.0 Network controller: Intel Corporation Device 2725 (rev 1a)
	Subsystem: Intel Corporation Device 0020
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
--
0b:00.0 Ethernet controller: Intel Corporation Ethernet Controller I225-LM (rev 03)
	Subsystem: Lenovo Ethernet Controller I225-LM
	Kernel driver in use: igc
	Kernel modules: igc

User avatar
NorthEast
Posts: 349
Joined: 2018-11-18 04:35
Has thanked: 12 times
Been thanked: 30 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#6 Post by NorthEast »

The configs presented here worked flawlessly for ethernet and wireless in my case:
https://wiki.debian.org/NetworkConfiguration

rossi
Posts: 56
Joined: 2022-02-14 17:17
Has thanked: 1 time
Been thanked: 2 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#7 Post by rossi »

Hello NorthEast.

I used the nmtui network manager to add an ethernet connection, and it worked. Now the network comes up on boot. But there are no wireless interfaces to be found anywhere, I can't use https://wiki.debian.org/NetworkConfiguration, if there are not any wireless devices to use. What do I do? I am really panicked.
Also would you have any help on getting the USB ports to automatically recognize a plugged-in USB drive? When I plug in a USB drive, nothing happens. I have searched the internet and tried many options but nothing happens. And this is really bad, because I can't mount a device to do backups or to reboot from a mounted USB drive. Can you help with this. Where to look? Is it a grub problem. Thanks so much for listening.

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#8 Post by sunrat »

Is this a new computer? If so it may need a more recent kernel than the one in Bullseye and maybe newer firmware as well.
Install inxi and post here the result of

Code: Select all

inxi -Fxz
You could try just installing firmware-iwlwifi if it's not already although I would have thought it's already included in the non-free installer.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

rossi
Posts: 56
Joined: 2022-02-14 17:17
Has thanked: 1 time
Been thanked: 2 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#9 Post by rossi »

This is brand new machine from Lenovo.

Code: Select all

root@debian11:~# apt-get install inxi
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  mesa-utils tree
Suggested packages:
  libcpanel-json-xs-perl | libjson-xs-perl libxml-dumper-perl
The following NEW packages will be installed:
  inxi mesa-utils tree
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 433 kB of archives.
After this operation, 1,266 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian bullseye/main amd64 inxi all 3.3.01-1-1 [349 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 mesa-utils amd64 8.4.0-1+b1 [34.9 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 tree amd64 1.8.0-1+b1 [49.6 kB]
Fetched 433 kB in 0s (4,591 kB/s)
Selecting previously unselected package inxi.
(Reading database ... 384083 files and directories currently installed.)
Preparing to unpack .../inxi_3.3.01-1-1_all.deb ...
Unpacking inxi (3.3.01-1-1) ...
Selecting previously unselected package mesa-utils.
Preparing to unpack .../mesa-utils_8.4.0-1+b1_amd64.deb ...
Unpacking mesa-utils (8.4.0-1+b1) ...
Selecting previously unselected package tree.
Preparing to unpack .../tree_1.8.0-1+b1_amd64.deb ...
Unpacking tree (1.8.0-1+b1) ...
Setting up inxi (3.3.01-1-1) ...
Setting up mesa-utils (8.4.0-1+b1) ...
Setting up tree (1.8.0-1+b1) ...
Processing triggers for man-db (2.9.4-2) ...
I think all the wireless stuff is installed.

Code: Select all

root@debian11:~# dpkg -l | grep wire
ii  firmware-atheros                           20210315-3                       all          Binary firmware for Qualcomm Atheros wireless cards
ii  iw                                         5.9-3                            amd64        tool for configuring Linux wireless devices
ii  iwd                                        1.14-3                           amd64        wireless daemon for Linux
ii  libpipewire-0.3-0:amd64                    0.3.19-4                         amd64        libraries for the PipeWire multimedia server
ii  libpipewire-0.3-modules:amd64              0.3.19-4                         amd64        libraries for the PipeWire multimedia server - modules
ii  pipewire:amd64                             0.3.19-4                         amd64        audio and video processing engine multimedia server
ii  pipewire-bin                               0.3.19-4                         amd64        PipeWire multimedia server - programs
ii  rfkill                                     2.36.1-8+deb11u1                 amd64        tool for enabling and disabling wireless devices
ii  wireless-regdb                             2022.04.08-2~deb11u1             all          wireless regulatory database for Linux
ii  wireless-tools                             30~pre9-13.1                     amd64        Tools for manipulating Linux Wireless Extensions
Please help. I am willing to reinstall if necessary. And I understand that you have other better things to do. I bought this computer, kinda of expensive, ( I teach Chemistry and do High Performance Computing) because of the following. I use the Linux cluster, but it can be really a pain. There is a long queue, all the software isn't there. The correct compiler isn't available. I thought that with a computer with low-end XEON processors, and GPU capability could really help.

Thanks again for your help.

rossi
Posts: 56
Joined: 2022-02-14 17:17
Has thanked: 1 time
Been thanked: 2 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#10 Post by rossi »

Code: Select all

root@debian11:~# dpkg -l | grep wire
ii  firmware-atheros                           20210315-3                       all          Binary firmware for Qualcomm Atheros wireless cards
ii  iw                                         5.9-3                            amd64        tool for configuring Linux wireless devices
ii  iwd                                        1.14-3                           amd64        wireless daemon for Linux
ii  libpipewire-0.3-0:amd64                    0.3.19-4                         amd64        libraries for the PipeWire multimedia server
ii  libpipewire-0.3-modules:amd64              0.3.19-4                         amd64        libraries for the PipeWire multimedia server - modules
ii  pipewire:amd64                             0.3.19-4                         amd64        audio and video processing engine multimedia server
ii  pipewire-bin                               0.3.19-4                         amd64        PipeWire multimedia server - programs
ii  rfkill                                     2.36.1-8+deb11u1                 amd64        tool for enabling and disabling wireless devices
ii  wireless-regdb                             2022.04.08-2~deb11u1             all          wireless regulatory database for Linux
ii  wireless-tools                             30~pre9-13.1                     amd64        Tools for manipulating Linux Wireless Extensions

rossi
Posts: 56
Joined: 2022-02-14 17:17
Has thanked: 1 time
Been thanked: 2 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#11 Post by rossi »

Third try! Duh!

Code: Select all

root@debian11:~# dpkg -l |grep firm
ii  bluez-firmware                             1.2-4                            all          Firmware for Bluetooth devices
ii  firmware-atheros                           20210315-3                       all          Binary firmware for Qualcomm Atheros wireless cards
ii  firmware-iwlwifi                           20210315-3                       all          Binary firmware for Intel Wireless cards
ii  firmware-linux-free                        20200122-1                       all          Binary firmware for various drivers in the Linux kernel
ii  firmware-misc-nonfree                      20210315-3                       all          Binary firmware for various drivers in the Linux kernel
ii  firmware-sof-signed                        1.7-1                            all          Intel SOF firmware - signed

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#12 Post by bw123 »

It's ok, don't reinstall.
post here the result of

Code: Select all


inxi -Fxz
Take things kind of slow if you're new. You can't solve everything at once.
resigned by AI ChatGPT

rossi
Posts: 56
Joined: 2022-02-14 17:17
Has thanked: 1 time
Been thanked: 2 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#13 Post by rossi »

Code: Select all

root@debian11:~# inxi -Fxz
System:    Kernel: 5.10.0-16-amd64 x86_64 bits: 64 compiler: gcc v: 10.2.1 Console: tty 0 
           Distro: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Laptop System: LENOVO product: 20YU0069US v: ThinkPad P17 Gen 2i serial: <filter> 
           Mobo: LENOVO model: 20YU0069US v: SDK0T76559 WIN serial: <filter> UEFI: LENOVO v: N37ET39W (1.20 ) date: 04/15/2022 
Battery:   ID-1: BAT0 charge: 93.0 Wh condition: 94.0/94.0 Wh (100%) model: LGC 5B10W13958 status: Not charging 
CPU:       Info: 6-Core model: Intel Xeon W-11855M bits: 64 type: MT MCP arch: N/A rev: 1 L2 cache: 18 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 76492 
           Speed: 916 MHz min/max: 800/4900 MHz Core speeds (MHz): 1: 916 2: 4339 3: 1382 4: 3933 5: 1307 6: 2424 7: 801 
           8: 1367 9: 1092 10: 4309 11: 1092 12: 4032 
Error 45: Error opening file: /sys/bus/usb/devices/3-14/speed 
Error: No such file or directory
readline() on closed filehandle $fh at /usr/bin/inxi line 3870.
Graphics:  Device-1: Intel vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA GA104 vendor: Lenovo driver: N/A bus ID: 01:00.0 
           Device-3: Acer Integrated Camera type: USB driver: uvcvideo bus ID: 3-4:4 
           Display: server: X.org 1.20.11 driver: loaded: modesetting unloaded: fbdev,vesa tty: 190x54 
           Message: Advanced graphics data unavailable in console for root. 
Audio:     Device-1: Intel vendor: Lenovo driver: sof-audio-pci bus ID: 00:1f.3 
           Device-2: NVIDIA GA104 High Definition Audio vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 01:00.1 
           Sound Server: ALSA v: k5.10.0-16-amd64 
Network:   Device-1: Intel driver: iwlwifi v: kernel port: 3000 bus ID: 09:00.0 
           Device-2: Intel Ethernet I225-LM vendor: Lenovo driver: igc v: kernel port: 3000 bus ID: 0b:00.0 
           IF: enp11s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Bluetooth: Device-1: Intel type: USB driver: btusb v: 0.8 bus ID: 3-14:81 
Drives:    Local Storage: total: 953.87 GiB used: 19.19 GiB (2.0%) 
           ID-1: /dev/nvme0n1 vendor: Micron model: MTFDKBA1T0TFH size: 953.87 GiB temp: 34.9 C 
Partition: ID-1: / size: 820.59 GiB used: 19.16 GiB (2.3%) fs: ext4 dev: /dev/nvme0n1p5 
           ID-2: /boot/efi size: 256 MiB used: 36.4 MiB (14.2%) fs: vfat dev: /dev/nvme0n1p1 
Swap:      ID-1: swap-1 type: partition size: 977 MiB used: 0 KiB (0.0%) dev: /dev/nvme0n1p6 
Sensors:   System Temperatures: cpu: 96.0 C mobo: 42.0 C 
           Fan Speeds (RPM): cpu: 2792 
Info:      Processes: 259 Uptime: 3m Memory: 125.52 GiB used: 2.66 GiB (2.1%) Init: systemd runlevel: 5 Compilers: gcc: 10.2.1 
           Packages: 1989 Shell: Bash v: 5.1.4 inxi: 3.3.01 

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#14 Post by bw123 »

You might get more useful by not running as root. They'll probably tell you to upgrade the kernel and matching firmware/microcode from backports. It's not that hard, but it'll take a few minutes for you to read some stuff.

https://wiki.debian.org/Backports
System Temperatures: cpu: 96.0 C mobo: 42.0 C
That is pretty hot! I'm not sure that's safe? I don't think I'd let that go on too long. Console or single user mode might be safer but it's your call.
resigned by AI ChatGPT

rossi
Posts: 56
Joined: 2022-02-14 17:17
Has thanked: 1 time
Been thanked: 2 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#15 Post by rossi »

Thanks for the information. I have been running as root because of chasing down problems. I have used sudo many times though. I am not running as root now and root is at 100% . It's interesting that you mentioned console mode. I was thinking of upgrading the system to sid and running as console mode. My older machine runs sid and I have done an upgrade, then cntl brake and then login as myself.

What do you think.

Why is this machine running so hot? I am only in root to test stuff and then back out.

rossi
Posts: 56
Joined: 2022-02-14 17:17
Has thanked: 1 time
Been thanked: 2 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#16 Post by rossi »

Code: Select all

387 root      20   0  321000 299816   4088 R 100.0   0.2  38:32.14 systemd-udevd                                                                                                          
1484 rossi     20   0  813992  95300  50804 R  98.3   0.1  57:22.88 isenkramd                                                                                                              
  559 root      20   0       0      0      0 D   0.7   0.0   0:32.53 kworker/8:2+usb_hub_wq                                                                                                 
  716 root      20   0 1371928 119712  78920 S   0.7   0.1   0:36.28 Xorg                                                                                                                   
    12 root      20   0       0      0      0 I   0.3   0.0   0:03.75 rcu_sched
Why are these top two processes utilizing so much cpu time?

rossi
Posts: 56
Joined: 2022-02-14 17:17
Has thanked: 1 time
Been thanked: 2 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#17 Post by rossi »

When I ran the command

Code: Select all

inxi -Fxz
the following file was missing

Code: Select all

Error 45: Error opening file: /sys/bus/usb/devices/3-14/speed 
Error: No such file or directory
I didn't do it mommy!

But this explains (I think) the problems with both the USB devices and the lack of Wifi device names.

Can I reconstruct this file by performing a backports upgrade/dist-upgrade?

User avatar
sunrat
Administrator
Administrator
Posts: 6412
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 116 times
Been thanked: 461 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#18 Post by sunrat »

rossi wrote: 2022-08-09 14:58 This is brand new machine from Lenovo.
That's probably your main problem. Debian Stable is usually behind with hardware support for recent devices. Maybe Sid would help but even its firmware is currently a year old. You may need to download the firmware from Github (search the forum, there have been several threads about that). Likely needs intel-microcode as well.
You could try a bleeding-edge distro to see if that supports your wifi. A live version will allow you to test without installing.

And yes, you don't need to run some of those info programs like inxi as root. Also instead of dpkg to find what is installed run (as user):

Code: Select all

apt list *firmware*
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#19 Post by bw123 »

...Can I reconstruct this file by performing a backports upgrade/dist-upgrade?
no that's not the best way to use backports
viewtopic.php?t=77544
resigned by AI ChatGPT

rossi
Posts: 56
Joined: 2022-02-14 17:17
Has thanked: 1 time
Been thanked: 2 times

Re: New Install: Network Problems; Automatic Mount of USB Drives

#20 Post by rossi »

Thank you all for your help and patience. It's been extremely helpful.

Here's my plan.

I am going to run the machine as is for now. The Debian Bullseye installation was really smooth and Debian is working extremely well. This is a bulky machine and is 17" lwide. The network works and comes up on boot as I mentioned in a previous post. This laptop is not going anywhere because it is too big. I also got the auto mount working. What's not to like?

I will take the suggestions about backports and try to installonly specific applications such as Teams (sid) and a couple of other applications from sid too.
You could try a bleeding-edge distro to see if that supports your wifi. A live version will allow you to test without installing.
That's an idea I really like. Where can I find that?

I gotta get the nvidia dirivers/GPU working as well, but I need to install files and checkout calculations first.

Eventually, I would like to upgrade to a sid version sometime in the future, when there is a message that it's OK and good-to-go. It is running on my older laptop ... but not the most recent version. It's the best thing since boiled pasta, and I should know about that.



Warm regards,

Angelo

Post Reply