LinuxQuestions.org
Review your favorite Linux distribution.
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 03-02-2012, 03:03 AM   #1
centos123
Member
 
Registered: Apr 2011
Posts: 397

Rep: Reputation: 16
can't connect usb pen drive and digital camera


hi iam using centos 5 ,i am trying to connect sandisk pendrive and digital camera.
when checking log it shows

Mar 2 13:25:39 linuxpc kernel: usb 1-5: device not accepting address 41, error -110
Mar 2 13:25:40 linuxpc kernel: usb 1-5: new high speed USB device using ehci_hcd and address 42

how can i mount usb..
 
Old 03-02-2012, 08:48 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,213

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
You need to be root on most systems to mount a device. I don't use Centos, if it uses sudo, than that will work also.

The above messages look like the device is seen on the USB bus. You can try the command 'lsusb' as root, to list the devices on the USB bus.

You can look at dmesg log as root user also for error information. For usb errors,

as root, run the command 'dmesg | grep usb' ( all commands without the quotes ).

The trick is to determine the device that gets created. Then you can use the mount command.

To mount a device, you need an empty directory. Most systems have a /media directory. Look there, mine looks like this:

Quote:
ls /media
total 68
drwxr-xr-x 16 root root 4096 Mar 2 08:23 ./
drwxr-xr-x 24 root root 4096 Feb 22 14:53 ../
-rw-r--r-- 1 root root 0 Mar 2 08:23 .hal-mtab
-rw-r--r-- 1 root root 500 Sep 25 2006 README
lrwxrwxrwx 1 root root 11 May 10 2011 cdrecorder -> cdrecorder0/
drwxr-xr-x 2 root root 4096 Sep 25 2006 cdrecorder0/
drwxr-xr-x 2 root root 4096 Sep 25 2006 cdrecorder1/
lrwxrwxrwx 1 root root 6 May 10 2011 cdrom -> cdrom0/
drwxr-xr-x 2 root root 4096 Sep 25 2006 cdrom0/
drwxr-xr-x 2 root root 4096 Sep 25 2006 cdrom1/
lrwxrwxrwx 1 root root 4 May 10 2011 dvd -> dvd0/
drwxr-xr-x 2 root root 4096 Sep 25 2006 dvd0/
drwxr-xr-x 2 root root 4096 Sep 25 2006 dvd1/
lrwxrwxrwx 1 root root 7 May 10 2011 floppy -> floppy0/
drwxr-xr-x 2 root root 4096 Sep 25 2006 floppy0/
drwxr-xr-x 2 root root 4096 Sep 25 2006 floppy1/
lrwxrwxrwx 1 root root 3 May 10 2011 hd -> hd0/
drwxr-xr-x 2 root root 4096 Sep 25 2006 hd0/
drwxr-xr-x 2 root root 4096 Sep 25 2006 hd1/
lrwxrwxrwx 1 root root 7 May 10 2011 memory -> memory0/
drwxr-xr-x 2 root root 4096 Sep 25 2006 memory0/
drwxr-xr-x 2 root root 4096 Sep 25 2006 memory1/
lrwxrwxrwx 1 root root 4 May 10 2011 zip -> zip0/
drwxr-xr-x 2 root root 4096 Sep 25 2006 zip0/
drwxr-xr-x 2 root root 4096 Sep 25 2006 zip1/
Notice memory. This is where I mount memory sticks. When I plug in my memory stick, I get a message " Only root can mount /dev/sr1" This is what you need.

Now I log as root, and enter the command 'mount /dev/sr1 /media/memory/' and press enter. The memory stick will mount at /media/memory0/ Memory is a sym link to memory0. That is it, I can now read files from the stick, and wirte IF the device is mounted as R/W.

Cameras can be more difficult. Some will mount just like a memory stick. Some you need to go into the camera config and change the way they look at the USB connection.

If you can't get the camera to mount, post the make and model. Usually the user guide will tell you how to change the USB config on the camera.
 
Old 03-05-2012, 10:01 PM   #3
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
thanks camorii...
iam trying as root user...
this is output of command......

dmesg | grep usb
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usbcore: registered new driver hiddev
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
usb usb1: configuration #1 chosen from 1 choice
usb usb2: configuration #1 chosen from 1 choice
usb 2-1: new low speed USB device using ohci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
input: USB HID v1.00 Keyboard [LiteOn Generic USB Keyboard] on usb-0000:00:02.0-1
input: USB HID v1.00 Device [LiteOn Generic USB Keyboard] on usb-0000:00:02.0-1
usb 2-2: new low speed USB device using ohci_hcd and address 3
usb 2-2: configuration #1 chosen from 1 choice
input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:02.0-2
usbcore: registered new driver usb-storage
[<ffffffff803e2f7e>] (usb_hcd_irq+0x0/0x55)
usb 1-5: new high speed USB device using ehci_hcd and address 4
usb 1-5: device not accepting address 4, error -110
usb 1-5: new high speed USB device using ehci_hcd and address 5
usb 1-5: device not accepting address 5, error -110
usb 1-5: new high speed USB device using ehci_hcd and address 6
usb 1-5: device not accepting address 6, error -110
usb 1-5: new high speed USB device using ehci_hcd and address 7
usb 1-5: device not accepting address 7, error -110





messages log give ...

tail -f /var/log/messages
Mar 6 09:19:11 linuxpc last message repeated 2 times
Mar 6 09:19:11 linuxpc hcid[2404]: Default passkey agent (:1.9, /org/bluez/applet) registered
Mar 6 09:19:13 linuxpc nm-system-settings: Loaded plugin ifcfg-rh: (c) 2007 - 2008 Red Hat, Inc. To report bugs please use the NetworkManager mailing list.
Mar 6 09:19:13 linuxpc nm-system-settings: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-lo ...
Mar 6 09:19:13 linuxpc nm-system-settings: ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0 ...
Mar 6 09:19:13 linuxpc nm-system-settings: ifcfg-rh: read connection 'System eth0'
Mar 6 09:19:14 linuxpc pcscd: winscard.c:304:SCardConnect() Reader E-Gate 0 0 Not Found
Mar 6 09:23:58 linuxpc kernel: usb 1-5: new high speed USB device using ehci_hcd and address 4
Mar 6 09:24:10 linuxpc kernel: usb 1-5: device not accepting address 4, error -110
Mar 6 09:24:10 linuxpc kernel: usb 1-5: new high speed USB device using ehci_hcd and address 5
Mar 6 09:24:21 linuxpc kernel: usb 1-5: device not accepting address 5, error -110
Mar 6 09:24:21 linuxpc kernel: usb 1-5: new high speed USB device using ehci_hcd and address 6
Mar 6 09:24:32 linuxpc kernel: usb 1-5: device not accepting address 6, error -110
Mar 6 09:24:32 linuxpc kernel: usb 1-5: new high speed USB device using ehci_hcd and address 7
Mar 6 09:24:42 linuxpc kernel: usb 1-5: device not accepting address 7, error -110
Mar 6 09:31:13 linuxpc smbd[4616]: [2012/03/06 09:31:13, 0] lib/util_sock.c:get_peer_addr(1224)
Mar 6 09:31:13 linuxpc smbd[4616]: getpeername failed. Error was Transport endpoint is not connected
Mar 6 09:31:13 linuxpc smbd[4616]: [2012/03/06 09:31:13, 0] lib/util_sock.c:write_data(562)
Mar 6 09:31:13 linuxpc smbd[4616]: write_data: write failure in writing to client 172.16.14.9. Error Connection reset by peer
Mar 6 09:31:13 linuxpc smbd[4616]: [2012/03/06 09:31:13, 0] lib/util_sock.c:send_smb(761)
Mar 6 09:31:13 linuxpc smbd[4616]: Error writing 4 bytes to client. -1. (Connection reset by peer)


what should i do...
 
Old 03-06-2012, 08:22 AM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,213

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
What ever device you were plugging is not being recognized.

Do you know if either the camera or the memory stick will work on any other system?

Much of what is going on has to do with BIOS, and the USB drivers. I have looked into some problems like this before, and have found a few solutions. It may matter what order the low speed and high speed drivers are loaded. ( OHCI and EHCI ).

Try different USB ports on the system. Do they fail on all ports? I see you have USB keyboard, and mouse. Usually you have to set BIOS to talk to these devices. If you plug a PS/2 keyboard and mouse, do the devices that fail work?

Just some thoughts, these are not easy problems to resolve. You could also try a different distro as a live CD and see if the devices work, or not.
 
Old 03-08-2012, 11:54 PM   #5
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
i have tried on all port and it gives same messages.....could you tell me what to do with bios for it.
 
Old 03-09-2012, 08:44 AM   #6
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,213

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Do you know if these devices work on other systems? You may have broken hardware.

There isn't anything in the BIOS settings to make this work. When you plug in a device, the BIOS code reads data from the device to determine what it is. If that process fails, you either have bad hardware, system or device, or there is a bug in the BIOS code on your system.

You can look at the manufacturers site to see if there is a BIOS update. Sometimes there is, and an update may fix the problem.
 
Old 05-09-2012, 06:23 AM   #7
centos123
Member
 
Registered: Apr 2011
Posts: 397

Original Poster
Rep: Reputation: 16
i google and found suggestion for reboot and replug ,it works thanks
 
  


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
Connect digital camera via firewire cable ursusca Linux - Hardware 3 06-14-2009 11:28 AM
Digital camera cant connect riba43 SUSE / openSUSE 8 07-15-2006 11:34 AM
Can not connect my digital camera Mandriva 2006 Fnurr Mandriva 8 10-23-2005 03:11 AM
USB Pen drive & camera - Auto sort? r_jensen11 Linux - Hardware 1 07-22-2004 11:07 PM
connect digital camera to laptop with SlackWare 8 al_m Slackware 2 05-13-2002 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:43 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
Open Source Consulting | Domain Registration