Re: Yet another Seagate quirk for unusual_uas.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 18, 2017 at 11:05 AM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> wrote:
> On Mon, 18 Sep 2017, Kris Lindgren wrote:
>
>> >> What happens if you plug the disk drive into a regular Linux desktop
>> >> computer?  Remember, if an unusual_uas.h entry is added, it will affect
>> >> those machines too.
>> >
>> > I will need to get back to you on this.  All of my other machines
>> > running linux, only have usb2.0 hubs.  They are also haven't been used
>> > in some time and are running older versions of Ubuntu.
>>
>> I upgraded a machine to the latest Ubuntu LTS distro - which is using
>> the 4.4 kernel
>>
>> When plugging in the drive without any modification, the drive fails to mount.
>> Dmesg output:
>> [  378.353553] usb 2-1.3: new high-speed USB device number 3 using ehci-pci
>> [  378.489981] usb 2-1.3: New USB device found, idVendor=0bc2, idProduct=3332
>> [  378.489985] usb 2-1.3: New USB device strings: Mfr=1, Product=2,
>> SerialNumber=3
>> [  378.489987] usb 2-1.3: Product: External
>> [  378.489989] usb 2-1.3: Manufacturer: Seagate
>> [  378.489990] usb 2-1.3: SerialNumber: 2GHP5NM9
>> [  378.650153] usb-storage 2-1.3:1.0: USB Mass Storage device detected
>> [  378.650267] scsi host6: usb-storage 2-1.3:1.0
>> [  378.650359] usbcore: registered new interface driver usb-storage
>> [  378.684653] usbcore: registered new interface driver uas
>> [  379.651163] scsi 6:0:0:0: Direct-Access     Seagate  External
>>   SG12 PQ: 0 ANSI: 4
>> [  379.651892] sd 6:0:0:0: Attached scsi generic sg2 type 0
>> [  379.652324] sd 6:0:0:0: [sdb] 3907029164 512-byte logical blocks:
>> (2.00 TB/1.82 TiB)
>> [  379.653077] sd 6:0:0:0: [sdb] Write Protect is off
>> [  379.653081] sd 6:0:0:0: [sdb] Mode Sense: 1c 00 00 00
>> [  379.654529] sd 6:0:0:0: [sdb] Write cache: enabled, read cache:
>> enabled, doesn't support DPO or FUA
>> [  379.723781]  sdb: sdb1
>> [  379.726584] sd 6:0:0:0: [sdb] Attached SCSI disk
>> [  379.907727] sd 6:0:0:0: [sdb] tag#0 FAILED Result:
>> hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
>> [  379.907737] sd 6:0:0:0: [sdb] tag#0 Sense Key : Hardware Error
>> [current] [descriptor]
>> [  379.907741] sd 6:0:0:0: [sdb] tag#0 Add. Sense: No additional sense
>> information
>> [  379.907747] sd 6:0:0:0: [sdb] tag#0 CDB: ATA command pass
>> through(16) 85 06 20 00 00 00 00 00 00 00 00 00 00 00 e5 00
>> [  380.008600] sd 6:0:0:0: [sdb] tag#0 FAILED Result:
>> hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
>> [  380.008608] sd 6:0:0:0: [sdb] tag#0 Sense Key : Hardware Error
>> [current] [descriptor]
>> [  380.008611] sd 6:0:0:0: [sdb] tag#0 Add. Sense: No additional sense
>> information
>> [  380.008616] sd 6:0:0:0: [sdb] tag#0 CDB: ATA command pass
>> through(12)/Blank a1 06 20 da 00 00 4f c2 00 b0 00 00
>> [  380.426654] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK
>> driverbyte=DRIVER_SENSE
>> [  380.426662] sd 6:0:0:0: [sdb] tag#0 Sense Key : Illegal Request [current]
>> [  380.426666] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Invalid field in cdb
>> [  380.426670] sd 6:0:0:0: [sdb] tag#0 CDB: Synchronize Cache(10) 35
>> 00 00 00 00 00 00 00 00 00
>> [  380.426677] blk_update_request: critical target error, dev sdb, sector 0
>> [  380.426692] JBD2: recovery failed
>> [  380.426698] EXT4-fs (sdb1): error loading journal
>>
>> kernel version is:  4.4.0-93-generic
>
> And if you use the w quirk flag?

So I upgrade to 17.04 which is using the 4.10 kernel.

Without any modification the filesystem fails to mount.

Unloading the usb_storage module and reloading it with
quirks=0bc2:3332:w allows the drive to be succesfully mounted and used
without any errors.

[  168.613814] usb 2-1.3: new high-speed USB device number 3 using ehci-pci
[  168.746541] usb 2-1.3: New USB device found, idVendor=0bc2, idProduct=3332
[  168.746544] usb 2-1.3: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[  168.746546] usb 2-1.3: Product: External
[  168.746548] usb 2-1.3: Manufacturer: Seagate
[  168.746550] usb 2-1.3: SerialNumber: 2GHP5NM9
[  168.847161] usb-storage 2-1.3:1.0: USB Mass Storage device detected
[  168.847367] usb-storage 2-1.3:1.0: Quirks match for vid 0bc2 pid 3332: 200
[  168.847429] scsi host6: usb-storage 2-1.3:1.0
[  168.847575] usbcore: registered new interface driver usb-storage
[  168.876249] usbcore: registered new interface driver uas
[  169.859397] scsi 6:0:0:0: Direct-Access     Seagate  External
  SG12 PQ: 0 ANSI: 4
[  169.860378] sd 6:0:0:0: Attached scsi generic sg2 type 0
[  169.860932] sd 6:0:0:0: [sdb] 3907029164 512-byte logical blocks:
(2.00 TB/1.82 TiB)
[  169.860937] sd 6:0:0:0: [sdb] Assuming Write Enabled
[  169.860942] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[  169.926892]  sdb: sdb1
[  169.928163] sd 6:0:0:0: [sdb] Attached SCSI disk
[  170.117663] sd 6:0:0:0: [sdb] tag#0 FAILED Result:
hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
[  170.117669] sd 6:0:0:0: [sdb] tag#0 Sense Key : Hardware Error
[current] [descriptor]
[  170.117671] sd 6:0:0:0: [sdb] tag#0 Add. Sense: No additional sense
information
[  170.117675] sd 6:0:0:0: [sdb] tag#0 CDB: ATA command pass
through(16) 85 06 20 00 00 00 00 00 00 00 00 00 00 00 e5 00
[  170.219517] sd 6:0:0:0: [sdb] tag#0 FAILED Result:
hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
[  170.219521] sd 6:0:0:0: [sdb] tag#0 Sense Key : Hardware Error
[current] [descriptor]
[  170.219522] sd 6:0:0:0: [sdb] tag#0 Add. Sense: No additional sense
information
[  170.219526] sd 6:0:0:0: [sdb] tag#0 CDB: ATA command pass
through(12)/Blank a1 06 20 da 00 00 4f c2 00 b0 00 00
[  170.645211] EXT4-fs (sdb1): mounted filesystem with ordered data
mode. Opts: (null)

lsusb:
lsusb -v

Bus 002 Device 003: ID 0bc2:3332 Seagate RSS LLC Expansion
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0bc2 Seagate RSS LLC
  idProduct          0x3332 Expansion
  bcdDevice            0.12
  iManufacturer           1 Seagate
  iProduct                2 External
  iSerial                 3 2GHP5NM9
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower               96mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk-Only
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0

>
> Alan Stern
>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux