LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2008, 02:31 PM   #1
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Rep: Reputation: 31
usb phone problems


my phone does not release the usb device it previously had. so it joins as usb 2:1 and everytime i connect and disconnect it it goes up, right now im up to usb 2:30...

my dmesg looks like a hurricane, does anyone have any ideas whats going on?
 
Old 12-17-2008, 03:07 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Are you unmounting the phone before you disconnect it?
 
Old 12-17-2008, 03:26 PM   #3
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
no, do i have to?
 
Old 12-17-2008, 04:39 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Assuming that it is being mounted as a file system (most usb stuff is) then, yes. If you do not the OS still thinks that the device is there, thus the 2:X. Unmounting also assures that all communication between the two is complete before you disconnect (often lazy writes are used and if you disconnect before unmounting all the data may not be written). This is not just a Linux issue. Windows also give you an icon(usually in lower tray) to confirm that it is safe to remove the device.
 
Old 12-21-2008, 04:29 AM   #5
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
ok when the camera is plugged in i run a df and i see no device to be unmounted.
 
Old 12-21-2008, 10:27 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,003
Blog Entries: 1

Rep: Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846Reputation: 846
There's various communication protocols for cameras/phones. It may be setup for PTP (peer to peer) or USB Mass Storage. With PTP cameras, you use something like gphoto2 to download/upload images. With USB Storage devices you mount them and cp from a filesystem.

If it's a usb-storage devices, when you connect the phone it should add a device in /proc/partitions. On my system, this location varies depending on a) if it's connected when I boot, b) if it's connected after I boot, c) which usb port I plug it into, d) what other USB Mass Storage devices I have plugged in. I almost always have to check /proc/partitions to see where it showed up. But I'm not running dbus, autofs, or any of that other stuff.

If you mount the device and write something to the device, you could damage the filesystem if you disconnect it before unmounting it. This is less likely if you only read from the device then disconnect without unmounting. However you may screw up your ability to remount it later without a reboot.

You might try mount by itself which should list mounted devices in /etc/mtab. You may not be allowed to unmount them if they're no longer valid devices. This is why I still do it old school. It mounts when I give a mount command. And therefor I remember to unmount it when the time comes. If you can unmount all Usb-Storage devices, you could also rmmod the usb-storage kernel module, then modprobe it back and that might clear up your USB allocations. Although you may also need to restart udev.

# modprobe -r usb-storage
# modprobe usb-storage
# /etc/init.d/udev restart

HTH
 
Old 12-21-2008, 01:37 PM   #7
ninja master
Member
 
Registered: May 2008
Distribution: funtoo/gentoo amd64 xwrt
Posts: 412

Original Poster
Rep: Reputation: 31
trying to mount the phone results in "/proc/bus/usb is not a block device"

gah im also having problems with my camera in gphoto2 =(
 
  


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
Loaded Ubuntu 7.04. Mobile phone connected with cable via usb. Phone is seen, Hec Linux - Newbie 1 02-09-2008 05:46 AM
USB- phone basteon *BSD 0 09-18-2007 10:18 AM
skype usb phone ringo1 Linux - Desktop 1 01-06-2007 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:18 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration