Bug 199101 - Verbatim STORE N GO USB drive failed to attach, now resolved, patch for usb-quirk.c included
Summary: Verbatim STORE N GO USB drive failed to attach, now resolved, patch for usb-q...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Dag-Erling Smørgrav
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-01 19:14 UTC by DW
Modified: 2026-07-10 17:05 UTC (History)
3 users (show)

See Also:
des: mfc-stable15+
des: mfc-stable14+


Attachments
patch for usb_quirk.c, usbdevs (1.14 KB, patch)
2015-04-01 19:14 UTC, DW
no flags Details | Diff
patch for usb_quirk.c, usbdevs (1.15 KB, patch)
2025-02-26 04:26 UTC, Mark Linimon
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description DW 2015-04-01 19:14:18 UTC
Created attachment 155104 [details]
patch for usb_quirk.c, usbdevs

original 11-current system is 
FreeBSD 11.0-CURRENT (VENUS) #0 r280370: Mon Mar 23 22:14:14 CET 2015

relevant dmesg entries when inserting the drive:

umass0: <Verbatim STORE N GO, class 0/0, rev 2.10/1.00, addr 2> on usbus2
umass0:  SCSI over Bulk-Only; quirks = 0x8100
umass0:4:0: Attached to scbus4
(probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10
00 00 
(probe0:umass-sim0:0:0:0): CAM status: Auto-Sense Retrieval Failed
(probe0:umass-sim0:0:0:0): Error 5, Unretryable error
(da0:umass-sim0:0:0:0): got CAM status 0x50
(da0:umass-sim0:0:0:0): fatal error, failed to attach to device

=========

after applying the attached patch, the device becomes usable as /dev/da0,
the successful quirk being
 USB_QUIRK(VERBATIM, STORENGO, 0x0000, 0xffff, UQ_MSC_IGNORE_RESIDUE)


ugen2.2: <Verbatim> at usbus2
umass0: <Verbatim STORE N GO, class 0/0, rev 2.10/1.00, addr 2> on usbus2
umass0:  SCSI over Bulk-Only; quirks = 0x8180
umass0:4:0: Attached to scbus4
Trying to mount root from ufs:/dev/ada0p2 [rw]...
(probe0:umass-sim0:0:0:0): REPORT LUNS. CDB: a0 00 00 00 00 00 00 00 00 10 00 00 
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: ILLEGAL REQUEST asc:20,0 (Invalid command operation code)
(probe0:umass-sim0:0:0:0): Error 22, Unretryable error
da0 at umass-sim0 bus 0 scbus4 target 0 lun 0
da0: <Verbatim STORE N GO > Removable Direct Access SPC-4 SCSI device
da0: 40.000MB/s transfers
da0: 14909MB (30535401 512 byte sectors: 255H 63S/T 1900C)
da0: quirks=0x2<NO_6_BYTE>
uhid0: <Fujitsu Siemens Computers Fujitsu Siemens Computers USB-Keyboard rf v1.0, class 0/0, rev 1.10/0.01, addr 2> on usbus4
Comment 1 Kurt Jaeger freebsd_committer freebsd_triage 2015-04-01 19:27:39 UTC
see
https://lists.freebsd.org/pipermail/freebsd-current/2015-March/055210.html
for the discussion on that topic.
Comment 2 DW 2015-04-03 09:32:52 UTC
patch confirmed to work on 
FreeBSD 10.1-STABLE #0 r279278
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2025-02-26 04:26:19 UTC
Created attachment 257978 [details]
patch for usb_quirk.c, usbdevs

^Triage: rebase patch.
Comment 4 Warner Losh freebsd_committer freebsd_triage 2025-02-26 05:35:29 UTC
I'll look at this
Comment 5 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2026-06-28 15:38:34 UTC
Sorry this fell through the cracks.  I'm about to commit it, is it ok to credit the patch to Damian Weber <dweber at htwsaar dot de>?
Comment 6 commit-hook freebsd_committer freebsd_triage 2026-07-02 13:02:41 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=e1a0592ccd8141c609b45dfbe2fba13929ee4d51

commit e1a0592ccd8141c609b45dfbe2fba13929ee4d51
Author:     Damian Weber <dweber@htwsaar.de>
AuthorDate: 2026-07-02 12:59:36 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-07-02 12:59:36 +0000

    usb/quirks: Add entry for Verbatim Store'n'Go

    PR:             199101
    MFC after:      1 week
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D57929

 sys/dev/usb/quirk/usb_quirk.c | 1 +
 sys/dev/usb/usbdevs           | 4 ++++
 2 files changed, 5 insertions(+)
Comment 7 commit-hook freebsd_committer freebsd_triage 2026-07-10 16:59:48 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=5e83b07ad4cdd71f427c48b0a66cf1999c72c082

commit 5e83b07ad4cdd71f427c48b0a66cf1999c72c082
Author:     Damian Weber <dweber@htwsaar.de>
AuthorDate: 2026-07-02 12:59:36 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-07-10 16:59:16 +0000

    usb/quirks: Add entry for Verbatim Store'n'Go

    PR:             199101
    MFC after:      1 week
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D57929

    (cherry picked from commit e1a0592ccd8141c609b45dfbe2fba13929ee4d51)

 sys/dev/usb/quirk/usb_quirk.c | 1 +
 sys/dev/usb/usbdevs           | 4 ++++
 2 files changed, 5 insertions(+)
Comment 8 commit-hook freebsd_committer freebsd_triage 2026-07-10 16:59:49 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=a97df1387702c05f2ae5c4154ada45922b3dcf47

commit a97df1387702c05f2ae5c4154ada45922b3dcf47
Author:     Damian Weber <dweber@htwsaar.de>
AuthorDate: 2026-07-02 12:59:36 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-07-10 16:59:25 +0000

    usb/quirks: Add entry for Verbatim Store'n'Go

    PR:             199101
    MFC after:      1 week
    Reviewed by:    imp
    Differential Revision:  https://reviews.freebsd.org/D57929

    (cherry picked from commit e1a0592ccd8141c609b45dfbe2fba13929ee4d51)

 sys/dev/usb/quirk/usb_quirk.c | 1 +
 sys/dev/usb/usbdevs           | 4 ++++
 2 files changed, 5 insertions(+)