FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: Flanders am 16 Februar 2020, 08:47:17

Titel: /dev/serial/by-id ist plötzlich weg
Beitrag von: Flanders am 16 Februar 2020, 08:47:17
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

Titel: Antw:/dev/serial/by-id ist plötzlich weg
Beitrag von: Christoph Morrison am 16 Februar 2020, 12:11:21
Was genau hast du denn getan bevor die verschwunden sind?
Titel: Antw:/dev/serial/by-id ist plötzlich weg
Beitrag von: Flanders am 16 Februar 2020, 19:37:33
Hallo,

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

Greets

Titel: Antw:/dev/serial/by-id ist plötzlich weg
Beitrag von: Wernieman am 17 Februar 2020, 08:37:39
Oder Du hast ein USB-Problem .. was sagt den "lsusb" als root?
Titel: Antw:/dev/serial/by-id ist plötzlich weg
Beitrag von: mahowi am 17 Februar 2020, 09:48:28
Zum Zurücksetzen der USB-Ports gibt es hier eine kurze Anleitung: USB Reset am Raspberry Pi: USB Ports zurücksetzen (https://www.computerhilfen.de/info/usb-reset-am-raspberry-pi-usb-ports-zuruecksetzen.html)

Hast Du Deine Sticks einfach mal aus- und wieder eingesteckt?
Titel: Antw:/dev/serial/by-id ist plötzlich weg
Beitrag von: Flanders am 18 Februar 2020, 15:54:55
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

Titel: Antw:/dev/serial/by-id ist plötzlich weg
Beitrag von: Wernieman am 18 Februar 2020, 16:37:31
Was sagen die Logfiles (/var/log/*) zu der Zeit?
Titel: Antw:/dev/serial/by-id ist plötzlich weg
Beitrag von: Flanders am 18 Februar 2020, 16:48:48
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

Titel: Antw:/dev/serial/by-id ist plötzlich weg
Beitrag von: mahowi am 18 Februar 2020, 18:57:25
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.
Titel: Antw:/dev/serial/by-id ist plötzlich weg
Beitrag von: Wernieman am 18 Februar 2020, 18:57:36
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 ...
Titel: Antw:/dev/serial/by-id ist plötzlich weg
Beitrag von: Flanders am 01 März 2020, 10:22:27
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
Titel: Antw:/dev/serial/by-id ist plötzlich weg
Beitrag von: Dr. Ulfi am 29 Oktober 2020, 11:24:19
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

Titel: Aw: /dev/serial/by-id ist plötzlich weg
Beitrag von: hyper2910 am 02 Mai 2023, 18:08:44
Hallo,

Bei meinem LinuxMint ist das gleiche Problem aufgetreten.


Weiß jemand wie ich das bei Mint gefixt bekomme?

Danke für die Hilfe.
Titel: Aw: /dev/serial/by-id ist plötzlich weg
Beitrag von: RalfRog am 02 Mai 2023, 18:28:15
Schau mal hier => https://forum.fhem.de/index.php?msg=1274423
Titel: Aw: /dev/serial/by-id ist plötzlich weg
Beitrag von: hyper2910 am 03 Mai 2023, 07:16:06
Danke,


Das ist die Lösung
https://forum.fhem.de/index.php?msg=1274426
Titel: Aw: /dev/serial/by-id ist plötzlich weg
Beitrag von: sash.sc am 04 Juni 2023, 08:46:19
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




Titel: Aw: /dev/serial/by-id ist plötzlich weg
Beitrag von: Wernieman am 04 Juni 2023, 12:40:47
Das ist kein Kernel, sondern ein UDEV-"Problem" .....
Titel: Aw: /dev/serial/by-id ist plötzlich weg
Beitrag von: sash.sc am 04 Juni 2023, 13:28:28
Dann hilf mir mal kurz auf die Sprünge! Wo kann ich da ansetzen ?!
Titel: Aw: /dev/serial/by-id ist plötzlich weg
Beitrag von: CoolTux am 04 Juni 2023, 13:34:14
Die Suche verwenden. Es gibt bereits mehrere Threads dazu. Immer mir einem Verweis auf die Lösung.
Titel: Aw: /dev/serial/by-id ist plötzlich weg
Beitrag von: sash.sc am 04 Juni 2023, 13:39:55
Habs gefunden. Danke !!

https://forum.fhem.de/index.php?topic=133396.msg1274426#msg1274426 (https://forum.fhem.de/index.php?topic=133396.msg1274426#msg1274426)