LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-04-2008, 08:30 AM   #1
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Rep: Reputation: 30
Problem copying to/from USB flash drive


I have an 8G usb stick and it gives problem whenever I try to copy large files to or from it under Linux. The problem does not appear to be hardware related because I was able to copy large files (1.7 G) to the stick under Windows.

When I try to copy the same large file to or from the stick about 200 Mb is copied and then the operation slows down and eventually just stops.

dmesg gives the following output:

[945327.313514] usb 5-3: reset high speed USB device using ehci_hcd and address 6
[945357.540390] usb 5-3: reset high speed USB device using ehci_hcd and address 6
[945387.767276] usb 5-3: reset high speed USB device using ehci_hcd and address 6
[945387.900140] sd 8:0:0:0: [sdg] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK,SUGGEST_OK
[945387.900152] end_request: I/O error, dev sdg, sector 4113567

I've tested this under ubuntu (heron), knoppix 5.3 and kanotix.

Any help will be appreciated.

Thanks
Joe
 
Old 06-05-2008, 06:10 AM   #2
Joe Soap
Member
 
Registered: Sep 2001
Location: Switzerland
Distribution: Debian, Sidux
Posts: 225

Original Poster
Rep: Reputation: 30
Got the solution on the Ubuntu forums:

cat /sys/block/sda/device/max_sectors

returned a value of 240.

I changed the value to 128 with this command: echo 128 >/sys/block/sdc/device/max_sectors

and everything worked fine. Thanks to rraj.be for the help.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb flash drive problem soumalya Linux - Desktop 3 06-01-2008 05:23 AM
USB flash drive problem Executor21 SUSE / openSUSE 4 12-17-2006 12:45 PM
Usb flash drive problem procfs Linux - Hardware 5 07-18-2006 10:51 PM
Problem with USB flash drive dmsynck Debian 4 11-23-2005 01:43 PM
USB flash drive problem Kensai Mandriva 6 02-23-2004 02:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:47 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration