0
I have a USB port into which I insert all sorts of different USB disks over time. The kernel does not consistently allocate the same device for it, so I have to go hunt after each insert. How can I always get the same device name?
Note that driving this from the UUID or such does not work, because I use the same port for different disks. It's not the disk I want to consistently name, it's the current disk that's in a consistent port.
I had been hoping there would be some kind of /sys/…/controllerX/…/portY/…
path that identifies the USB port, rather than the disk, but hunting for it I did not find one.
Duh, I didn't think of looking under /dev. – Johannes Ernst – 2018-08-13T23:36:59.160