/dev/serial/by-id ist plötzlich weg

Begonnen von Flanders, 16 Februar 2020, 08:47:17

Vorheriges Thema - Nächstes Thema

Flanders

Guten Morgen,

heute morgen stellte ich fest, dass das Verzeichnis /dev/serial/ komplett verschwunden ist.
Mein CUL und myJeeLink sind auch disconnected, da ich sie über "by-id" eingebunden hatte.

Hat jemand einen Rat für mich?

Greets


Christoph Morrison

Was genau hast du denn getan bevor die verschwunden sind?

Flanders

#2
Hallo,

definitiv nichts. Kann sein, dass es ein autoupdate des Betriebssystems war?!
Ansonsten war ich seit Wochen nicht mehr auf dem System.

Greets


Wernieman

Oder Du hast ein USB-Problem .. was sagt den "lsusb" als root?
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

mahowi

Zum Zurücksetzen der USB-Ports gibt es hier eine kurze Anleitung: USB Reset am Raspberry Pi: USB Ports zurücksetzen

Hast Du Deine Sticks einfach mal aus- und wieder eingesteckt?
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee

Flanders

#5
apt-get update && apt-get dist-upgrade und reboot brachten keinen Erfolg.

lsusb zeigt die Geräte:

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 007: ID 12d1:1001 Huawei Technologies Co., Ltd. E161/E169/E620/E800 HSDPA Modem
Bus 001 Device 005: ID 03eb:204b Atmel Corp. LUFA USB to Serial Adapter Project
Bus 001 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
Bus 001 Device 003: ID 058f:6377 Alcor Micro Corp. AU6375 4-LUN card reader
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



ls /dev/bus/usb
001  002  003
ls /dev/bus/usb/001
001  002  008  009  010  011

usbreset /dev/bus/usb/001/002
Resetting USB device /dev/bus/usb/001/002
Reset successful

usbreset /dev/bus/usb/001/008
Resetting USB device /dev/bus/usb/001/008
Reset successful
usbreset /dev/bus/usb/001/009
Resetting USB device /dev/bus/usb/001/009
Reset successful
usbreset /dev/bus/usb/001/010
Resetting USB device /dev/bus/usb/001/010
Reset successful
usbreset /dev/bus/usb/001/011
Resetting USB device /dev/bus/usb/001/011
Reset successful


ls /dev
autofs           hwrng         memory_bandwidth    ram12   sdb      tty1   tty23  tty37  tty50  tty7       vcs5   vcsu6
block            initctl       mmcblk0             ram13   sdc      tty10  tty24  tty38  tty51  tty8       vcs6   vga_arbiter
bsg              input         mmcblk0p1           ram14   sdd      tty11  tty25  tty39  tty52  tty9       vcsa   watchdog
bus              kmsg          mmcblk0p2           ram15   sde      tty12  tty26  tty4   tty53  ttyAMA0    vcsa1  watchdog0
cachefiles       log           mqueue              ram2    sde1     tty13  tty27  tty40  tty54  ttyprintk  vcsa2  zero
char             loop0         network_latency     ram3    sde2     tty14  tty28  tty41  tty55  ttyS0      vcsa3
console          loop1         network_throughput  ram4    sdf      tty15  tty29  tty42  tty56  urandom    vcsa4
cpu_dma_latency  loop2         null                ram5    serial0  tty16  tty3   tty43  tty57  vchiq      vcsa5
disk             loop3         port                ram6    serial1  tty17  tty30  tty44  tty58  vcio       vcsa6
fd               loop4         ptmx                ram7    shm      tty18  tty31  tty45  tty59  vc-mem     vcsu
full             loop5         pts                 ram8    stderr   tty19  tty32  tty46  tty6   vcs        vcsu1
gpiochip0        loop6         ram0                ram9    stdin    tty2   tty33  tty47  tty60  vcs1       vcsu2
gpiochip1        loop7         ram1                random  stdout   tty20  tty34  tty48  tty61  vcs2       vcsu3
gpiochip2        loop-control  ram10               raw     tty      tty21  tty35  tty49  tty62  vcs3       vcsu4
gpiomem          mem           ram11               sda     tty0     tty22  tty36  tty5   tty63  vcs4       vcsu5



Verwende Raspbian Buster.

Greets


Wernieman

Was sagen die Logfiles (/var/log/*) zu der Zeit?
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Flanders

#7
Welche Logs meinst Du zu welcher Zeit?

habe nochmal usbreset durchgeführt und das syslog hier:

Feb 18 16:45:42 AndyPi kernel: [ 2864.912675] sd 0:0:0:1: [sdb] Attached SCSI removable disk
Feb 18 16:45:42 AndyPi kernel: [ 2864.913504] scsi 0:0:0:2: Direct-Access     Generic- MS/MS-PRO        1.03 PQ: 0 ANSI: 4 CCS
Feb 18 16:45:42 AndyPi systemd-udevd[1435]: could not open moddep file '/lib/modules/4.19.75-v7l+/modules.dep.bin'
Feb 18 16:45:42 AndyPi systemd-udevd[1434]: could not open moddep file '/lib/modules/4.19.75-v7l+/modules.dep.bin'
Feb 18 16:45:42 AndyPi kernel: [ 2864.917556] sd 0:0:0:2: [sdc] Attached SCSI removable disk
Feb 18 16:45:42 AndyPi kernel: [ 2864.918327] scsi 0:0:0:3: Direct-Access     Generic- xD-Picture       1.02 PQ: 0 ANSI: 4
Feb 18 16:45:42 AndyPi kernel: [ 2864.920270] sd 0:0:0:3: [sdd] Attached SCSI removable disk
Feb 18 16:45:42 AndyPi kernel: [ 2864.921076] scsi 0:0:0:4: Direct-Access     Generic- MicroSD/M2       1.08 PQ: 0 ANSI: 4
Feb 18 16:45:42 AndyPi systemd-udevd[1442]: could not open moddep file '/lib/modules/4.19.75-v7l+/modules.dep.bin'
Feb 18 16:45:42 AndyPi systemd-udevd[1444]: could not open moddep file '/lib/modules/4.19.75-v7l+/modules.dep.bin'
Feb 18 16:45:42 AndyPi systemd-udevd[1443]: could not open moddep file '/lib/modules/4.19.75-v7l+/modules.dep.bin'
Feb 18 16:45:42 AndyPi systemd-udevd[1442]: could not open moddep file '/lib/modules/4.19.75-v7l+/modules.dep.bin'
Feb 18 16:45:42 AndyPi systemd-udevd[1435]: could not open moddep file '/lib/modules/4.19.75-v7l+/modules.dep.bin'
Feb 18 16:45:42 AndyPi systemd-udevd[1443]: could not open moddep file '/lib/modules/4.19.75-v7l+/modules.dep.bin'
Feb 18 16:45:42 AndyPi systemd-udevd[1434]: could not open moddep file '/lib/modules/4.19.75-v7l+/modules.dep.bin'
Feb 18 16:45:42 AndyPi systemd-udevd[1466]: could not open moddep file '/lib/modules/4.19.75-v7l+/modules.dep.bin'
Feb 18 16:45:42 AndyPi kernel: [ 2865.283098] sd 0:0:0:4: [sde] 15523840 512-byte logical blocks: (7.95 GB/7.40 GiB)
Feb 18 16:45:42 AndyPi kernel: [ 2865.287115] sd 0:0:0:4: [sde] Write Protect is off
Feb 18 16:45:42 AndyPi kernel: [ 2865.287122] sd 0:0:0:4: [sde] Mode Sense: 23 00 00 00
Feb 18 16:45:42 AndyPi kernel: [ 2865.291058] sd 0:0:0:4: [sde] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
Feb 18 16:45:42 AndyPi kernel: [ 2865.311600]  sde: sde1 sde2
Feb 18 16:45:42 AndyPi kernel: [ 2865.346338] sd 0:0:0:4: [sde] Attached SCSI removable disk
Feb 18 16:45:42 AndyPi kernel: [ 2865.788842] scsi 1:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Feb 18 16:45:42 AndyPi kernel: [ 2865.791003] scsi 1:0:0:1: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Feb 18 16:45:42 AndyPi systemd-udevd[1434]: could not open moddep file '/lib/modules/4.19.75-v7l+/modules.dep.bin'
Feb 18 16:45:42 AndyPi systemd-udevd[1466]: could not open moddep file '/lib/modules/4.19.75-v7l+/modules.dep.bin'
Feb 18 16:45:42 AndyPi systemd-udevd[1434]: could not open moddep file '/lib/modules/4.19.75-v7l+/modules.dep.bin'
Feb 18 16:45:42 AndyPi kernel: [ 2865.800814] sd 1:0:0:1: [sdf] Attached SCSI removable disk



Auffallend finde ich
systemd-udevd[1434]: could not open moddep file '/lib/modules/4.19.75-v7l+/modules.dep.bin'

im Verzeichnis befinden sich nur höhere Versionen

ls /lib/modules/
4.19.102+  4.19.102-v7+  4.19.80+  4.19.80-v7+  4.19.80-v7l+  4.19.80-v8+  4.19.97+  4.19.97-v7+  4.19.97-v7l+  4.19.97-v8+



EDIT:

Das war der entscheidende Tipp, irgendwie scheint der Bootloader nicht korrekt aktualisiert worden zu sein, ich habe es folgendermaßen nach Recherche im Internet gefixed:


sudo umount /boot
sudo mount /dev/mmcblk0p1 /boot
sudo apt install --reinstall raspberrypi-bootloader raspberrypi-kernel
sudo reboot


Greets


mahowi

Die Verzeichnisse, die nicht zu Deiner Kernelversion passen, kannst Du löschen. Aktuell sollte 4.19.97 sein.

Hast Du vielleicht mit rpi-update herumgespielt? Zumindest die Module für 4.19.102 dürften sonst eigentlich nicht da sein.
CUBe (MAX): HT, FK | CUBe (SlowRF): ESA2000WZ
JeeLink: LaCrosse | nanoCUL433: Smartwares SHS-51001-EU, EM1000GZ
ZME_UZB1: GreenWave PowerNode, Popp Thermostat | SIGNALDuino: HE877, X10 MS14A, Revolt NC-5462,  IT Steckdosen + PIR
tado° | Milight | HUE, Lightify | SmarterCoffee

Wernieman

Genau das, was Du gefunden hast, meinte ich .. ;o)

Nur mals als Anregung zum aufräumen:
apt-get autoremove
apt-get purge $(dpkg --get-selections | grep deinstall | cut -f1 | xargs)


Natürlich jeweils als root ...
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Flanders

Natürlich habe ich mit rpi-update rumgespielt.

Ich benutze einen RPi 4 und habe die Hoffnung, dass ein Kernel kommt, der das Gerät nicht an Heizungswärme bringt :-(


Gruß

Flanders

Dr. Ulfi

Zitat von: Flanders am 18 Februar 2020, 16:48:48
EDIT:

Das war der entscheidende Tipp, irgendwie scheint der Bootloader nicht korrekt aktualisiert worden zu sein, ich habe es folgendermaßen nach Recherche im Internet gefixed:


sudo umount /boot
sudo mount /dev/mmcblk0p1 /boot
sudo apt install --reinstall raspberrypi-bootloader raspberrypi-kernel
sudo reboot


Genau diese Befehle haben mir heute auch geholfen, nachdem nach einem apt-get upgrade die /dev/serial/by* alle verschwunden waren.

Danke

Raspi
CUBE/CUNO a-culfw, Signalduino 433Mhz, Sonoff/Tasmota, EnOceanPI, Meross Smart Plug (IFTTT), ESP8266 Projekte,
MAX!-Heizungssteuerung, Intertechno IT-1500-Steckdosen, Velux KLF200 mit Somfy io

hyper2910

Hallo,

Bei meinem LinuxMint ist das gleiche Problem aufgetreten.


Weiß jemand wie ich das bei Mint gefixt bekomme?

Danke für die Hilfe.
Cubietruck mit FHEM, CUL V3 443MHz, 2 x CULV3 868MHz, Milights, Max Heizungssteuerung, Homematic, IT,

RalfRog

FHEM auf Raspi 2B mit nanoCUL, HM-MOD-RPI-PCB und über LAN MAX!Cube mit a-culFW (Stack 868 + 433)
HM- Fensterkontakte, UP-Schalter, Bewegungsmelder und ein Rauchmelder

hyper2910

Cubietruck mit FHEM, CUL V3 443MHz, 2 x CULV3 868MHz, Milights, Max Heizungssteuerung, Homematic, IT,

sash.sc

Guten Morgen zusammen.

Habe auch feststellen müßen, dass das /by-id/ Verzeichniss nicht da ist.

Habe versucht das Kernelupdate nachzuholen.

Bei
sudo mount /dev/mmcblk0p1 /bootbekomme ich die Meldung Verzeichniss nicht vorhanden.
Update geht durch durch, reboot durchgeführt, by-id immer noch nicht da.

Was mir auffält, bei einloggen über die Konsole kommt die Meldung
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarc   

Wenn ich
ls /lib/modules/
eingebe, kommt

6.1.21+  6.1.21-v7+  6.1.21-v7l+  6.1.21-v8+

Sollte passend, oder ? Wenn nicht was kann ich machen ?

Gruß und danke




Raspi 4B+ Bullseye ;LaCrosse; HomeMatic; MapleCUL; ZigBee; Signalduino ESP32 ; Shellys; MQTT2; Grafana mit Influxdb

Wernieman

Das ist kein Kernel, sondern ein UDEV-"Problem" .....
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

sash.sc

Dann hilf mir mal kurz auf die Sprünge! Wo kann ich da ansetzen ?!
Raspi 4B+ Bullseye ;LaCrosse; HomeMatic; MapleCUL; ZigBee; Signalduino ESP32 ; Shellys; MQTT2; Grafana mit Influxdb

CoolTux

Die Suche verwenden. Es gibt bereits mehrere Threads dazu. Immer mir einem Verweis auf die Lösung.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

sash.sc

Raspi 4B+ Bullseye ;LaCrosse; HomeMatic; MapleCUL; ZigBee; Signalduino ESP32 ; Shellys; MQTT2; Grafana mit Influxdb