External USB3 HDD spinning up 3 times at boot with UAS blacklisted for this deviceConnection problem with...

Flying pigs arrive

How to count the number of function evaluations in NIntegrate

How could artificial intelligence harm us?

As a discovery writer, how to complete unfinished novel (which is highly diverted from original plot ) after a time-gap

Floating Point XOR

Who are the people reviewing far more papers than they're submitting for review?

Is a global DNS record a security risk for phpMyAdmin?

What are sources for Magic Items that are not adventure-specific?

How to influence manager to not schedule team meetings during lunch?

Why was Java 8 left out from Debian Buster?

Algorithm for competing cells of 0s and 1s

US entry with tourist visa but past alcohol abuse

Make Interviewee Comfortable in Potentially Intimate Environment

Are lay articles good enough to be the main source of information for PhD research?

Microservices and Stored Procedures

Debussy as term for bathroom?

Should the pagination be reset when changing the order?

Should I inform my future product owner that there is a good chance that a team member will leave the company soon?

Delete empty subfolders, keep parent folder

Manager manipulates my leaves, what's in it for him?

Does battery condition have anything to do with macbook pro performance?

How is underwater propagation of sound possible?

Why are there two bearded faces wearing red hats on my stealth bomber icon?

rule-based deletions from string list



External USB3 HDD spinning up 3 times at boot with UAS blacklisted for this device


Connection problem with USB3 external storage on Linux (UAS driver problem)External drive not being recognizedPrevent USB storage from using different device on resetcan I use 2 mount points for 2 partitions from external HDD?Connection problem with USB3 external storage on Linux (UAS driver problem)Buffer I/O error on device - SSD in SATA3 external case connected over USB3Debian + USB3 HDD + UAS: I/O errorsHow to boot from external HDD?How to find boot record of external HDD






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















Just like in this question:



Connection problem with USB3 external storage on Linux (UAS driver problem)



dmesg reports too many errors like (excerpt from that question):



[   68.856381] scsi host6: uas_eh_bus_reset_handler start
[ 68.968376] usb 2-2: reset SuperSpeed USB device number 2 using xhci_hcd
[ 68.989825] scsi host6: uas_eh_bus_reset_handler success
[ 99.881608] sd 6:0:0:0: [sdd] tag#12 uas_eh_abort_handler 0 uas-tag 13 inflight: CMD OUT
[ 99.881618] sd 6:0:0:0: [sdd] tag#12 CDB: Write(16) 8a 00 00 00 00 00 e8 c4 08 00 00 00 00 08 00 00
[ 99.881856] sd 6:0:0:0: [sdd] tag#5 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD OUT
[ 99.881861] sd 6:0:0:0: [sdd] tag#5 CDB: Write(16) 8a 00 00 00 00 00 cd 01 08 f0 00 00 00 10 00 00
[ 99.881967] sd 6:0:0:0: [sdd] tag#4 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD OUT
[ 99.881972] sd 6:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 cd 01 08 00 00 00 00 f0 00 00




So, I did blacklist my Lacie 2TB external HDD from UAS with:



# echo options usb-storage quirks=059f:1090:u | tee /etc/modprobe.d/blacklist_uas.conf


Updated initramfs and rebooted.



During the boot, I heard the external HDD spinning up 3 times, which I don't think is good for health of the drive. My current dmesg output, the relevant parts only, cut into 3 parts:



# dmesg --human --color=always --ctime | grep -ie sd -ie uas

[Wed Sep 18 03:27:59 2019] usb 2-2: UAS is blacklisted for this device, using usb-storage instead
[Wed Sep 18 03:27:59 2019] usbcore: registered new interface driver uas
[Wed Sep 18 03:28:00 2019] sd 2:0:0:0: Attached scsi generic sg1 type 0
[Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Write Protect is off
[Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
[Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[Wed Sep 18 03:28:00 2019] sdb: sdb1
[Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Attached SCSI disk
[Wed Sep 18 03:28:07 2019] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
[Wed Sep 18 03:28:07 2019] sd 2:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK

[Wed Sep 18 03:28:13 2019] usb 2-2: UAS is blacklisted for this device, using usb-storage instead
[Wed Sep 18 03:28:14 2019] sd 2:0:0:0: Attached scsi generic sg1 type 0
[Wed Sep 18 03:28:14 2019] sd 2:0:0:0: [sdb] Spinning up disk...
[Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Sense not available.
[Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
[Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] 0-byte physical blocks
[Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Write Protect is off
[Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Mode Sense: 00 00 00 00
[Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Asking for cache data failed
[Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Sense not available.
[Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Attached SCSI disk

[Wed Sep 18 03:28:18 2019] usb 2-2: UAS is blacklisted for this device, using usb-storage instead
[Wed Sep 18 03:28:19 2019] sd 2:0:0:0: Attached scsi generic sg1 type 0
[Wed Sep 18 03:28:19 2019] sd 2:0:0:0: [sdb] Spinning up disk...
[Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Write Protect is off
[Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
[Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[Wed Sep 18 03:28:21 2019] sdb: sdb1
[Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Attached SCSI disk




Finally, let me be clear on that the drive only spins up 3 times during boot, not when connecting it after boot.





Kernel: 4.15.0-62, I did not try other kernels just yet.





Is there a way to prevent those spin-ups?





Interestingly, with kernel 4.19.0-6-amd64 on a completely different machine, this does not happen...



[Wed Sep 18 04:16:18 2019] usb 2-6: UAS is blacklisted for this device, using usb-storage instead
[Wed Sep 18 04:16:18 2019] usbcore: registered new interface driver uas
[Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Write Protect is off
[Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Mode Sense: 43 00 00 00
[Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[Wed Sep 18 04:16:19 2019] sdc: sdc1
[Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Attached SCSI disk









share|improve this question

































    1















    Just like in this question:



    Connection problem with USB3 external storage on Linux (UAS driver problem)



    dmesg reports too many errors like (excerpt from that question):



    [   68.856381] scsi host6: uas_eh_bus_reset_handler start
    [ 68.968376] usb 2-2: reset SuperSpeed USB device number 2 using xhci_hcd
    [ 68.989825] scsi host6: uas_eh_bus_reset_handler success
    [ 99.881608] sd 6:0:0:0: [sdd] tag#12 uas_eh_abort_handler 0 uas-tag 13 inflight: CMD OUT
    [ 99.881618] sd 6:0:0:0: [sdd] tag#12 CDB: Write(16) 8a 00 00 00 00 00 e8 c4 08 00 00 00 00 08 00 00
    [ 99.881856] sd 6:0:0:0: [sdd] tag#5 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD OUT
    [ 99.881861] sd 6:0:0:0: [sdd] tag#5 CDB: Write(16) 8a 00 00 00 00 00 cd 01 08 f0 00 00 00 10 00 00
    [ 99.881967] sd 6:0:0:0: [sdd] tag#4 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD OUT
    [ 99.881972] sd 6:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 cd 01 08 00 00 00 00 f0 00 00




    So, I did blacklist my Lacie 2TB external HDD from UAS with:



    # echo options usb-storage quirks=059f:1090:u | tee /etc/modprobe.d/blacklist_uas.conf


    Updated initramfs and rebooted.



    During the boot, I heard the external HDD spinning up 3 times, which I don't think is good for health of the drive. My current dmesg output, the relevant parts only, cut into 3 parts:



    # dmesg --human --color=always --ctime | grep -ie sd -ie uas

    [Wed Sep 18 03:27:59 2019] usb 2-2: UAS is blacklisted for this device, using usb-storage instead
    [Wed Sep 18 03:27:59 2019] usbcore: registered new interface driver uas
    [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: Attached scsi generic sg1 type 0
    [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
    [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Write Protect is off
    [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
    [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [Wed Sep 18 03:28:00 2019] sdb: sdb1
    [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Attached SCSI disk
    [Wed Sep 18 03:28:07 2019] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
    [Wed Sep 18 03:28:07 2019] sd 2:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK

    [Wed Sep 18 03:28:13 2019] usb 2-2: UAS is blacklisted for this device, using usb-storage instead
    [Wed Sep 18 03:28:14 2019] sd 2:0:0:0: Attached scsi generic sg1 type 0
    [Wed Sep 18 03:28:14 2019] sd 2:0:0:0: [sdb] Spinning up disk...
    [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
    [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Sense not available.
    [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
    [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] 0-byte physical blocks
    [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Write Protect is off
    [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Mode Sense: 00 00 00 00
    [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Asking for cache data failed
    [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Assuming drive cache: write through
    [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
    [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Sense not available.
    [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Attached SCSI disk

    [Wed Sep 18 03:28:18 2019] usb 2-2: UAS is blacklisted for this device, using usb-storage instead
    [Wed Sep 18 03:28:19 2019] sd 2:0:0:0: Attached scsi generic sg1 type 0
    [Wed Sep 18 03:28:19 2019] sd 2:0:0:0: [sdb] Spinning up disk...
    [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
    [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Write Protect is off
    [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
    [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [Wed Sep 18 03:28:21 2019] sdb: sdb1
    [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Attached SCSI disk




    Finally, let me be clear on that the drive only spins up 3 times during boot, not when connecting it after boot.





    Kernel: 4.15.0-62, I did not try other kernels just yet.





    Is there a way to prevent those spin-ups?





    Interestingly, with kernel 4.19.0-6-amd64 on a completely different machine, this does not happen...



    [Wed Sep 18 04:16:18 2019] usb 2-6: UAS is blacklisted for this device, using usb-storage instead
    [Wed Sep 18 04:16:18 2019] usbcore: registered new interface driver uas
    [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
    [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Write Protect is off
    [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Mode Sense: 43 00 00 00
    [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
    [Wed Sep 18 04:16:19 2019] sdc: sdc1
    [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Attached SCSI disk









    share|improve this question





























      1












      1








      1








      Just like in this question:



      Connection problem with USB3 external storage on Linux (UAS driver problem)



      dmesg reports too many errors like (excerpt from that question):



      [   68.856381] scsi host6: uas_eh_bus_reset_handler start
      [ 68.968376] usb 2-2: reset SuperSpeed USB device number 2 using xhci_hcd
      [ 68.989825] scsi host6: uas_eh_bus_reset_handler success
      [ 99.881608] sd 6:0:0:0: [sdd] tag#12 uas_eh_abort_handler 0 uas-tag 13 inflight: CMD OUT
      [ 99.881618] sd 6:0:0:0: [sdd] tag#12 CDB: Write(16) 8a 00 00 00 00 00 e8 c4 08 00 00 00 00 08 00 00
      [ 99.881856] sd 6:0:0:0: [sdd] tag#5 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD OUT
      [ 99.881861] sd 6:0:0:0: [sdd] tag#5 CDB: Write(16) 8a 00 00 00 00 00 cd 01 08 f0 00 00 00 10 00 00
      [ 99.881967] sd 6:0:0:0: [sdd] tag#4 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD OUT
      [ 99.881972] sd 6:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 cd 01 08 00 00 00 00 f0 00 00




      So, I did blacklist my Lacie 2TB external HDD from UAS with:



      # echo options usb-storage quirks=059f:1090:u | tee /etc/modprobe.d/blacklist_uas.conf


      Updated initramfs and rebooted.



      During the boot, I heard the external HDD spinning up 3 times, which I don't think is good for health of the drive. My current dmesg output, the relevant parts only, cut into 3 parts:



      # dmesg --human --color=always --ctime | grep -ie sd -ie uas

      [Wed Sep 18 03:27:59 2019] usb 2-2: UAS is blacklisted for this device, using usb-storage instead
      [Wed Sep 18 03:27:59 2019] usbcore: registered new interface driver uas
      [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: Attached scsi generic sg1 type 0
      [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
      [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Write Protect is off
      [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
      [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
      [Wed Sep 18 03:28:00 2019] sdb: sdb1
      [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Attached SCSI disk
      [Wed Sep 18 03:28:07 2019] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
      [Wed Sep 18 03:28:07 2019] sd 2:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK

      [Wed Sep 18 03:28:13 2019] usb 2-2: UAS is blacklisted for this device, using usb-storage instead
      [Wed Sep 18 03:28:14 2019] sd 2:0:0:0: Attached scsi generic sg1 type 0
      [Wed Sep 18 03:28:14 2019] sd 2:0:0:0: [sdb] Spinning up disk...
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Sense not available.
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] 0-byte physical blocks
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Write Protect is off
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Mode Sense: 00 00 00 00
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Asking for cache data failed
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Assuming drive cache: write through
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Sense not available.
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Attached SCSI disk

      [Wed Sep 18 03:28:18 2019] usb 2-2: UAS is blacklisted for this device, using usb-storage instead
      [Wed Sep 18 03:28:19 2019] sd 2:0:0:0: Attached scsi generic sg1 type 0
      [Wed Sep 18 03:28:19 2019] sd 2:0:0:0: [sdb] Spinning up disk...
      [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
      [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Write Protect is off
      [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
      [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
      [Wed Sep 18 03:28:21 2019] sdb: sdb1
      [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Attached SCSI disk




      Finally, let me be clear on that the drive only spins up 3 times during boot, not when connecting it after boot.





      Kernel: 4.15.0-62, I did not try other kernels just yet.





      Is there a way to prevent those spin-ups?





      Interestingly, with kernel 4.19.0-6-amd64 on a completely different machine, this does not happen...



      [Wed Sep 18 04:16:18 2019] usb 2-6: UAS is blacklisted for this device, using usb-storage instead
      [Wed Sep 18 04:16:18 2019] usbcore: registered new interface driver uas
      [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
      [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Write Protect is off
      [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Mode Sense: 43 00 00 00
      [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
      [Wed Sep 18 04:16:19 2019] sdc: sdc1
      [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Attached SCSI disk









      share|improve this question
















      Just like in this question:



      Connection problem with USB3 external storage on Linux (UAS driver problem)



      dmesg reports too many errors like (excerpt from that question):



      [   68.856381] scsi host6: uas_eh_bus_reset_handler start
      [ 68.968376] usb 2-2: reset SuperSpeed USB device number 2 using xhci_hcd
      [ 68.989825] scsi host6: uas_eh_bus_reset_handler success
      [ 99.881608] sd 6:0:0:0: [sdd] tag#12 uas_eh_abort_handler 0 uas-tag 13 inflight: CMD OUT
      [ 99.881618] sd 6:0:0:0: [sdd] tag#12 CDB: Write(16) 8a 00 00 00 00 00 e8 c4 08 00 00 00 00 08 00 00
      [ 99.881856] sd 6:0:0:0: [sdd] tag#5 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD OUT
      [ 99.881861] sd 6:0:0:0: [sdd] tag#5 CDB: Write(16) 8a 00 00 00 00 00 cd 01 08 f0 00 00 00 10 00 00
      [ 99.881967] sd 6:0:0:0: [sdd] tag#4 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD OUT
      [ 99.881972] sd 6:0:0:0: [sdd] tag#4 CDB: Write(16) 8a 00 00 00 00 00 cd 01 08 00 00 00 00 f0 00 00




      So, I did blacklist my Lacie 2TB external HDD from UAS with:



      # echo options usb-storage quirks=059f:1090:u | tee /etc/modprobe.d/blacklist_uas.conf


      Updated initramfs and rebooted.



      During the boot, I heard the external HDD spinning up 3 times, which I don't think is good for health of the drive. My current dmesg output, the relevant parts only, cut into 3 parts:



      # dmesg --human --color=always --ctime | grep -ie sd -ie uas

      [Wed Sep 18 03:27:59 2019] usb 2-2: UAS is blacklisted for this device, using usb-storage instead
      [Wed Sep 18 03:27:59 2019] usbcore: registered new interface driver uas
      [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: Attached scsi generic sg1 type 0
      [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
      [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Write Protect is off
      [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
      [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
      [Wed Sep 18 03:28:00 2019] sdb: sdb1
      [Wed Sep 18 03:28:00 2019] sd 2:0:0:0: [sdb] Attached SCSI disk
      [Wed Sep 18 03:28:07 2019] sd 2:0:0:0: [sdb] Synchronizing SCSI cache
      [Wed Sep 18 03:28:07 2019] sd 2:0:0:0: [sdb] Synchronize Cache(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK

      [Wed Sep 18 03:28:13 2019] usb 2-2: UAS is blacklisted for this device, using usb-storage instead
      [Wed Sep 18 03:28:14 2019] sd 2:0:0:0: Attached scsi generic sg1 type 0
      [Wed Sep 18 03:28:14 2019] sd 2:0:0:0: [sdb] Spinning up disk...
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Sense not available.
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] 0 512-byte logical blocks: (0 B/0 B)
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] 0-byte physical blocks
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Write Protect is off
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Mode Sense: 00 00 00 00
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Asking for cache data failed
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Assuming drive cache: write through
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Read Capacity(10) failed: Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Sense not available.
      [Wed Sep 18 03:28:17 2019] sd 2:0:0:0: [sdb] Attached SCSI disk

      [Wed Sep 18 03:28:18 2019] usb 2-2: UAS is blacklisted for this device, using usb-storage instead
      [Wed Sep 18 03:28:19 2019] sd 2:0:0:0: Attached scsi generic sg1 type 0
      [Wed Sep 18 03:28:19 2019] sd 2:0:0:0: [sdb] Spinning up disk...
      [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
      [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Write Protect is off
      [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Mode Sense: 43 00 00 00
      [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
      [Wed Sep 18 03:28:21 2019] sdb: sdb1
      [Wed Sep 18 03:28:21 2019] sd 2:0:0:0: [sdb] Attached SCSI disk




      Finally, let me be clear on that the drive only spins up 3 times during boot, not when connecting it after boot.





      Kernel: 4.15.0-62, I did not try other kernels just yet.





      Is there a way to prevent those spin-ups?





      Interestingly, with kernel 4.19.0-6-amd64 on a completely different machine, this does not happen...



      [Wed Sep 18 04:16:18 2019] usb 2-6: UAS is blacklisted for this device, using usb-storage instead
      [Wed Sep 18 04:16:18 2019] usbcore: registered new interface driver uas
      [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
      [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Write Protect is off
      [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Mode Sense: 43 00 00 00
      [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
      [Wed Sep 18 04:16:19 2019] sdc: sdc1
      [Wed Sep 18 04:16:19 2019] sd 14:0:0:0: [sdc] Attached SCSI disk






      kernel-modules usb-drive external-hdd






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 37 mins ago







      LinuxSecurityFreak

















      asked 50 mins ago









      LinuxSecurityFreakLinuxSecurityFreak

      9,31320 gold badges81 silver badges173 bronze badges




      9,31320 gold badges81 silver badges173 bronze badges

























          0






          active

          oldest

          votes














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });















          draft saved

          draft discarded
















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f542354%2fexternal-usb3-hdd-spinning-up-3-times-at-boot-with-uas-blacklisted-for-this-devi%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes

















          draft saved

          draft discarded



















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f542354%2fexternal-usb3-hdd-spinning-up-3-times-at-boot-with-uas-blacklisted-for-this-devi%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m