LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 08-07-2007, 01:54 AM   #1
kennithwang
Member
 
Registered: Aug 2007
Location: shanghai
Distribution: LDD
Posts: 32

Rep: Reputation: 15
SCSI error&External USB Storage Device


Dear All,

Firstly,it is my pleasure to post my questions via LQ.

I plug my external usb storage device into USB2.0 port,
about 40 seconds later, the linux system can detect this device, and I can read its contents on console.

But the following errors will be displayed, I past some relevant kern log, as follows,
------------------------------------------------------
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 128792
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 128793
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 128794
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 128795
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 128796
SCSI error : <1 0 0 0> return code = 0x70000
end_request: I/O error, dev sda, sector 128797
-------------------------------------------------------
do you happen to know what is the root of the above problem? Thanks in advance, and all the best,
Kennith Wang
 
Old 08-07-2007, 02:29 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
You might want to check the filesystem on the drive. It could be corrupt.
 
Old 08-07-2007, 02:43 AM   #3
kennithwang
Member
 
Registered: Aug 2007
Location: shanghai
Distribution: LDD
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks,
My filesystem is normal, my target is still running without being crashed,,,
You know, the USB has been simulated as SCSI device in linux,,,
 
Old 08-08-2007, 01:23 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Is this error produced after the device is successfully detected and mounted?
If not, it may not indicate a problem. If they are produced during normal reads, it could be a drive media problem. I don't know what information is on those sectors.

When you say the filesystem is normal, did you actually unmount the filesystem and run a scan, such as using the fsck.ext3 if ext3 is the filesystem?

Another potential problem is if you are using an external hub, such as the usb port on a keyboard and your computer usb port doesn't supply enough power for both the keyboard and the drive.
 
Old 08-08-2007, 02:30 AM   #5
kennithwang
Member
 
Registered: Aug 2007
Location: shanghai
Distribution: LDD
Posts: 32

Original Poster
Rep: Reputation: 15
Hi jschiwal,

That helps, thanks, ...
The architecture of my target is NOT X86, and I have made many changes to USB drivers in Linux OS Kernel, in other words, I only ported Linux kernel source codes to current target.

As you know, there are many kinds of external USB devices in P.R.China, I have tested many of them, but only one can not pass my experiment, it always occur the above errors,

I have no idea, what have I missed...?

Thanks,
 
Old 08-09-2007, 12:56 AM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
If it is only one device with the problem, you might try using Google, including the model of the drive in your search. Maybe this device isn't up to specs. Did you check the filesystem. That will be the easiest thing to try. Remember Occam's razor! (Although I tend to favor Alexander's solution of the Gordian knot.)
 
Old 08-10-2007, 04:16 AM   #7
kennithwang
Member
 
Registered: Aug 2007
Location: shanghai
Distribution: LDD
Posts: 32

Original Poster
Rep: Reputation: 15
can you introduce some experienced websites about SCSI drivers to me?

Thanks in advance,
 
Old 08-11-2007, 03:05 AM   #8
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Sorry, I'm not that familiar with scsi drivers. If I were you I would first eliminate the filesystem as being the problem. Another possibility is a problem with the media. Pen drives have a limited number of writes. That is why you use the noatime option when mounting them. You also may want to use the flush option as well. An external usb hard drive, could be using a hard drive disk inside that simply is going bad.

If it is just one device model, and another device of the same model behaves the same way, it may be a defect in that model rather than a problem with your scsi driver. You will want to avoid using that model.
 
Old 08-12-2007, 04:50 AM   #9
kennithwang
Member
 
Registered: Aug 2007
Location: shanghai
Distribution: LDD
Posts: 32

Original Poster
Rep: Reputation: 15
Hi jschiwal ,

so many thanks to you! I find that your distribution is AMD64. What does that mean? And can you give me your Email which you often use if possible? ,,,

All the Best,

Kennith
 
Old 08-12-2007, 07:17 AM   #10
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
That is the architecture of my Laptop. It uses an AMD X86_64 processor. My regular distro is SuSE 10.2. My email address is in my profile.
 
Old 08-16-2007, 01:23 AM   #11
kennithwang
Member
 
Registered: Aug 2007
Location: shanghai
Distribution: LDD
Posts: 32

Original Poster
Rep: Reputation: 15
I have solved this problem,,,
 
Old 08-23-2007, 06:59 AM   #12
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,003
Blog Entries: 54

Rep: Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763Reputation: 2763
Quote:
Originally Posted by kennithwang View Post
I have solved this problem,,,
Well, post the diagnosis and fix for others then!
 
Old 08-23-2007, 07:40 AM   #13
kennithwang
Member
 
Registered: Aug 2007
Location: shanghai
Distribution: LDD
Posts: 32

Original Poster
Rep: Reputation: 15
Yes, I am embedded software enginner, enable acpi optition while making kernel configuration,

,,, and my platform is not X86, if you have other questions, maybe we can share our experiences each other,,,,,


and you can send me email directly also,
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 07:32 AM
SCSI error: return code = 0x10000 on USB Mass Storage device gringer Linux - Hardware 4 05-14-2007 06:43 AM
external usb storage device not detected tokehs Linux - Hardware 4 10-27-2006 12:08 PM
10.1 and external Storage device goudi Mandriva 3 10-16-2004 05:57 AM
USB storage device works in 2.4 not 2.6 "no device error" critch Linux - Hardware 4 05-18-2004 11:13 AM


All times are GMT -5. The time now is 10:31 PM.

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