Comment 64 for bug 1833618

Revision history for this message
Rafael David Tinoco (rafaeldtinoco) wrote :

Provided a fix for Ubuntu Disco at the PPA and pushed changes into the merge request.

-----------

# Ubuntu Disco (showing the problem)

kernel: usb 2-6: new SuperSpeed Gen 1 USB device number 3 using xhci_hcd
kernel: usb 2-6: New USB device found, idVendor=1b1c, idProduct=1a0c, bcdDevice= 1.00
kernel: usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
kernel: usb 2-6: Product: Voyager Mini 3.0
kernel: usb 2-6: Manufacturer: Corsair
kernel: usb 2-6: SerialNumber: 070851D0E490C776
mtp-probe[17351]: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-6"
mtp-probe[17351]: bus: 2, device: 3 was not an MTP device
kernel: usb-storage 2-6:1.0: USB Mass Storage device detected
kernel: scsi host2: usb-storage 2-6:1.0
kernel: usbcore: registered new interface driver usb-storage
kernel: usbcore: registered new interface driver uas
mtp-probe[17360]: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-6"
mtp-probe[17360]: bus: 2, device: 3 was not an MTP device
kernel: scsi 2:0:0:0: Direct-Access Corsair Voyager Mini 3.0 000B PQ: 0 ANSI: 6
kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
kernel: sd 2:0:0:0: [sdb] 30283008 512-byte logical blocks: (15.5 GB/14.4 GiB)
kernel: sd 2:0:0:0: [sdb] Write Protect is off
kernel: sd 2:0:0:0: [sdb] Mode Sense: 23 00 00 00
kernel: sd 2:0:0:0: [sdb] No Caching mode page found
kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
kernel: sdb: sdb1
kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk
systemd-udevd[17357]: Process '/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg80 --raw' failed with exit code 15.
kernel: usb 2-6: reset SuperSpeed Gen 1 USB device number 3 using xhci_hcd
systemd-udevd[17357]: Spawned process '/usr/bin/sg_inq --export --page=sn /dev/sdb' [17363] is taking longer than 59s to complete
systemd-udevd[17357]: Process '/usr/bin/sg_inq --export --page=sn /dev/sdb' failed with exit code 99.
systemd-udevd[17357]: Process '/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg83 --raw' failed with exit code 15.

and the serial:

P: /devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/host2/target2:0:0/2:0:0:0/block/sdb/sdb1
N: sdb1
L: 0
S: disk/by-id/scsi-32000acde48234567-part1
S: disk/by-label/ESD-USB
S: disk/by-id/scsi-3-part1
S: disk/by-id/scsi-28765432ab567abcd-part1
S: disk/by-uuid/B068-2D19
S: disk/by-id/wwn-0x2000acde48234567-part1
S: disk/by-id/scsi-1USB_DISK_2.0-part1
S: disk/by-partuuid/2ff58786-01
S: disk/by-path/pci-0000:00:14.0-usb-0:6:1.0-scsi-0:0:0:0-part1
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/host2/target2:0:0/2:0:0:0/block/sdb/sdb1
E: SUBSYSTEM=block
E: DEVNAME=/dev/sdb1
E: DEVTYPE=partition
E: PARTN=1
E: MAJOR=8
E: MINOR=17
E: USEC_INITIALIZED=1623657380
E: SCSI_TPGS=0
E: SCSI_TYPE=disk
E: SCSI_VENDOR=Corsair
E: SCSI_VENDOR_ENC=Corsair\x20
E: SCSI_MODEL=Voyager_Mini_3.0
E: SCSI_MODEL_ENC=Voyager\x20Mini\x203.0
E: SCSI_REVISION=000B
E: SCSI_IDENT_LUN_T10=USB_DISK_2.0
E: SCSI_IDENT_LUN_EUI64=8765432ab567abcd
E: SCSI_IDENT_LUN_NAA_EXT=2000acde48234567
E: ID_SCSI=1
E: ID_VENDOR=Corsair
E: ID_VENDOR_ENC=Corsair\x20
E: ID_MODEL=Voyager_Mini_3.0
E: ID_MODEL_ENC=Voyager\x20Mini\x203.0
E: ID_REVISION=000B
E: ID_TYPE=disk
E: ID_WWN=0x2000acde48234567
E: ID_WWN_WITH_EXTENSION=0x2000acde48234567
E: ID_BUS=scsi
E: ID_SERIAL=3
E: ID_SERIAL_SHORT=2000acde48234567
...

# Ubuntu Disco with fixed proposed version:

Oct 09 03:26:40 lenovo kernel: usb-storage 2-6:1.0: USB Mass Storage device detected
Oct 09 03:26:40 lenovo kernel: scsi host2: usb-storage 2-6:1.0
Oct 09 03:26:40 lenovo mtp-probe[22823]: checking bus 2, device 5: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-6"
Oct 09 03:26:40 lenovo mtp-probe[22823]: bus: 2, device: 5 was not an MTP device
Oct 09 03:26:40 lenovo mtp-probe[22826]: checking bus 2, device 5: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-6"
Oct 09 03:26:40 lenovo mtp-probe[22826]: bus: 2, device: 5 was not an MTP device
Oct 09 03:26:41 lenovo kernel: scsi 2:0:0:0: Direct-Access Corsair Voyager Mini 3.0 000B PQ: 0 ANSI: 6
Oct 09 03:26:41 lenovo kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
Oct 09 03:26:43 lenovo kernel: sd 2:0:0:0: [sdb] 30283008 512-byte logical blocks: (15.5 GB/14.4 GiB)
Oct 09 03:26:43 lenovo kernel: sd 2:0:0:0: [sdb] Write Protect is off
Oct 09 03:26:43 lenovo kernel: sd 2:0:0:0: [sdb] Mode Sense: 23 00 00 00
Oct 09 03:26:43 lenovo kernel: sd 2:0:0:0: [sdb] No Caching mode page found
Oct 09 03:26:43 lenovo kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
Oct 09 03:26:43 lenovo kernel: sdb: sdb1
Oct 09 03:26:43 lenovo kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk
Oct 09 03:26:43 lenovo systemd-udevd[22819]: Process '/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg80 --raw' failed with exit code 15.
Oct 09 03:26:43 lenovo systemd-udevd[22819]: Process '/usr/bin/sg_inq --export --inhex=/sys/block/sdb/device/vpd_pg83 --raw' failed with exit code 15.

and the correct serial is present not only in the partition, but in the disk itself:

: /devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/host2/target2:0:0/2:0:0:0/block/sdb
N: sdb
L: 0
S: disk/by-id/usb-Corsair_Voyager_Mini_3.0_070851D0E490C776-0:0
S: disk/by-path/pci-0000:00:14.0-usb-0:6:1.0-scsi-0:0:0:0
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/host2/target2:0:0/2:0:0:0/block/sdb
E: SUBSYSTEM=block
E: DEVNAME=/dev/sdb
E: DEVTYPE=disk
E: MAJOR=8
E: MINOR=16
E: USEC_INITIALIZED=4579558830
E: SCSI_TPGS=0
E: SCSI_TYPE=disk
E: SCSI_VENDOR=Corsair
E: SCSI_VENDOR_ENC=Corsair\x20
E: SCSI_MODEL=Voyager_Mini_3.0
E: SCSI_MODEL_ENC=Voyager\x20Mini\x203.0
E: SCSI_REVISION=000B
E: ID_SCSI=1
E: ID_SCSI_SN=1
E: ID_SCSI_DI=1
E: ID_VENDOR=Corsair
E: ID_VENDOR_ENC=Corsair\x20
E: ID_MODEL=Voyager_Mini_3.0
E: ID_MODEL_ENC=Voyager\x20Mini\x203.0
E: ID_REVISION=000B
E: ID_TYPE=disk
E: ID_VENDOR_ID=1b1c
E: ID_MODEL_ID=1a0c
E: ID_SERIAL=Corsair_Voyager_Mini_3.0_070851D0E490C776-0:0
E: ID_SERIAL_SHORT=070851D0E490C776