Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

USB3 external drive caddy goes offline after a while

I noticed that my ORICO 2588US3 Portable USB 2.5 3.0 SATA external HDD enclosure is going offline after a period of idle when connected to USB3 ports on my laptops (one runs Fedore 21, the other Fedora 23). After plugging in the drive I can read/write to it immediately after, but if left idle for a little while the device goes offline without telling the system. If an attempt is made to access a file on the external drive, the system reports that the location is not available.

This doesn't happen when it is connected to an USB2 port.

Could this be some energy saving feature in the USB3 ports that is causing this?

I'll post more info that I spot. If you would like me to execute any command and report output, please let me know.

dmesg output

[ 9448.672288] usb 2-2: new SuperSpeed USB device number 2 using xhci_hcd
[ 9448.684149] usb 2-2: New USB device found, idVendor=357d, idProduct=7788
[ 9448.684154] usb 2-2: New USB device strings: Mfr=10, Product=11, SerialNumber=3
[ 9448.684156] usb 2-2: Product: USB to ATA/ATAPI Bridge
[ 9448.684158] usb 2-2: Manufacturer: JMicron
[ 9448.684159] usb 2-2: SerialNumber: 000012345678
[ 9448.699991] usbcore: registered new interface driver usb-storage
[ 9448.703525] scsi host4: uas
[ 9448.704366] usbcore: registered new interface driver uas
[ 9448.705036] scsi 4:0:0:0: Direct-Access     TOSHIBA  MQ01XXXNNN       0100 PQ: 0 ANSI: 6
[ 9448.707804] sd 4:0:0:0: Attached scsi generic sg1 type 0
[ 9448.708435] sd 4:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[ 9448.708437] sd 4:0:0:0: [sdb] 4096-byte physical blocks
[ 9448.711541] sd 4:0:0:0: [sdb] Write Protect is off
[ 9448.711544] sd 4:0:0:0: [sdb] Mode Sense: 67 00 10 08
[ 9448.712759] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 9448.788026]  sdb: sdb1
[ 9448.794082] sd 4:0:0:0: [sdb] Attached SCSI disk
[ 9449.625260] EXT4-fs (sdb1): recovery complete
[ 9449.625390] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)

USB3 external drive caddy goes offline after a while

I noticed that my ORICO 2588US3 Portable USB 2.5 3.0 SATA external HDD enclosure is going offline after a period of idle when connected to USB3 ports on my laptops (one runs Fedore 21, the other Fedora 23). After plugging in the drive I can read/write to it immediately after, but if left idle for a little while the device goes offline without telling the system. If an attempt is made to access a file on the external drive, the system reports that the location is not available.

This doesn't happen when it is connected to an USB2 port.

Could this be some energy saving feature in the USB3 ports that is causing this?

I'll post more info that I spot. If you would like me to execute any command and report output, please let me know.

dmesg output

[ 9448.672288] usb 2-2: new SuperSpeed USB device number 2 using xhci_hcd
[ 9448.684149] usb 2-2: New USB device found, idVendor=357d, idProduct=7788
[ 9448.684154] usb 2-2: New USB device strings: Mfr=10, Product=11, SerialNumber=3
[ 9448.684156] usb 2-2: Product: USB to ATA/ATAPI Bridge
[ 9448.684158] usb 2-2: Manufacturer: JMicron
[ 9448.684159] usb 2-2: SerialNumber: 000012345678
[ 9448.699991] usbcore: registered new interface driver usb-storage
[ 9448.703525] scsi host4: uas
[ 9448.704366] usbcore: registered new interface driver uas
[ 9448.705036] scsi 4:0:0:0: Direct-Access     TOSHIBA  MQ01XXXNNN       0100 PQ: 0 ANSI: 6
[ 9448.707804] sd 4:0:0:0: Attached scsi generic sg1 type 0
[ 9448.708435] sd 4:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[ 9448.708437] sd 4:0:0:0: [sdb] 4096-byte physical blocks
[ 9448.711541] sd 4:0:0:0: [sdb] Write Protect is off
[ 9448.711544] sd 4:0:0:0: [sdb] Mode Sense: 67 00 10 08
[ 9448.712759] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 9448.788026]  sdb: sdb1
[ 9448.794082] sd 4:0:0:0: [sdb] Attached SCSI disk
[ 9449.625260] EXT4-fs (sdb1): recovery complete
[ 9449.625390] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)

[Update: 09-Jun-2016] Stumbled across a piece of information. This USB3 caddy and another Buffalo external USB3 drive that disconnect on Linux have the same TOSHIBA MQ01ABF050 HDD in them.

[mochapenguin@phenom2 ~]$ sudo hdparm -I /dev/sdb

    /dev/sdb:

ATA device, with non-removable media
    Model Number:       TOSHIBA MQ01ABF050                     
    Serial Number:      Z4FCW99AA
    Firmware Revision:  AM0B1J 
    Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
    Supported: 8 7 6 5
    Likely used: 8
Configuration:
    Logical        max    current
    cylinders    16383    16383
    heads        16    16
    sectors/track    63    63
    --
    CHS current addressable sectors:   16514064
    LBA    user addressable sectors:  268435455
    LBA48  user addressable sectors:  976773168
    Logical  Sector size:                   512 bytes
    Physical Sector size:                  4096 bytes
    Logical Sector-0 offset:                  0 bytes
    device size with M = 1024*1024:      476940 MBytes
    device size with M = 1000*1000:      500107 MBytes (500 GB)
    cache/buffer size  = 8192 KBytes
    Form Factor: 2.5 inch
    Nominal Media Rotation Rate: 5400
Capabilities:
    LBA, IORDY(can be disabled)
    Queue depth: 32
    Standby timer values: spec'd by Standard, no device specific minimum
    R/W multiple sector transfer: Max = 16    Current = 16
    Advanced power management level: 1
    DMA: sdma0 sdma1 sdma2 mdma0 mdma1 *mdma2 udma0 udma1 udma2 udma3 udma4 udma5
         Cycle time: min=120ns recommended=120ns
    PIO: pio0 pio1 pio2 pio3 pio4
         Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
    Enabled    Supported:
       *    SMART feature set
            Security Mode feature set
       *    Power Management feature set
       *    Write cache
       *    Look-ahead
       *    Host Protected Area feature set
       *    WRITE_BUFFER command
       *    READ_BUFFER command
       *    NOP cmd
       *    DOWNLOAD_MICROCODE
       *    Advanced Power Management feature set
            SET_MAX security extension
       *    48-bit Address feature set
       *    Device Configuration Overlay feature set
       *    Mandatory FLUSH_CACHE
       *    FLUSH_CACHE_EXT
       *    SMART error logging
       *    SMART self-test
       *    General Purpose Logging feature set
       *    WRITE_{DMA|MULTIPLE}_FUA_EXT
       *    64-bit World wide name
       *    IDLE_IMMEDIATE with UNLOAD
       *    WRITE_UNCORRECTABLE_EXT command
       *    {READ,WRITE}_DMA_EXT_GPL commands
       *    Segmented DOWNLOAD_MICROCODE
       *    Gen1 signaling speed (1.5Gb/s)
       *    Gen2 signaling speed (3.0Gb/s)
       *    Gen3 signaling speed (6.0Gb/s)
       *    Native Command Queueing (NCQ)
       *    Host-initiated interface power management
       *    Phy event counters
       *    Idle-Unload when NCQ is active
       *    Host automatic Partial to Slumber transitions
       *    Device automatic Partial to Slumber transitions
       *    READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
            DMA Setup Auto-Activate optimization
            Device-initiated interface power management
       *    Software settings preservation
       *    SMART Command Transport (SCT) feature set
       *    SCT Write Same (AC2)
       *    SCT Error Recovery Control (AC3)
       *    SCT Features Control (AC4)
       *    SCT Data Tables (AC5)
Security:
    Master password revision code = 65534
        supported
    not    enabled
    not    locked
    not    frozen
    not    expired: security count
        supported: enhanced erase
    110min for SECURITY ERASE UNIT. 110min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 50000395f4a055e3
    NAA        : 5
    IEEE OUI    : 000039
    Unique ID    : 5f4a055e3
Checksum: correct

USB3 external drive caddy goes offline after a while

I noticed that my ORICO 2588US3 Portable USB 2.5 3.0 SATA external HDD enclosure is going offline after a period of idle when connected to USB3 ports on my laptops (one runs Fedore 21, the other Fedora 23). After plugging in the drive I can read/write to it immediately after, but if left idle for a little while the device goes offline without telling the system. If an attempt is made to access a file on the external drive, the system reports that the location is not available.

This doesn't happen when it is connected to an USB2 port.

Could this be some energy saving feature in the USB3 ports that is causing this?

I'll post more info that I spot. If you would like me to execute any command and report output, please let me know.

dmesg output

[ 9448.672288] usb 2-2: new SuperSpeed USB device number 2 using xhci_hcd
[ 9448.684149] usb 2-2: New USB device found, idVendor=357d, idProduct=7788
[ 9448.684154] usb 2-2: New USB device strings: Mfr=10, Product=11, SerialNumber=3
[ 9448.684156] usb 2-2: Product: USB to ATA/ATAPI Bridge
[ 9448.684158] usb 2-2: Manufacturer: JMicron
[ 9448.684159] usb 2-2: SerialNumber: 000012345678
[ 9448.699991] usbcore: registered new interface driver usb-storage
[ 9448.703525] scsi host4: uas
[ 9448.704366] usbcore: registered new interface driver uas
[ 9448.705036] scsi 4:0:0:0: Direct-Access     TOSHIBA  MQ01XXXNNN       0100 PQ: 0 ANSI: 6
[ 9448.707804] sd 4:0:0:0: Attached scsi generic sg1 type 0
[ 9448.708435] sd 4:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[ 9448.708437] sd 4:0:0:0: [sdb] 4096-byte physical blocks
[ 9448.711541] sd 4:0:0:0: [sdb] Write Protect is off
[ 9448.711544] sd 4:0:0:0: [sdb] Mode Sense: 67 00 10 08
[ 9448.712759] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 9448.788026]  sdb: sdb1
[ 9448.794082] sd 4:0:0:0: [sdb] Attached SCSI disk
[ 9449.625260] EXT4-fs (sdb1): recovery complete
[ 9449.625390] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)

[SOLVED]

based on @archuserer's inputs, either this caddy does not support UASP or the uas driver has issues handling this product. So a quirk is registered for specific handling of this device.

/etc/modprobe.d/uas.conf

options usb-storage quirks=357d:7788:u

followed by:

sudo dracut -f

rebooted and plugged in the USB3 drive, need to watch a bit to see the drive stays. From dmesg:

[  157.59] usb 4-1.1: New USB device found, idVendor=357d, idProduct=7788
[  157.59] usb 4-1.1: UAS is blacklisted for this device, using usb-storage instead
[  157.59] usb-storage 4-1.1:1.0: Quirks match for vid 357d pid 7788: 800000
[  157.59] scsi host7: usb-storage 4-1.1:1.

=== Below information is probably not relevant but left for reference ===

[Update: 09-Jun-2016] Stumbled across a piece of information. This USB3 caddy and another Buffalo external USB3 drive that disconnect on Linux have the same TOSHIBA MQ01ABF050 HDD in them.

[mochapenguin@phenom2 ~]$ sudo hdparm -I /dev/sdb

    /dev/sdb:

ATA device, with non-removable media
    Model Number:       TOSHIBA MQ01ABF050                     
    Serial Number:      Z4FCW99AA
    Firmware Revision:  AM0B1J 
    Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
    Supported: 8 7 6 5
    Likely used: 8
Configuration:
    Logical        max    current
    cylinders    16383    16383
    heads        16    16
    sectors/track    63    63
    --
    CHS current addressable sectors:   16514064
    LBA    user addressable sectors:  268435455
    LBA48  user addressable sectors:  976773168
    Logical  Sector size:                   512 bytes
    Physical Sector size:                  4096 bytes
    Logical Sector-0 offset:                  0 bytes
    device size with M = 1024*1024:      476940 MBytes
    device size with M = 1000*1000:      500107 MBytes (500 GB)
    cache/buffer size  = 8192 KBytes
    Form Factor: 2.5 inch
    Nominal Media Rotation Rate: 5400
Capabilities:
    LBA, IORDY(can be disabled)
    Queue depth: 32
    Standby timer values: spec'd by Standard, no device specific minimum
    R/W multiple sector transfer: Max = 16    Current = 16
    Advanced power management level: 1
    DMA: sdma0 sdma1 sdma2 mdma0 mdma1 *mdma2 udma0 udma1 udma2 udma3 udma4 udma5
         Cycle time: min=120ns recommended=120ns
    PIO: pio0 pio1 pio2 pio3 pio4
         Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
    Enabled    Supported:
       *    SMART feature set
            Security Mode feature set
       *    Power Management feature set
       *    Write cache
       *    Look-ahead
       *    Host Protected Area feature set
       *    WRITE_BUFFER command
       *    READ_BUFFER command
       *    NOP cmd
       *    DOWNLOAD_MICROCODE
       *    Advanced Power Management feature set
            SET_MAX security extension
       *    48-bit Address feature set
       *    Device Configuration Overlay feature set
       *    Mandatory FLUSH_CACHE
       *    FLUSH_CACHE_EXT
       *    SMART error logging
       *    SMART self-test
       *    General Purpose Logging feature set
       *    WRITE_{DMA|MULTIPLE}_FUA_EXT
       *    64-bit World wide name
       *    IDLE_IMMEDIATE with UNLOAD
       *    WRITE_UNCORRECTABLE_EXT command
       *    {READ,WRITE}_DMA_EXT_GPL commands
       *    Segmented DOWNLOAD_MICROCODE
       *    Gen1 signaling speed (1.5Gb/s)
       *    Gen2 signaling speed (3.0Gb/s)
       *    Gen3 signaling speed (6.0Gb/s)
       *    Native Command Queueing (NCQ)
       *    Host-initiated interface power management
       *    Phy event counters
       *    Idle-Unload when NCQ is active
       *    Host automatic Partial to Slumber transitions
       *    Device automatic Partial to Slumber transitions
       *    READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
            DMA Setup Auto-Activate optimization
            Device-initiated interface power management
       *    Software settings preservation
       *    SMART Command Transport (SCT) feature set
       *    SCT Write Same (AC2)
       *    SCT Error Recovery Control (AC3)
       *    SCT Features Control (AC4)
       *    SCT Data Tables (AC5)
Security:
    Master password revision code = 65534
        supported
    not    enabled
    not    locked
    not    frozen
    not    expired: security count
        supported: enhanced erase
    110min for SECURITY ERASE UNIT. 110min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 50000395f4a055e3
    NAA        : 5
    IEEE OUI    : 000039
    Unique ID    : 5f4a055e3
Checksum: correct

USB3 external drive caddy goes offline after a while

I noticed that my ORICO 2588US3 Portable USB 2.5 3.0 SATA external HDD enclosure is going offline after a period of idle when connected to USB3 ports on my laptops (one runs Fedore 21, the other Fedora 23). After plugging in the drive I can read/write to it immediately after, but if left idle for a little while the device goes offline without telling the system. If an attempt is made to access a file on the external drive, the system reports that the location is not available.

This doesn't happen when it is connected to an USB2 port.

Could this be some energy saving feature in the USB3 ports that is causing this?

I'll post more info that I spot. If you would like me to execute any command and report output, please let me know.

dmesg output

[ 9448.672288] usb 2-2: new SuperSpeed USB device number 2 using xhci_hcd
[ 9448.684149] usb 2-2: New USB device found, idVendor=357d, idProduct=7788
[ 9448.684154] usb 2-2: New USB device strings: Mfr=10, Product=11, SerialNumber=3
[ 9448.684156] usb 2-2: Product: USB to ATA/ATAPI Bridge
[ 9448.684158] usb 2-2: Manufacturer: JMicron
[ 9448.684159] usb 2-2: SerialNumber: 000012345678
[ 9448.699991] usbcore: registered new interface driver usb-storage
[ 9448.703525] scsi host4: uas
[ 9448.704366] usbcore: registered new interface driver uas
[ 9448.705036] scsi 4:0:0:0: Direct-Access     TOSHIBA  MQ01XXXNNN       0100 PQ: 0 ANSI: 6
[ 9448.707804] sd 4:0:0:0: Attached scsi generic sg1 type 0
[ 9448.708435] sd 4:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[ 9448.708437] sd 4:0:0:0: [sdb] 4096-byte physical blocks
[ 9448.711541] sd 4:0:0:0: [sdb] Write Protect is off
[ 9448.711544] sd 4:0:0:0: [sdb] Mode Sense: 67 00 10 08
[ 9448.712759] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 9448.788026]  sdb: sdb1
[ 9448.794082] sd 4:0:0:0: [sdb] Attached SCSI disk
[ 9449.625260] EXT4-fs (sdb1): recovery complete
[ 9449.625390] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)

[SOLVED]

based on @archuserer's inputs, either this caddy does not support UASP or the uas driver has issues handling this product. So a quirk is registered for specific handling of this device.

backup initramfs (falback option)

sudo cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-backup.img

/etc/modprobe.d/uas.conf

options usb-storage quirks=357d:7788:u

followed by:by regeneration of initramfs:

sudo dracut -f

rebooted and plugged in the USB3 drive, need to watch a bit to see the drive stays. From dmesg:

[  157.59] usb 4-1.1: New USB device found, idVendor=357d, idProduct=7788
[  157.59] usb 4-1.1: UAS is blacklisted for this device, using usb-storage instead
[  157.59] usb-storage 4-1.1:1.0: Quirks match for vid 357d pid 7788: 800000
[  157.59] scsi host7: usb-storage 4-1.1:1.

=== Below information is probably not relevant but left for reference ===

[Update: 09-Jun-2016] Stumbled across a piece of information. This USB3 caddy and another Buffalo external USB3 drive that disconnect on Linux have the same TOSHIBA MQ01ABF050 HDD in them.

[mochapenguin@phenom2 ~]$ sudo hdparm -I /dev/sdb

    /dev/sdb:

ATA device, with non-removable media
    Model Number:       TOSHIBA MQ01ABF050                     
    Serial Number:      Z4FCW99AA
    Firmware Revision:  AM0B1J 
    Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
    Supported: 8 7 6 5
    Likely used: 8
Configuration:
    Logical        max    current
    cylinders    16383    16383
    heads        16    16
    sectors/track    63    63
    --
    CHS current addressable sectors:   16514064
    LBA    user addressable sectors:  268435455
    LBA48  user addressable sectors:  976773168
    Logical  Sector size:                   512 bytes
    Physical Sector size:                  4096 bytes
    Logical Sector-0 offset:                  0 bytes
    device size with M = 1024*1024:      476940 MBytes
    device size with M = 1000*1000:      500107 MBytes (500 GB)
    cache/buffer size  = 8192 KBytes
    Form Factor: 2.5 inch
    Nominal Media Rotation Rate: 5400
Capabilities:
    LBA, IORDY(can be disabled)
    Queue depth: 32
    Standby timer values: spec'd by Standard, no device specific minimum
    R/W multiple sector transfer: Max = 16    Current = 16
    Advanced power management level: 1
    DMA: sdma0 sdma1 sdma2 mdma0 mdma1 *mdma2 udma0 udma1 udma2 udma3 udma4 udma5
         Cycle time: min=120ns recommended=120ns
    PIO: pio0 pio1 pio2 pio3 pio4
         Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
    Enabled    Supported:
       *    SMART feature set
            Security Mode feature set
       *    Power Management feature set
       *    Write cache
       *    Look-ahead
       *    Host Protected Area feature set
       *    WRITE_BUFFER command
       *    READ_BUFFER command
       *    NOP cmd
       *    DOWNLOAD_MICROCODE
       *    Advanced Power Management feature set
            SET_MAX security extension
       *    48-bit Address feature set
       *    Device Configuration Overlay feature set
       *    Mandatory FLUSH_CACHE
       *    FLUSH_CACHE_EXT
       *    SMART error logging
       *    SMART self-test
       *    General Purpose Logging feature set
       *    WRITE_{DMA|MULTIPLE}_FUA_EXT
       *    64-bit World wide name
       *    IDLE_IMMEDIATE with UNLOAD
       *    WRITE_UNCORRECTABLE_EXT command
       *    {READ,WRITE}_DMA_EXT_GPL commands
       *    Segmented DOWNLOAD_MICROCODE
       *    Gen1 signaling speed (1.5Gb/s)
       *    Gen2 signaling speed (3.0Gb/s)
       *    Gen3 signaling speed (6.0Gb/s)
       *    Native Command Queueing (NCQ)
       *    Host-initiated interface power management
       *    Phy event counters
       *    Idle-Unload when NCQ is active
       *    Host automatic Partial to Slumber transitions
       *    Device automatic Partial to Slumber transitions
       *    READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
            DMA Setup Auto-Activate optimization
            Device-initiated interface power management
       *    Software settings preservation
       *    SMART Command Transport (SCT) feature set
       *    SCT Write Same (AC2)
       *    SCT Error Recovery Control (AC3)
       *    SCT Features Control (AC4)
       *    SCT Data Tables (AC5)
Security:
    Master password revision code = 65534
        supported
    not    enabled
    not    locked
    not    frozen
    not    expired: security count
        supported: enhanced erase
    110min for SECURITY ERASE UNIT. 110min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 50000395f4a055e3
    NAA        : 5
    IEEE OUI    : 000039
    Unique ID    : 5f4a055e3
Checksum: correct