DaRk_St0rM
Posts: 33
Joined: Sat Feb 14, 2015 9:43 pm

USB HDD crashing with Transmission

Fri Aug 04, 2017 5:59 pm

This thing really has me puzzled.I upgraded my Pi 2 to a 3 because of random problems when using Transmission with Raspbian and USB disks, after having being using a couple of them with the same 2.5" enclosure (originally from a Toshiba external drive), I was having trouble with an external-powered 3.5" and a Seagate 2.5" 4 TB one I bought recently.I was thinking of buying a Pi 3 soon anyway so I just went ahead.
I'm using a 2.4A charger which I bought recently and pretty much hadn't been used until I started using it for the Pi, and as far as I know it works fine.The disks work perfectly in both my laptop and desktop with Windows 10 and several GNU/Linux distros.I use an USB Wi-Fi adapter on the Pi.

I originally had problems in the Pi 2 with the 3.5" one, formatted in exFAT, both with FUSE and the native driver, and I bought the 2.5" one after buying the Pi 3, had problems with them both (that one has an exFAT partition and an ext4 one).After setting

Code: Select all

max_usb_current
to 1 I did some tests and it seemed the problems were gone, and in fact I've been using the 3.5" one until today when it became full, so I switched to the other one.
I was inclined to think that the USB bus was having some power problems or something, but today I was able to write ~40 GB that I wanted to transfer to the new drive from the old one from Windows using Samba via Ethernet, at 11 MB/s, and the Ethernet adapter is connected to the USB hub after all.However, right after that I fired up Transmission and left something downloading.With my connection the maximum speed I can reach is about 7 MB/s but in this case it was downloading at 400 KB/s at most, and a couple of hours later I find the filesystem remounted R/O and dmesg flooded with stuff like:

Code: Select all

[18798.601181] usb 1-1.4: reset high-speed USB device number 5 using dwc_otg
[18798.671397] INFO: task jbd2/sda2-8:490 blocked for more than 120 seconds.
[18798.671573]       Tainted: G           O    4.9.40-1-ARCH #1
[18798.671697] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[18798.671868] jbd2/sda2-8     D    0   490      2 0x00000000
[18798.672028] [<809bbc78>] (__schedule) from [<809bc2d0>] (schedule+0x3c/0xa0)
[18798.672194] [<809bc2d0>] (schedule) from [<809bf4ac>] (schedule_timeout+0x230/0x38c)
[18798.672375] [<809bf4ac>] (schedule_timeout) from [<809bb9a8>] (io_schedule_timeout+0xb0/0x130)
[18798.672570] [<809bb9a8>] (io_schedule_timeout) from [<809bcbb8>] (bit_wait_io+0x10/0x58)
[18798.681533] [<809bcbb8>] (bit_wait_io) from [<809bc794>] (__wait_on_bit+0x60/0xb8)
[18798.690758] [<809bc794>] (__wait_on_bit) from [<809bc910>] (out_of_line_wait_on_bit+0x78/0x9c)
[18798.700108] [<809bc910>] (out_of_line_wait_on_bit) from [<803902b0>] (jbd2_journal_commit_transaction+0xfb0/0x1824)
[18798.709398] [<803902b0>] (jbd2_journal_commit_transaction) from [<80395cbc>] (kjournald2+0xc8/0x2cc)
[18798.718627] [<80395cbc>] (kjournald2) from [<80149690>] (kthread+0x104/0x118)
[18798.723226] [<80149690>] (kthread) from [<80107b28>] (ret_from_fork+0x14/0x2c)
[18798.727663] INFO: task transmission-da:1395 blocked for more than 120 seconds.
I really can't understand it, as I said I've used two 2.5" disks in the past, both ext4 formatted, and filled them both downloading with Transmission, this is getting quite frustrating as it's the main thing I use my Pi for.

User avatar
DougieLawson
Posts: 39813
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: USB HDD crashing with Transmission

Fri Aug 04, 2017 6:03 pm

Have you done any tests to see whether there's a hardware failure on that HDD?
Do you have an adequate (3.5A) power supply to run your RPi and your HDD?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

DaRk_St0rM
Posts: 33
Joined: Sat Feb 14, 2015 9:43 pm

Re: USB HDD crashing with Transmission

Fri Aug 04, 2017 6:16 pm

DougieLawson wrote:
Fri Aug 04, 2017 6:03 pm
Have you done any tests to see whether there's a hardware failure on that HDD?
Do you have an adequate (3.5A) power supply to run your RPi and your HDD?
Yes, the HDD is definitely fine.
I thought 2.5 was recommended for the Pi 3? I'm using a 2.4A power supply.

User avatar
DougieLawson
Posts: 39813
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: USB HDD crashing with Transmission

Fri Aug 04, 2017 6:22 pm

My three RPis with WD PiDrives all run with the WD 3.5A power supply. They still get a lightning bolt during boot up just as the HDD spins up.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

julyjim
Posts: 117
Joined: Tue Jan 31, 2017 5:04 am

Re: USB HDD crashing with Transmission

Sat Aug 05, 2017 1:12 am

Use lsusb -v and verify "max current" on your HDD . Use it as a guide.
ON RPi 3 B each USB port spec is 100 mA .
Unless things changed over years HDD spin all the time, but do not start same time , and USB
packages are passed on time shared basis - there should not be power issue there.

User avatar
DougieLawson
Posts: 39813
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: USB HDD crashing with Transmission

Sat Aug 05, 2017 9:15 am

julyjim wrote:
Sat Aug 05, 2017 1:12 am
ON RPi 3 B each USB port spec is 100 mA 500mA (max 1200mA across all four).
FTFY, you're welcome.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

DaRk_St0rM
Posts: 33
Joined: Sat Feb 14, 2015 9:43 pm

Re: USB HDD crashing with Transmission

Sat Aug 05, 2017 12:08 pm

It says MaxPower is 500mA for both the HDD and the Wi-Fi adapter.

Return to “Troubleshooting”