LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-05-2003, 05:48 AM   #1
Alphi
LQ Newbie
 
Registered: Jun 2003
Posts: 3

Rep: Reputation: 0
USB Flash Disk not recognized


Hi,

I have a problem enabling my Hyundai USB flash disk under rh9 on a BookPC. From what I read, I understood that these are emulated under linux as scsi devices, and so I should find it as /dev/sda (I don't have any other scsi stuff).

But unlike any other post I've read, my device is not in /proc/scsi/scsi. Instead, I find it in /proc/scsi/usb-storage-0/0. I can't mount or fdisk sda, and I have the following message in my /var/log/messages:

kernel: Initializing USB Mass Storage driver...
kernel: usb.c: registered new driver usb-storage
kernel: scsi0 : SCSI emulation for USB Mass Storage devices
kernel: kjournald starting. Commit interval 5 seconds
kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
kernel: EXT3-fs: mounted filesystem with ordered data mode.
kernel: usb-uhci.c: ENXIO 80000280, flags 0, urb c1b96d00, burb c1b96c80
kernel: hub.c: usb_hub_port_status (2) failed (err = -6)
kernel: usb-uhci.c: ENXIO 80000200, flags 0, urb c1b96d00, burb c1b96c80
kernel: scsi: device set offline - not ready or command retry failed after
bus reset: host 0 channel 0 id 0 lun 0
kernel: USB Mass Storage support registered.

so my device IS recognized, but is set offline...

Anybody knows what I could do oto make this work?

Thanks,
Alfy.
 
Old 06-05-2003, 07:40 AM   #2
wvrhlu
Member
 
Registered: Mar 2003
Location: Eastern Panhandle of WV
Distribution: RH 7.3
Posts: 39

Rep: Reputation: 15
I hae been looking into using one of those as well. A friend is using one and he had issues booting with the "thumbdrive" installed if it was write protected.

Just a thought...
 
Old 06-05-2003, 11:27 AM   #3
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu 10.04, Debian Squeeze, Windoze 7
Posts: 512

Rep: Reputation: 34
this worked for me

I also got trouble in the beginning, but solved it.

I also have rh9, so maybe this will work for you too:
go check if there is an entry in /etc/fstab for your thing.
I get one automatically when connecting it, "diskonkey".

It puts it on /dev/sda

so mounting it with "mount /dev/sda" should get it.
Mine always complains with /dev/sda: Input/Output error when mounted, but works fine otherwise.

I also had luck sometimes when mounting it with /dev/sda1. I got it preformated in VFAT, so somebody told me that the partitioning on it is a little funny.

Good luck, hope it works.
 
Old 06-05-2003, 11:47 PM   #4
Alphi
LQ Newbie
 
Registered: Jun 2003
Posts: 3

Original Poster
Rep: Reputation: 0
I checked if it was the write protected switch and booted my machine twice, once with each setting, but that did not do the trick.

Also, there is no entry for the flash disk in my /etc/fstab. I tried putting the lines in myself, but that failed as well. In view of my /var/log/messages file, I believe the deice should be found under /dev/sda, but I can't fdisk or mount it...

But many thanks to you guys for your answers and advice, and please, if anyone can think of anything else, just tell me: if I have nothing to try, I can't succeed

Alfy.
 
Old 06-06-2003, 12:36 AM   #5
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
kernel: hub.c: usb_hub_port_status (2) failed (err = -6)

That makes me think that USB support barfed at the hub level, what's the usb modules loaded from

/sbin/lsmod

Cheers,

Finegan
 
Old 06-06-2003, 02:56 AM   #6
Alphi
LQ Newbie
 
Registered: Jun 2003
Posts: 3

Original Poster
Rep: Reputation: 0
hi,

lsmod gave me (I cut the ones I believe related to usb support):


usb-storage 69332 0
scsi_mod 107160 3 [sd_mod usb-storage]
usb-uhci 26348 0 (unused)
usbcore 78784 1 [usb-storage hid usb-uhci]

By the way, I use a usb logitech trackball as well as an Epson usb printer, and both work fine. (and I've tried the flash disk with and whithout the other devices connected for tesing )
 
Old 06-07-2003, 02:45 PM   #7
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
Okay, then USB probably is fine, can you post the whole scsi device scan as reported by "dmesg", I'm thinking maybe now the device is unsupported, which is a bit of a pain as RH 9.0 means 2.4.20, which is a rather up to date kernel.

You're looking for a partition check in dmesg, like:

Code:
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: SIIG      Model: CompactFlash Car  Rev: 0113
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 15873 512-byte hdwr sectors (8 MB)
sda: test WP failed, assume Write Enabled
 sda: sda1
Cheers,

Finegan
 
Old 06-16-2003, 02:43 AM   #8
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu 10.04, Debian Squeeze, Windoze 7
Posts: 512

Rep: Reputation: 34
Unhappy automount on connect?

Does anybody know how to achieve this:

You connect the usb flash disk on key and linux mounts it automatically. (me not needing to do mount /dev/sda)
 
Old 06-16-2003, 03:08 AM   #9
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
Hi..

U cant directly mount it as /dev/sda

.

If it is a new Flash Disk u have to create partition.

Use fdisk and create new partition on /dev/sda

then make file system either ext3 or msdos

and the mount /dev/sda1 to a directory

It will work

Siddiqu.T
 
Old 06-16-2003, 03:39 AM   #10
browny_amiga
Member
 
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu 10.04, Debian Squeeze, Windoze 7
Posts: 512

Rep: Reputation: 34
Cool "automount"

Hi

Yes, I know that I can mount it manually with mount /dev/sda. But I was wondering if there is a way to AUTOMOUNT it, meaning:
I plug the thing in and linux does "mount /dev/sda" for me. I do not have to do anything for it.
 
Old 06-16-2003, 05:58 PM   #11
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 56
If you are using the 'supermount' facility (I know it's available for Mandy, so it might work with RH) then sure there is - I think it's a kernel thing.
 
  


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 flash disk taoweijia Linux - Hardware 2 12-28-2005 04:30 AM
USB flash disk help bakazer Solaris / OpenSolaris 1 06-24-2005 09:30 AM
USB Flash Disk zillah Fedora 3 05-22-2005 03:25 AM
USB Flash Drive not recognized on Sony with Mandrake 10.2 philosophe Linux - Laptop and Netbook 0 05-13-2005 04:10 PM
USB flash disk. ValidiusMaximus Linux - Software 0 12-30-2004 02:45 PM


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