LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 10-09-2013, 09:08 PM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 242

Rep: Reputation: 37
external USB drive write rate


Hi, I have problems where my raspberry Pi freezes when downloading a torrent file. Setup:
  • Raspberry Pi model B running pidora
  • 1TB USB HDD connected via powered USB hub
  • LAN connection
  • torrent client is transmission

When I download a file which is reasonably sized (say 1GB) and the download speed is around +1mB/s the Pi grinds to a halt - you can't access the Pi at all and a reboot is required. I thought this was an ethernet thing but now I am looking at the hard drive.

What I notice is that when the Pi freezes, the light on the HDD is still active. I also notice that in the case of a freeze, a file which was 50% downloaded is only (eg.) 30% downloaded after I restart the Pi.

So I tried an experiment: reboot the Pi and kick off transmission. I watch the file download from (eg.) 20% to 40% and kill transmission (File->quit). When I restart transmission the download percentage of the file is below the 40% example mentioned.

So I wonder whether my ageing HDD is struggling or whether the Pi itself can not cope with the transfer from ethernet to HDD. I got an lsusb snapshot from the HDD. Interested in any thoughts.

Thanks

Quote:
Bus 001 Device 006: ID 0bc2:3300 Seagate RSS LLC
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0bc2 Seagate RSS LLC
idProduct 0x3300
bcdDevice 1.30
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 2mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
 
Old 10-10-2013, 12:10 AM   #2
evo2
Senior Member
 
Registered: Jan 2009
Location: Japan
Distribution: Debian
Posts: 4,821

Rep: Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022
Hi,

have you considered testing this by disconnecting the external drive and writing directly to the SD card?

Evo2.
 
1 members found this post helpful.
Old 10-10-2013, 11:26 PM   #3
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 242

Original Poster
Rep: Reputation: 37
Hmmm, I have to admit I did not consider this due to the amount of data stored on the hard drive. Let me have a think about how this could work. I'll have to see if I can configure the torrent client to download from one location (SD card) and upload from another (hard drive).

thanks
 
Old 10-10-2013, 11:33 PM   #4
evo2
Senior Member
 
Registered: Jan 2009
Location: Japan
Distribution: Debian
Posts: 4,821

Rep: Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022Reputation: 1022
Hi,
Quote:
Originally Posted by timl View Post
Hmmm, I have to admit I did not consider this due to the amount of data stored on the hard drive. Let me have a think about how this could work.
No, it's not about the disk being full but about writing over the usb.

Quote:
I'll have to see if I can configure the torrent client to download from one location (SD card) and upload from another (hard drive).
No, I'm saying you should eliminate the USB disk from the equation and see if the problem goes away. Just use the sdcard.

Evo2.
 
Old 10-12-2013, 05:54 PM   #5
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 242

Original Poster
Rep: Reputation: 37
Hi, yesterday I changed the torrent client to download to SD card and upload from the USB HDD. The torrent client moves the completed download to the HDD. So 2 files downloaded to SD card at great speeds and not a glitch.

This doesn't mean anything yet. I think I have had the client running for a week without any problems. I'll monitor over the next 7 days and report back.

thanks
 
Old 10-18-2013, 04:44 PM   #6
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 242

Original Poster
Rep: Reputation: 37
okay, one week later and no problems. I am closing this
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] External USB Hard Drive can write after KDE 4.6.5 upgrade bassplayer69 Slackware 4 12-22-2011 12:31 PM
Cannot Write to HFS Plus USB External Hard Drive rjreding Linux - Newbie 4 04-17-2009 01:45 PM
Unable to write to external USB drive m_lp_ql_m Linux - Newbie 2 08-29-2005 03:21 PM
External USB drive -- only WRITE as root 1kyle Linux - Hardware 0 08-03-2004 10:00 AM
Write to external USB hard drive Rob Roye Linux - Software 6 07-06-2004 04:15 PM


All times are GMT -5. The time now is 07:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration