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

USB HDD issue with buster-backports kernel



Hello,

I recently upgraded to the buster-backports kernel (5.5.17). After this upgrade I needed to prepare an external HDD (WD Elements 2TB) for encryption and so I used the "write zeroes to a plain crypto container" approach:

# cryptsetup open --type plain -d /dev/urandom /dev/sde1 to_be_wiped
# dd if=/dev/zero of=/dev/mapper/to_be_wiped bs=64K status=progress

I verified that the container was properly aligned. I had drastically different results on the 5.5 kernel versus the buster 4.19 kernel:

* On the 4.19 kernel, I was getting throughput between 30MB/sec and 50MB/sec. The operation completed successfully.

* On the 5.5 kernel, I was getting throughput between 10MB/sec and 20MB/sec. At apparently random points, dd would stop reporting any progress and a "usb-storage" process in top would be consuming 100% CPU. Any commands against the HDD (even smartctl) would hang until the device was physically replugged.

Since everything seems to work fine on 4.19 I do not suspect any issues with the drive itself. It seems there is some problem with the 5.5 kernel? What can I do to further troubleshoot this?

---------- lsusb ----------
Bus 005 Device 002: ID 8087:8000 Intel Corp.
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 003: ID 1058:25a2 Western Digital Technologies, Inc. Elements 25A2 Bus 004 Device 002: ID 1058:25a2 Western Digital Technologies, Inc. Elements 25A2
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 1058:1042 Western Digital Technologies, Inc. Elements SE Portable (WDBPCK)
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
---------------------------

The device in question is device 2 on bus 4.

Buster kernel uname:

Linux liz 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux

Buster-backports kernel uname:

Linux liz 5.5.0-0.bpo.2-amd64 #1 SMP Debian 5.5.17-1~bpo10+1 (2020-04-23) x86_64 GNU/Linux

--
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers

If you correspond with me on a regular basis, please read this document: http://www.chrishowie.com/email-preferences/

PGP fingerprint: 2B7A B280 8B12 21CC 260A DF65 6FCE 505A CF83 38F5

------------------------------------------------------------------------
                    IMPORTANT INFORMATION/DISCLAIMER

This document should be read only by those persons to whom it is addressed. If you have received this message it was obviously addressed to you and therefore you can read it.

Additionally, by sending an email to ANY of my addresses or to ANY mailing lists to which I am subscribed, whether intentionally or accidentally, you are agreeing that I am "the intended recipient," and that I may do whatever I wish with the contents of any message received from you, unless a pre-existing agreement prohibits me from so doing.

This overrides any disclaimer or statement of confidentiality that may be included on your message.


Reply to: