LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-31-2003, 07:29 AM   #1
NauticX
LQ Newbie
 
Registered: Aug 2003
Distribution: SuSE 8.2 Pro
Posts: 16

Rep: Reputation: 0
I want my Flash (USB) Drive to work!


First let me begin by saying I did a search tried the suggestions in the post Ive found BUT NO GOOD !

I have been trying to find out why I cannot get my Mini USB Flash Drive to work under Linux. I have the 256mb Cruzer from sandisk, and it works great under Mac OSX and XP Pro. I read on another forum that it worked flawlessly on another Distro but I cant seem to get it working in SuSE 8.2 pro.

Being the newbie I am Im still trying to get a grip on the OS. So Im trying to figure out a couple of things.

1. How do I see the Drives under Linux (hard,Disk,etc)? Like a disk admin of some sort. I figured if I can see this I would be able to see if the drive is listed.

2. How do I know if USB 2.0 is working. I know my USB is working as I have a scanner hooked up
to the ports on the back of the PC. Where Im trying the USB drive is via the front USB 2.0 ports.

Finally here is a post from someone who used the drive in question. I tried following the steps but again I could not locate the drive. And only can do part of his solution.

he found...

"as root"

/dev/sda1
as a scsi usb device.

Next he created a dir in /mnt/
mkdir /mnt/cruzer

I did this ^^^^^^^^^^^^

He then mounted the device with
mount -t vfat /dev/sda1 /mnt/cruzer

after that he was able to add, modify,delete files on the device.

He then set it up in ./etc/fstab

Hopefully someone here can assist, I really would like to have the drive working.
 
Old 08-31-2003, 07:38 AM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 58
here
and ...
here

you never mentioned if you did a couple of them steps, like loading the modules (if necessary) so see if these links help..
 
Old 08-31-2003, 09:32 AM   #3
NauticX
LQ Newbie
 
Registered: Aug 2003
Distribution: SuSE 8.2 Pro
Posts: 16

Original Poster
Rep: Reputation: 0
Angry Thanks but still nothing

I tried agian it seems like it just wont connect!

Here is a copy of dmesg

Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
hub.c: new USB device 02:04.2-3, assigned address 2
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Generic Model: STORAGE DEVICE Rev: 1.25
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
sda: Write Protect is off
sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
usb_control/bulk_msg: timeout
usb.c: USB disconnect on device 02:04.2-3 address 2
hub.c: new USB device 02:04.2-3, assigned address 3
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
usb-storage: host_reset() requested but not implemented
scsi: device set offline - command error recover failed: host 0 channel 0 id 0 lun 0
SCSI disk error : host 0 channel 0 id 0 lun 0 return code = 6050000
I/O error: dev 08:00, sector 0
I/O error: dev 08:01, sector 0
I/O error: dev 08:01, sector 64
usb.c: USB disconnect on device 02:04.2-3 address 3
hub.c: new USB device 02:04.2-3, assigned address 4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 4

Although I dont know what this means maybe someonw here can see something Im not.
 
Old 08-31-2003, 11:23 AM   #4
littleonion
LQ Newbie
 
Registered: Aug 2003
Location: Germany
Distribution: debian
Posts: 10

Rep: Reputation: 0
Hi NauticX,

I had the very same problem trying to mount an usb-device (similar output with dmesg). Any try to mount the device using mount [opt] /dev/sda1 ./mnt provided the error /dev/sda1 is not a valid block-device.
After loading usb-storage with modprobe usb-storage mounting of the usb-device was no longer a problem.
Hope that this helps you with the problem.

Best regards, Chris

Last edited by littleonion; 08-31-2003 at 11:25 AM.
 
Old 08-31-2003, 12:36 PM   #5
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Moving to Linux - Hardware

Cool
 
Old 08-31-2003, 03:06 PM   #6
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
Funny u say u couldn't get it to work from the first time!

I made it from the first try and saw only one post 'cause didn't knew what I should use for the emulation and mounting.

Maybe I was used to it because of the RW I installed just before the mass storage device.

And did it just for fun!!! didn't' need the data on it.
 
Old 11-28-2003, 07:03 PM   #7
txmjafg
LQ Newbie
 
Registered: Oct 2003
Distribution: suse
Posts: 6

Rep: Reputation: 0
Angry

Hi there,
I just bought a cruzer mini 256 flash drive few days ago and I can't have it working in Linux (I'm using SuSE pro 8.2). I've read several of the post in this forum and googled for quit a long time, but I have been able to solve the problem. I would really appreciate any help.

Here is the info I've got:

#dmesg
...
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: TOSHIBA Model: DVD-ROM SD-R2412 Rev: 1330
Type: CD-ROM ANSI SCSI revision: 02
PCI: Enabling device 00:06.0 (0000 -> 0003)
8139too Fast Ethernet driver 0.9.26
eth0: RealTek RTL8139 Fast Ethernet at 0xe0987f00, 00:08:0d:cd:85:c4, IRQ 11
eth0: Identified 8139 chip type 'RTL-8139C'
eth0: Setting 100mbps half-duplex based on auto-negotiated partner ability 40a1.
raw1394: /dev/raw1394 device initialized
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Enabling device 00:0c.2 (0000 -> 0002)
ehci-hcd 00:0c.2: NEC Corporation USB 2.0
ehci-hcd 00:0c.2: irq 11, pci mem e0989000
usb.c: new USB bus registered, assigned bus number 1
ehci-hcd 00:0c.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Jan-22
hub.c: USB hub found
hub.c: 5 ports detected
usb-uhci.c: $Revision: 1.275 $ time 08:26:33 Jun 18 2003
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
uhci.c: USB Universal Host Controller Interface driver v1.1
usb-ohci.c: USB OHCI at membase 0xe098b000, IRQ 11
usb-ohci.c: usb-00:0c.0, NEC Corporation USB
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
PCI: Enabling device 00:0c.1 (0000 -> 0002)
usb-ohci.c: USB OHCI at membase 0xe098d000, IRQ 11
usb-ohci.c: usb-00:0c.1, NEC Corporation USB (#2)
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
mice: PS/2 mouse device common for all mice
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
BlueZ Core ver 2.2 Copyright (C) 2000,2001 Qualcomm Inc
Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
BlueZ L2CAP ver 2.1 Copyright (C) 2000,2001 Qualcomm Inc
Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
PCI: Enabling device 00:11.0 (0000 -> 0002)
Yenta IRQ list 04b8, PCI irq11
Socket status: 30000007
cs: IO port probe 0x0c00-0x0cff: clean.
cs: IO port probe 0x0820-0x08ff: clean.
cs: IO port probe 0x0800-0x080f: clean.
cs: IO port probe 0x03e0-0x04ff: excluding 0x408-0x40f 0x480-0x48f 0x4d0-0x4d7
cs: IO port probe 0x0100-0x03af: excluding 0x1e0-0x1e7 0x200-0x207 0x220-0x22f 0x330-0x337 0x388-0x38f
cs: IO port probe 0x0a00-0x0aff: clean.
IPv6 v0.8 for NET4.0
IPv6 over IPv4 tunneling driver
Got silent jpeg.
Got silent jpeg.
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
lp: driver loaded but no devices found
usb.c: registered new driver serial
usbserial.c: USB Serial support registered for Generic
usbserial.c: USB Serial Driver core v1.4
Linux video capture interface: v1.00
eth0: no IPv6 routers present
sr0: CDROM not ready. Make sure there is a disc in the drive.
sr0: CDROM not ready. Make sure there is a disc in the drive.
sr0: CDROM not ready. Make sure there is a disc in the drive.
hub.c: new USB device 00:0c.2-1, assigned address 2
usb.c: USB device 2 (vend/prod 0x781/0x8185) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: Generic Model: STORAGE DEVICE Rev: 1.25
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
sda: Write Protect is off
sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.

I got this when I just insert the flash drive and it beeps. After a couple of seconds or so, it beeps again and I get this:

#dmesg
...
usb_control/bulk_msg: timeout
usb.c: USB disconnect on device 00:0c.2-1 address 2
hub.c: new USB device 00:0c.2-1, assigned address 3
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
usb-storage: host_reset() requested but not implemented
scsi: device set offline - command error recover failed: host 1 channel 0 id 0 lun 0
SCSI disk error : host 1 channel 0 id 0 lun 0 return code = 6050000
I/O error: dev 08:00, sector 0

I tried typing modprobe usb-storage before with the same result. I also created the mount point and ad a line to my fstab file, so it looks like this:

linux:~ # cat /etc/fstab
/dev/hda3 / reiserfs defaults 1 1
/dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=iso8859-1 0 0
/dev/hda2 swap swap pri=42 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbdevfs /proc/bus/usb usbdevfs noauto 0 0
/dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/sda1 /mnt/usb ext3,vfat defaults,noauto,users 0 0

I also uncommented the line

alias usb-interface usb-ohci

in the file /etc/modules.conf

I'm getting desperated, please help me...

N. B. sorry about the length, but I didn't want to leave info off.
 
Old 12-15-2003, 05:15 PM   #8
Marq
Member
 
Registered: Nov 2003
Distribution: Debian
Posts: 43

Rep: Reputation: 15
I just bought a cruzer mini 256 flash drive today and it saw it when I plugged it in but when I tried to mount it, the system completely locked up... I can't seem to find out why
 
  


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
USB flash drive bsmntbombdood Linux - Hardware 3 10-19-2005 04:54 PM
why doesn't my flash drive work? irena56 Linux - Hardware 8 06-17-2005 01:04 PM
USB Flash Drive LunarEagle Linux - Newbie 5 03-22-2005 04:11 PM
help about USB flash drive deepdark Suse/Novell 13 01-05-2005 11:38 PM
USB flash drive crazyking Linux - Newbie 1 05-17-2004 11:25 AM


All times are GMT -5. The time now is 02:56 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