USB3.0无法写硬盘的问题故障
Tofloor
poster avatar
呆了个呆
deepin
2020-03-14 01:12
Author
之前一直以为是电脑USB供电不足,去买了条两头供电的USB线还是无法写入。

然后觉得应该不是供电问题了,才想起来去看看日志,一看发现是uas的问题,然后网上找了篇别人的文章:
支持UAS技术的移动硬盘识别问题https://jingyan.baidu.com/article/456c463b2c40640a58314414.html


大能们,不知道这个问题是系统支持上的呢,还是说电脑硬件支持上的,但不管怎么说,如果系统能自动调整,发现使用uas不正常时能自动关闭这个功能也可以啊,总比现在这样完全不能用好不是。。。

部分日志:
3月 13 17:00:00 magicbook kernel: buffer_io_error: 1682 callbacks suppressed
3月 13 17:00:00 magicbook kernel: Buffer I/O error on dev sda3, logical block 0, lost sync page write
3月 13 17:00:00 magicbook kernel: Buffer I/O error on dev sda3, logical block 136347648, lost sync page write
3月 13 17:00:00 magicbook kernel: JBD2: Error -5 detected when updating journal superblock for sda3-8.
3月 13 17:00:00 magicbook kernel: EXT4-fs (sda3): I/O error while writing superblock
3月 13 17:00:00 magicbook kernel: EXT4-fs error (device sda3): ext4_wait_block_bitmap:511: comm kworker/u32:3: Cannot read block bitmap -
3月 13 17:00:00 magicbook kernel: Buffer I/O error on dev sda3, logical block 0, lost sync page write
3月 13 17:00:00 magicbook kernel: EXT4-fs (sda3): I/O error while writing superblock
3月 13 17:00:00 magicbook kernel: EXT4-fs error (device sda3): ext4_wait_block_bitmap:511: comm kworker/u32:3: Cannot read block bitmap -3月 13 16:58:17 magicbook kernel: sd 0:0:0:0: [sda] tag#12 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
3月 13 16:58:17 magicbook kernel: sd 0:0:0:0: [sda] tag#12 CDB: Write(10) 2a 00 c0 45 48 00 00 04 00 00
3月 13 16:58:17 magicbook kernel: print_req_error: I/O error, dev sda, sector 3225765888 flags 4001
3月 13 16:58:17 magicbook kernel: EXT4-fs warning (device sda3): ext4_end_bio:323: I/O error 10 writing to inode 30408882 (offset 0 size 8月 13 16:58:17 magicbook kernel: buffer_io_error: 1014 callbacks suppressed
3月 13 16:58:17 magicbook kernel: Buffer I/O error on device sda3, logical block 189310464
3月 13 16:58:17 magicbook kernel: Buffer I/O error on device sda3, logical block 189310465
3月 13 16:58:17 magicbook kernel: Buffer I/O error on device sda3, logical block 189310466
3月 13 16:58:17 magicbook kernel: Buffer I/O error on device sda3, logical block 189310467
3月 13 16:58:17 magicbook kernel: Buffer I/O error on device sda3, logical block 189310468
3月 13 16:58:17 magicbook kernel: Buffer I/O error on device sda3, logical block 189310469
3月 13 16:58:17 magicbook kernel: Buffer I/O error on device sda3, logical block 189310470
3月 13 16:58:17 magicbook kernel: Buffer I/O error on device sda3, logical block 189310471
3月 13 16:58:17 magicbook kernel: Buffer I/O error on device sda3, logical block 189310472
3月 13 16:58:17 magicbook kernel: Buffer I/O error on device sda3, logical block 189310473
3月 13 16:58:41 magicbook kernel: INFO: task sync:16782 blocked for more than 120 seconds.
3月 13 16:58:41 magicbook kernel:       Tainted: P        W  OE     5.0.0-13-generic #18
3月 13 16:58:41 magicbook kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
3月 13 16:58:41 magicbook kernel: sync            D    0 16782  18123 0x00000004
3月 13 16:58:41 magicbook kernel: Call Trace:
3月 13 16:58:41 magicbook kernel:  __schedule+0x3f9/0x870
3月 13 16:58:41 magicbook kernel:  ? _raw_spin_unlock_bh+0x1e/0x20
3月 13 16:58:41 magicbook kernel:  schedule+0x36/0x70
3月 13 16:58:41 magicbook kernel:  wb_wait_for_completion+0x64/0x90
3月 13 16:58:41 magicbook kernel:  ? wait_woken+0x80/0x80
3月 13 16:58:41 magicbook kernel:  sync_inodes_sb+0xbc/0x2a0
3月 13 16:58:41 magicbook kernel:  sync_inodes_one_sb+0x15/0x20
3月 13 16:58:41 magicbook kernel:  iterate_supers+0xbf/0x110
3月 13 16:58:41 magicbook kernel:  ? default_file_splice_write+0x30/0x30
3月 13 16:58:41 magicbook kernel:  ksys_sync+0x42/0xb0
3月 13 16:58:41 magicbook kernel:  __ia32_sys_sync+0xe/0x20
3月 13 16:58:41 magicbook kernel:  do_syscall_64+0x5a/0x110
3月 13 16:58:41 magicbook kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
3月 13 16:58:41 magicbook kernel: RIP: 0033:0x7f55fb01d287
3月 13 16:58:41 magicbook kernel: Code: Bad RIP value.
3月 13 16:58:41 magicbook kernel: RSP: 002b:00007fff6d27bd18 EFLAGS: 00000206 ORIG_RAX: 00000000000000a2
3月 13 16:58:41 magicbook kernel: RAX: ffffffffffffffda RBX: 00007fff6d27be48 RCX: 00007f55fb01d287
3月 13 16:58:41 magicbook kernel: RDX: 00007f55fb0ea001 RSI: 0000000000000000 RDI: 00007f55fb0aeb40
3月 13 16:58:41 magicbook kernel: RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
3月 13 16:58:41 magicbook kernel: R10: fffffffffffffbe3 R11: 0000000000000206 R12: 0000000000000001
3月 13 16:58:41 magicbook kernel: R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
3月 13 16:58:48 magicbook kernel: sd 0:0:0:0: [sda] tag#18 uas_eh_abort_handler 0 uas-tag 11 inflight: CMD OUT
3月 13 16:58:48 magicbook kernel: sd 0:0:0:0: [sda] tag#18 CDB: Write(10) 2a 00 c0 45 c4 00 00 04 00 00
3月 13 16:58:54 magicbook kernel: sd 0:0:0:0: [sda] tag#8 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT
3月 13 16:58:54 magicbook kernel: sd 0:0:0:0: [sda] tag#8 CDB: Write(10) 2a 00 c0 45 c8 00 00 04 00 00
3月 13 16:59:01 magicbook kernel: sd 0:0:0:0: [sda] tag#9 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT
3月 13 16:59:01 magicbook kernel: sd 0:0:0:0: [sda] tag#9 CDB: Write(10) 2a 00 c0 45 cc 00 00 04 00 00
3月 13 16:59:08 magicbook kernel: sd 0:0:0:0: [sda] tag#10 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD OUT
3月 13 16:59:08 magicbook kernel: sd 0:0:0:0: [sda] tag#10 CDB: Write(10) 2a 00 c0 45 d0 00 00 04 00 00
3月 13 16:59:15 magicbook kernel: sd 0:0:0:0: [sda] tag#11 uas_eh_abort_handler 0 uas-tag 4 inflight: CMD OUT
3月 13 16:59:15 magicbook kernel: sd 0:0:0:0: [sda] tag#11 CDB: Write(10) 2a 00 c0 45 d4 00 00 04 00 00
3月 13 16:59:15 magicbook kernel: scsi host0: uas_eh_device_reset_handler start
3月 13 16:59:15 magicbook kernel: sd 0:0:0:0: [sda] tag#16 uas_zap_pending 0 uas-tag 9 inflight: CMD
3月 13 16:59:15 magicbook kernel: sd 0:0:0:0: [sda] tag#16 CDB: Write(10) 2a 00 c0 45 ac 00 00 04 00 00
3月 13 16:59:15 magicbook kernel: sd 0:0:0:0: [sda] tag#17 uas_zap_pending 0 uas-tag 10 inflight: CMD
3月 13 16:59:15 magicbook kernel: sd 0:0:0:0: [sda] tag#17 CDB: Write(10) 2a 00 c0 45 b0 00 00 04 00 00
3月 13 16:59:15 magicbook kernel: usb 2-3: reset SuperSpeed Gen 1 USB device number 4 using xhci_hcd
3月 13 16:59:15 magicbook kernel: scsi host0: uas_eh_device_reset_handler success
3月 13 16:59:52 magicbook kernel: sd 0:0:0:0: [sda] tag#19 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD OUT
3月 13 16:59:52 magicbook kernel: sd 0:0:0:0: [sda] tag#19 CDB: Write(10) 2a 00 c0 45 d8 00 00 04 00 00
3月 13 16:59:59 magicbook kernel: sd 0:0:0:0: [sda] tag#16 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD OUT
3月 13 16:59:59 magicbook kernel: sd 0:0:0:0: [sda] tag#16 CDB: Write(10) 2a 00 c0 45 dc 00 00 04 00 00
3月 13 16:59:59 magicbook kernel: sd 0:0:0:0: [sda] tag#21 data cmplt err -71 uas-tag 6 inflight: CMD
3月 13 16:59:59 magicbook kernel: sd 0:0:0:0: [sda] tag#21 CDB: Write(10) 2a 00 c0 45 b0 00 00 04 00 00
3月 13 16:59:59 magicbook kernel: xhci_hcd 0000:03:00.3: WARN Event TRB for slot 2 ep 19 with no TDs queued?
3月 13 16:59:59 magicbook kernel: scsi host0: uas_pre_reset: timed out
3月 13 16:59:59 magicbook kernel: xhci_hcd 0000:03:00.3: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
3月 13 16:59:59 magicbook kernel: sd 0:0:0:0: [sda] tag#17 uas_zap_pending 0 uas-tag 3 inflight: CMD
3月 13 16:59:59 magicbook kernel: sd 0:0:0:0: [sda] tag#17 CDB: Write(10) 2a 00 c0 45 e0 00 00 04 00 00
3月 13 16:59:59 magicbook kernel: sd 0:0:0:0: [sda] tag#18 uas_zap_pending 0 uas-tag 4 inflight: CMD
3月 13 16:59:59 magicbook kernel: sd 0:0:0:0: [sda] tag#18 CDB: Write(10) 2a 00 c0 45 e4 00 00 04 00 00




Reply Favorite View the author
All Replies
呆了个呆
deepin
2020-03-14 02:26
#1
我已经参照下面这个地址临时解决了,对速度有多大的影响不知道,至少现在能用了不是。

要注意的是,这个地址上那个大神说的加选项那里要把 option 改为 options。
我之前就照着写成了option,结果一直无法生效,后来无意发现这个错误

https://forum.ubuntu.org.cn/viewtopic.php?p=3217858
Reply View the author
呆了个呆
deepin
2020-03-14 02:28
#2
我把大神说的也转发一下吧,以前遇到过留个链接结果失效了的问题:

既然你不用uas模块,就直接把这个模块加入黑名单就行了
编辑/etc/modprobe.d/下面的blacklist.conf或自己新建一个.conf文件,加入一行

  1. blacklist uas
Copy the Code


usb_storage这个模块的加载参数也可以直接写到配置里,用不着你先卸载再加载
同样是编辑/新建一个.conf文件

  1. options usb_storage quirks=174c:55aa:u,152d:0578:u
Copy the Code
Reply View the author
呆了个呆
deepin
2020-03-14 02:30
#3
因为我的硬盘ID是:0bc2:ab21

所以我新建了个配置文件/etc/modprobe.d/magicbookpro.conf,写入:
  1. blacklist uas

  2. #Seagate RSS LLC Backup Plus Slim
  3. #2T USB3.0 硬盘写入速度过快就卡死的问题
  4. options usb_storage quirks=0bc2:ab21:u
Copy the Code
Reply View the author