LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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
 
Search this Thread
Old 09-22-2005, 08:44 PM   #1
jaws_tas
LQ Newbie
 
Registered: Jan 2005
Posts: 25

Rep: Reputation: 15
Unhappy USB Stick reads but won't write


Hey all,

I just purchased a USB 2.0 256MB usb stick with inbuilt memory stick and SD readers. The card readers work fine (read and write) but when I try to write to the internal 256MB I get a stack of SCSI errors. At first I thought it might be broken but a quick check on Windows XP let me write a 240MB file with no problems.

I have Fedora 4 and I've tried the stock kernel and the latest kernel 2.6.12-1.1447_FC4. I do have USB 2.0 ports and I have no problems writing to my USB 2.0 dvd-burner or Zaurus.

The output of dmesg when I plug the device in gives:

Code:
usb 1-1: new full speed USB device using uhci_hcd and address 11
scsi6 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 11
usb-storage: waiting for device to settle before scanning
ieee1394: sbp2: aborting sbp2 command
scsi0 : destination target 0, lun 0
        command: Read Capacity (10): 25 00 00 00 00 00 00 00 00 00
  Vendor: UNISON    Model: 7921  HS-FLASH    Rev: 1.07
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
sda: Write Protect is off
sda: Mode Sense: 00 23 00 00
sda: assuming drive cache: write through
SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
sda: Write Protect is off
sda: Mode Sense: 00 23 00 00
sda: assuming drive cache: write through
 sda: unknown partition table
Attached scsi removable disk sda at scsi6, channel 0, id 0, lun 0
  Vendor: UNISON    Model: 7921  HS-SD/MMC   Rev: 1.07
  Type:   Direct-Access                      ANSI SCSI revision: 00
Attached scsi removable disk sdb at scsi6, channel 0, id 0, lun 1
  Vendor: UNISON    Model: 7921  HS-MS       Rev: 1.07
  Type:   Direct-Access                      ANSI SCSI revision: 00
Attached scsi removable disk sdc at scsi6, channel 0, id 0, lun 2
usb-storage: device scan complete
Reading from the device is fine, but when I try to write to the device I get this from dmesg:

Code:
SCSI error : <4 0 0 0> return code = 0x10070000
end_request: I/O error, dev sda, sector 1
Buffer I/O error on device sda, logical block 1
lost page write due to I/O error on sda
SCSI error : <4 0 0 0> return code = 0x10070000
end_request: I/O error, dev sda, sector 38
Buffer I/O error on device sda, logical block 38
lost page write due to I/O error on sda
SCSI error : <4 0 0 0> return code = 0x10070000
end_request: I/O error, dev sda, sector 39
Buffer I/O error on device sda, logical block 39
lost page write due to I/O error on sda
SCSI error : <4 0 0 0> return code = 0x10070000
end_request: I/O error, dev sda, sector 40
These messages just continue ad nauseum until I unplug the device (I can't unmount it).

Any help would be greatly appreciated!
 
Old 09-22-2005, 10:04 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
While I'm not sure of your trouble, I can tell you that USB2.0 is EHCI. Issue from a
terminal "dmesg | grep ehci" to see if you've got it, and check the output of "lsmod"
to see if that module is loaded. While I don't know if that's the problem, your dmesg
output does indicate it's using UHCI, which is USB1.1.
 
Old 09-22-2005, 11:58 PM   #3
PaganHippie
Member
 
Registered: Aug 2005
Location: Ecotopia
Distribution: Ubuntu 7.04 'Feisty' & 6.06 'Dapper'; Debian 4.0 'Etch'
Posts: 119

Rep: Reputation: 15
Just a thought... many USB sticks have a physical 'write-protect' switch. Is yours on?
 
Old 09-23-2005, 01:36 AM   #4
jaws_tas
LQ Newbie
 
Registered: Jan 2005
Posts: 25

Original Poster
Rep: Reputation: 15
Nope its definitely not write protected. I think chinaman might be on to something with the UHCI thing. I didn't notice that it was uhci not ehci until he pointed it out. Its weird because my LG DVD burner uses ehci. This thing should too but it doesn't. I don't know if its the device or the driver though causing the discrepancy. Even if it is using the uhci not ehci, it still shouldn't have worked on the XP box ond not Fedora (it was XP SP1 without the ehci driver anyway so there should be no difference).

I'd like to know if anyone else has had similar problems with any other hi-speed USB device - not just pendrives. Maybe their solutions might work for me if its a problem with the hi-speed USB driver.

Incidently, the card reader part of the thing works fine, its only its internal 256mb that doesn't. And even then, it only doesn't work on linux. On Windows its fine. Which is no good cause none of my three pc's run it
 
  


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 Stick on Debian-Etch 2.4, write is disabled SlackerLX Linux - Hardware 12 10-08-2005 02:41 AM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 12:12 PM
Can't WRITE to USB stick, Mount OK NO WRITE! ClericPreston Linux - Newbie 4 12-04-2004 11:43 AM
write protect freezes my usb stick db391 Linux - Hardware 3 09-25-2004 05:43 AM
cd burner reads but won't write Scott176 Linux - Hardware 2 12-17-2002 05:25 AM


All times are GMT -5. The time now is 09:04 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration