User: Password:
|
|
Subscribe / Log in / New account

User-friendly disk names

User-friendly disk names

Posted Nov 8, 2011 20:13 UTC (Tue) by jo42 (subscriber, #59640)
In reply to: User-friendly disk names by dlang
Parent article: User-friendly disk names

> each serial adapter should have a unique serial number

Where can I find this serial number? I've the same problem.

# lsusb
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 009: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 003 Device 008: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 003 Device 007: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 003 Device 006: ID 0557:2008 ATEN International Co., Ltd UC-232A Serial Port [pl2303]
Bus 003 Device 005: ID 0557:2008 ATEN International Co., Ltd UC-232A Serial Port [pl2303]
Bus 003 Device 004: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 003 Device 003: ID 058f:9254 Alcor Micro Corp. Hub
Bus 003 Device 002: ID 058f:9254 Alcor Micro Corp. Hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

# diff <(lsusb -vvv -s 3:9) <(lsusb -vvv -s 3:8)
--- /proc/self/fd/11 2011-11-08 21:09:05.183873823 +0100
+++ /proc/self/fd/12 2011-11-08 21:09:05.183873823 +0100
@@ -1,5 +1,5 @@

-Bus 003 Device 009: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
+Bus 003 Device 008: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Device Descriptor:
bLength 18
bDescriptorType 1


(Log in to post comments)

User-friendly disk names

Posted Nov 8, 2011 22:14 UTC (Tue) by jimparis (guest, #38647) [Link]

My PL2303 devices don't have a unique serial. I don't know if the
chip supports that. If your device does, then you can use the links in /dev/serial/by-id. Otherwise, the links in /dev/serial/by-path are probably your best bet.


Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds