Public bug reported:

I have an external HDD Seagate Expansion Desk.
There is a quirk for it in the Linux kernel, more specifically the file 
drivers/usb/storage/unusual_uas.h:
UNUSUAL_DEV(0x0bc2, 0x331a, 0x0000, 0x9999,
                "Seagate",
                "Expansion Desk",
                USB_SC_DEVICE, USB_PR_DEVICE, NULL,
                US_FL_NO_REPORT_LUNS),

This quirk,  US_FL_NO_REPORT_LUNS, is identified by letter j.
This quirk when enabled it makes smartctl command returns correct information.

Out-of-the-box, this quirk doesn't work. I connect over USB my external HDD 
device, and smartctl -i /dev/sda gives me an error:
Read Device Identity failed: scsi error unsupported field in scsi command

If this is a USB connected device, look at the various --device=TYPE variants
A mandatory SMART command failed: exiting. To continue, add one or more '-T 
permissive' options.

A important thing here is that adding the quirk manually does work:
echo "0x0bc2:0x331a:j" |sudo tee /sys/module/usb_storage/parameters/quirks

After I unplug and plug again my device, smartctl works as expected:

=== START OF INFORMATION SECTION ===
Model Family:     Seagate BarraCuda 3.5 (SMR)
Device Model:     ST8000DM004-2CX188
Serial Number:    ZCT33T56
LU WWN Device Id: 5 000c50 0c6e897f9
Firmware Version: 0001
User Capacity:    8.001.563.222.016 bytes [8,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5425 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database 7.5/5706
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Mar 18 15:44:50 2026 -03
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

So if I'm understanding correctly, for some reason the quirk is not
being enabled automatically, just manually.

Please let me know if you need any other information.
My kernel is Ubuntu 7.0.0-8.8-generic 7.0.0-rc4, but I ran in an older 6.19, 
and also another kernel by liquorix, so I think or the problem is pretty old 
and nobody noticed, or it's distro related instead of kernel related.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2144811

Title:
  usb-storage quirk from kernel not being applied. Manually added quirk
  works

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2144811/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to