LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-11-2003, 04:24 AM   #1
mudelf
Member
 
Registered: Sep 2003
Distribution: RedHat 8
Posts: 59

Rep: Reputation: 15
USB Drives and Sharing Problems


I have a USB Memory stick and a digital Camera which I connect through the USB -

My Laptop has only ONE USB port so I have to swap them over.

I can connect BOTH no trouble. Problem is once one has been mounted then I cannot unmount and then remount
the other device. Something in Linux is stuck on the old device - any clue how I can determine what to do?

Also I just installed Debian 3 on my desktop machine and cannot mount my USB Stick at all -
Hotplugging is installed (I think) and DMESG is returning the USB messages which I think means that it can see
the Memory stick -

I have tried cycling through various locations in /dev/ which worked on my Laptop and the Older RedHat I had installed
on this same box but I cannot find the device !

Anyone know of some kind of auto mounting dev probe device that will scan your drives?

or something ...

Any ideas on this ?
 
Old 11-11-2003, 01:48 PM   #2
Faecal
Member
 
Registered: Sep 2002
Location: York, UK
Distribution: Debian Sid
Posts: 215

Rep: Reputation: 30
>Problem is once one has been mounted then I cannot unmount and then remount
What error do you recieve when you attempt to unmount the device (which must be done before unplugging the USB interface)?

>I have tried cycling through various locations in /dev/
Which locations? The USB mass storage driver generally creates the device /dev/sda, whose partitions may be mounted as /dev/sda1,sda2 etc. After plugging in the memory stick and waiting a second, what is the output of "mount -t vfat /dev/sda1 /mnt/wherever" where /mnt/wherever is a mount point that you have? It would be useful if you would post the most recent output of dmesg that occurs when you plug in the device, along with the output of "lsmod" after the device has been plugged in a few moments.
 
Old 11-12-2003, 02:21 AM   #3
mudelf
Member
 
Registered: Sep 2003
Distribution: RedHat 8
Posts: 59

Original Poster
Rep: Reputation: 15
On my Laptop I access the USB drive through:-

mount /dev/sda4 /mnt/usbmem

I do not need to give a -t "drive type" for it to work -

From memory (im at work and dont have the Cam with me ) The Dig Cam is accessed under :-

mount /dev/sda /mnt/sonycam

(KDE brings up a nice camera icon on my desktop to when this is mounted)



This is the output of dmesg (using " grep usb") :-

usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-uhci.c: $Revision: 1.275 $ time 13:44:31 Sep 4 2002
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: USB UHCI at I/O 0xfc60, IRQ 9
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: registered new driver hiddev
usb.c: registered new driver hid
usb.c: USB device 2 (vend/prod 0x1005/0xb113) is not claimed by any active driver.
usb.c: registered new driver usb-storage


On my Debian Desktop (on which I cannot access the Mem stick at all) I have two usb ports and I have tried cycling through all most of the sda and hda and hdb locations with no luck (this is what figured it last time!)

This is the output of lsmod after the usb device has been connected:-

(Had to filter a few things out but I think these are all the relenet ones ...)

Module Size Used by Not tainted
nls_iso8859-1 3516 1 (autoclean)
nls_cp437 5116 1 (autoclean)
vfat 13084 1 (autoclean)
fat 38712 0 (autoclean) [vfat]
sd_mod 13584 2 (autoclean)
usb-storage 62000 1
scsi_mod 107176 2 [sd_mod usb-storage]
ymfpci 45420 0 (autoclean)
usb-uhci 26188 0 (unused)
usbcore 77024 1 [usb-storage hid usb-uhci]


Thanks again - can you offer any advice on a general approach to finding your hardware once it is conencted ? I know the system can see it in Debian because HotPlug outputs stuff - I just dont know how to make sense of it yet Any pointers?
 
Old 11-12-2003, 05:59 PM   #4
Faecal
Member
 
Registered: Sep 2002
Location: York, UK
Distribution: Debian Sid
Posts: 215

Rep: Reputation: 30
>I have tried cycling through all most of the sda and hda and hdb locations with no luck
Well, it wouldn't be hda: those are IDE devices. The usb mass storage driver simulates a scsi device. I know I'm swimming against the tide of reality here, but it really ought to be accessible as /dev/sda4 or /dev/sdb4 - the lsmod/dmesg output indicates that the appropriate driver modules are being loaded successfully.

What happens if you try and "cat /dev/sda" (or sdb,sdc)? (with the drive plugged in)
 
Old 11-13-2003, 01:58 AM   #5
mudelf
Member
 
Registered: Sep 2003
Distribution: RedHat 8
Posts: 59

Original Poster
Rep: Reputation: 15
I found it --- but got some more probs too

First up my Debian install needed "usb-storage" to be loaded with modprobe (strangely my Redhat install does not)

After loading a dmesg implied in its usual cryptic fashion that something .... might be found (somewhere) on /dev/sda and sure enough a mount attempt was successful in mounting the USB Drive.

All was happy until I tried to repeat the process to check for errors - subsequent attempts cause the system to either crash or hang.

Errors include:-

Modprobe: modprobe: can't locate module block-major-8
kernel: usb-storage: Bad LUN (0/1)
usb_unlink_urb() returned -19


Thanks for all your help though - at least I was able to access 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems auto-mounting usb drives in kernel 2.6.13.3 dizzi Slackware 8 10-29-2005 01:41 PM
Any problems with USB-port PCMCIA cards and USB Floppy Drives? DreameR-X Linux - Laptop and Netbook 9 05-14-2005 01:37 PM
Problems Mounting USB drives plainkeyman Linux - General 5 10-08-2004 08:56 AM
Give user permission to mount/use cdrom drives or usb drives zwyrbla Linux - Newbie 2 08-23-2004 04:30 PM
problems with usb drives andy753421 Linux - Hardware 4 08-17-2004 10:22 PM


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