I am creating a udev rule which simply logs the usb storage devices. I have a usb flash disc with
ID_MODEL_ID==1234
and ID_VENDOR_ID==abcd
. udev
shows that this is:
ID_MODEL=UDisk
ID_VENDOR=General
But I don't get where it gets this information.
According to what I see in usb.ids
of latest hwdata
:
$ cat /usr/share/hwdata/usb.ids | grep abcd
abcd Unknown
$ cat /usr/share/hwdata/usb.ids | grep 1234
1234 IronLogic RFID Adapter [Z-2 USB]
1234 Bluetooth Device
1234 Typhoon Redfun Modem V90 56k
1234 Flash Drive
1234 Cruzer Mini Flash Drive
1234 USB to ATAPI
1234 BACKPACK
1234 Storage Device
1234 Fastrack Xtend FXT001 Modem
1234 Brain Actuated Technologies
1234 PDS6062T Oscilloscope
1234 ATAPI Bridge
1234 Prototype Reader/Writer
My goal is to simply log ID_VENDOR_ID
and ID_MODEL_ID
instead of strings ID_VENDOR
and ID_MODEL
and to get these strings later when I need by looking up the hwdata
's usb.ids file. It seems to me that udev
gets these strings from somewhere else but where?
Asked by VP.
(111 rep)
May 25, 2018, 07:31 AM
Last activity: Aug 5, 2025, 09:04 PM
Last activity: Aug 5, 2025, 09:04 PM