Re: USB drive not recognized

From: Greg Balfour <greg.bal4_at_gmail.com>
Date: Sun, 22 Jan 2023 15:25:18 UTC
On Fri, Dec 16, 2022 at 9:39 PM Greg Balfour <greg.bal4@gmail.com> wrote:
>
> I have a USB drive that's recognized under Linux but not
> FreeBSD 13.1-RELEASE-p3 GENERIC amd64.  Is there
> anything I can do to work around this?
>
> Dec 16 21:20:22 desktop kernel: usb_msc_auto_quirk:
> UQ_MSC_NO_GETMAXLUN set for USB mass storage device ACTIONS HS USB
> FlashDisk (0x10d6:0x1101)
> Dec 16 21:20:22 desktop kernel: usb_msc_auto_quirk:
> UQ_MSC_NO_SYNC_CACHE set for USB mass storage device ACTIONS HS USB
> FlashDisk (0x10d6:0x1101)
> Dec 16 21:20:22 desktop kernel: usb_msc_auto_quirk:
> UQ_MSC_NO_PREVENT_ALLOW set for USB mass storage device ACTIONS HS USB
> FlashDisk (0x10d6:0x1101)
> Dec 16 21:20:22 desktop kernel: usb_msc_auto_quirk:
> UQ_MSC_NO_TEST_UNIT_READY set for USB mass storage device ACTIONS HS
> USB FlashDisk (0x10d6:0x1101)
> Dec 16 21:20:22 desktop kernel: usb_msc_auto_quirk:
> UQ_MSC_NO_START_STOP set for USB mass storage device ACTIONS HS USB
> FlashDisk (0x10d6:0x1101)
> Dec 16 21:20:30 desktop kernel: usbd_setup_device_desc: getting device
> descriptor at addr 5 failed, USB_ERR_IOERROR
> Dec 16 21:20:33 desktop syslogd: last message repeated 1 times
> Dec 16 21:20:33 desktop kernel: usb_alloc_device: Failure selecting
> configuration index 0:USB_ERR_IOERROR, port 4, addr 5 (ignored)
> Dec 16 21:20:33 desktop kernel: ugen1.5: <ACTIONS HS USB FlashDisk> at usbus1
> Dec 16 21:20:37 desktop kernel: ugen1.5: <ACTIONS HS USB FlashDisk> at
> usbus1 (disconnected)
>
> # ls /dev/da*
> ls: /dev/da*: No such file or directory

To follow up on this, I opened a bug report and someone suggested I try this:

usbconfig -d ugenX.Y add_quirk UQ_MSC_NO_GETMAXLUN
usbconfig -d ugenX.Y add_quirk UQ_MSC_NO_SYNC_CACHE

That worked.  I then had to install sysutils/fusefs-exfat to mount it.

For details see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269085