Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.