Ls: cannot access '/dev/serial/by-id': No such file or directory

Ubuntu Mate 23.04 lost ability to list USB attached devices using the ls /dev/serial/by-id as well as ls/dev/serial/by-path. This is impairing functionality of klipper seriously as controller boards cannot be located and result in loss of operation. Many links call for a patch of /usr/lib/udev/rules.d/60-serial.rules but to no avail. Please help restore this important functionality.

1 Like

Welcome @m3cinc to the community!

Since ubuntu is based on debian and debian dropped (probably by accident) the '/dev/serial/by-id' link, ubuntu is also missing this udev generated link.

According to Reddit - /dev/serial/by-id suddenly missing
You can get it back by editing or creating a udev rule.

Here is an important quote from the forementioned link:

I had the same issue with Debian 11 today after restarting my NUC. The "/dev/serial/by_id" symlink was not created. I investigated and found that it seems to be a known bug:

I fixed it with replacing my "/lib/udev/rules.d/60-serial.rules" with the current one from Github:

After a reboot the symlink was created again.


Might lsusb be of use?