[SOLVED] Usb sticks keep getting different designations!

LooneyTunes

Active Member
Jun 1, 2019
203
22
38
Hi,

Issue I am having is the tty's keep alternating on restart of the VM. This breaks things and is a bit tedious
Code:
ls -l /dev/serial/by-id/*
lrwxrwxrwx    1 root     root            13 Apr 17 17:11 /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB1
lrwxrwxrwx    1 root     root            13 Apr 17 17:11 /dev/serial/by-id/usb-Silicon_Labs_CP2102N_USB_to_UART_Bridge_Controller_32ffc33f5184e91191494992d6f3a178-if00-port0 -> ../../ttyUSB0
What can I do to make the same path always point to the same tty?
 
Last edited:
Never depend on /dev/ttyUSB<N> directly, but rather on /dev/serial/by-id/.
The same for disks, there you should always use /dev/disk/by-id for stable paths.
 
Never depend on /dev/ttyUSB<N> directly, but rather on /dev/serial/by-id/.
But I do already, that is why I post. But as the ttyUSBx is the actual file, and the path "/dev/serial/by-id/..." is a link to it, it seems that link sometimes points to the wrong USB... But suppose it is not a problem with ProxMox then, it seems to be that VM that does something funny. Not a major thing, but would have been nice to stabilize this somehow. Thanks :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!