USB mount is gone after 1 minute

arifroni

Member
Jan 4, 2023
14
0
6
Hello

I am trying to connect my 3D printer to a virtual machine/container. But when I plug in my USB cable, I see that device is mounted at /dev/ttyUSB0, but after ~1 minute it's gone. I can see the USB via 'lsusb' command, but no mount point is available anymore.

I have seen some posts in the forum describing the same behavior, but I haven't found any solution yet.

Is there any solution available to this yet?
 
Hi,

I didn't try to mount a 3D printer to a VM/CT... However, I'm interested to see what happens in the Syslog when the USB umount after 1 minute, so please try to re-plug the USB into the CT and issue the journalctl -f finally provide us with the output of the Syslog, this might give a hint
 
Hi

i re-plugged the usb twice now. here is the output

Code:
root@arifroni:~# journalctl -f
-- Journal begins at Tue 2023-01-03 18:14:28 CET. --
Feb 08 09:18:53 arifroni systemd[160773]: Listening on GnuPG cryptographic agent and passphrase cache (access for web br      owsers).
Feb 08 09:18:53 arifroni systemd[160773]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Feb 08 09:18:53 arifroni systemd[160773]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Feb 08 09:18:53 arifroni systemd[160773]: Listening on GnuPG cryptographic agent and passphrase cache.
Feb 08 09:18:53 arifroni systemd[160773]: Reached target Sockets.
Feb 08 09:18:53 arifroni systemd[160773]: Reached target Basic System.
Feb 08 09:18:53 arifroni systemd[160773]: Reached target Main User Target.
Feb 08 09:18:53 arifroni systemd[160773]: Startup finished in 53ms.
Feb 08 09:18:53 arifroni systemd[1]: Started User Manager for UID 0.
Feb 08 09:18:53 arifroni systemd[1]: Started Session 31 of user root.
Feb 08 09:19:55 arifroni kernel: usb 1-10: USB disconnect, device number 5
Feb 08 09:19:56 arifroni QEMU[9249]: kvm: libusb_release_interface: -4 [NO_DEVICE]
Feb 08 09:20:15 arifroni kernel: usb 1-12: new full-speed USB device number 6 using xhci_hcd
Feb 08 09:20:15 arifroni kernel: usb 1-12: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
Feb 08 09:20:15 arifroni kernel: usb 1-12: New USB device strings: Mfr=0, Product=2, SerialNumber=0
Feb 08 09:20:15 arifroni kernel: usb 1-12: Product: USB Serial
Feb 08 09:20:15 arifroni kernel: ch341 1-12:1.0: ch341-uart converter detected
Feb 08 09:20:15 arifroni kernel: usb 1-12: ch341-uart converter now attached to ttyUSB0
Feb 08 09:20:17 arifroni kernel: ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
Feb 08 09:20:17 arifroni kernel: ch341 1-12:1.0: device disconnected
Feb 08 09:20:17 arifroni kernel: usb 1-12: reset full-speed USB device number 6 using xhci_hcd
Feb 08 09:20:55 arifroni sshd[161103]: Accepted password for root from 192.168.1.12 port 55365 ssh2
Feb 08 09:20:55 arifroni sshd[161103]: pam_unix(sshd:session): session opened for user root(uid=0) by (uid=0)
Feb 08 09:20:55 arifroni systemd-logind[730]: New session 33 of user root.
Feb 08 09:20:55 arifroni systemd[1]: Started Session 33 of user root.
Feb 08 09:22:36 arifroni kernel: usb 1-12: USB disconnect, device number 6
Feb 08 09:22:37 arifroni QEMU[9249]: kvm: libusb_release_interface: -4 [NO_DEVICE]
Feb 08 09:22:46 arifroni kernel: usb 1-12: new full-speed USB device number 7 using xhci_hcd
Feb 08 09:22:46 arifroni kernel: usb 1-12: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
Feb 08 09:22:46 arifroni kernel: usb 1-12: New USB device strings: Mfr=0, Product=2, SerialNumber=0
Feb 08 09:22:46 arifroni kernel: usb 1-12: Product: USB Serial
Feb 08 09:22:46 arifroni kernel: ch341 1-12:1.0: ch341-uart converter detected
Feb 08 09:22:46 arifroni kernel: usb 1-12: ch341-uart converter now attached to ttyUSB0
Feb 08 09:22:47 arifroni kernel: ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
Feb 08 09:22:47 arifroni kernel: ch341 1-12:1.0: device disconnected
Feb 08 09:22:47 arifroni kernel: usb 1-12: reset full-speed USB device number 7 using xhci_hcd