'Unable to mount SAMSUNG_Android on Ubuntu
When I enable USB debugging in an Android phone and connect it to Ubuntu, I get a popup like:
Unable to mount SAMSUNG_Android
Error initializing camera: -60: Could not lock the device
How can I disable or ignore the popup?
In Windows it works fine; the problem is just in Ubuntu.
Solution 1:[1]
The problem is that Ubuntu is yet to support MTP natively. I hope with the next version, Ubuntu 13.04 (Raring Ringtail), they will fix this annoying problem. In the meantime, you can manually add MTP support to your Ubuntu installation's PPA and have seamless access to your Android device.
In Terminal, issue:
sudo add-apt-repository ppa:langdalepl/gvfs-mtp
sudo apt-get update
then
sudo apt-get install gvfs
Restart your computer. You might have to turn on USB Debugging on your Android devices.
Next time when you plug it in, there shouldn't be any annoying error popups. It should appear in Nautilus as a single device with the SD card and internal memory as sub folders, not as two mounted devices.
Data transfer should work, but you might have a problem accessing the device from some applications, in which case you might want to give Go-mtpfs a try. It requires manual mounting/unmounting the device, (which is done in two clicks) but then everything should be as fast and easy as accessing a normal folder.
It works for me. Ubuntu 12.04 (Precise Pangolin), Samsung Galaxy S III and Nexus 7.
Solution 2:[2]
On Ubuntu 14.04 LTS (Trusty Tahr) I just had to issue:
sudo apt-get install mtpfs
It worked like magic—it didn't even need to unplug my phone.
Solution 3:[3]
Today I solved the problem, with an Wiko DARKMOON. The problem of Linux' the gvfs-solution was, that there was no mapping for my device in file "/lib/udev/rules.d/69-libmtp.rules"
Attention: It could be, that you need to enable the "USB debugging", to see the device by lsusb. This can be done like this:
- Android 2.3 (Gingerbread): Settings ? Applications ? Development ? USB Debugging
- Android 4.0 (Ice Cream Sandwich): Settings ? Developer Options ? USB Debugging
- Android 4.1 (Jelly Bean): Settings ? Developer Options ? USB Debugging
- Android 4.2 or higher - Jelly Bean:
- Settings ? About
- scroll to Build number and tap it 7 times
- now you will find "Developer Options" in the "Settings"-menu
- go to it and enable "USB Debugging"
The next steps helped me to automount my device on Linux Mint with an already-installed "gfvs":
Find the vendorid and productid with lsusb:
lsusb Bus 001 Device 013: ID 0bb4:0c02 HTC (High Tech Computer Corp.) Dream / ADP1 / G1 / Magic / Tattoo (Debug) ...the "0bb4" is the vendor-id, the "0c02"is the productid
open the file "/lib/udev/rules.d/69-libmtp.rules" for edit:
gksudo gedit /lib/udev/rules.d/69-libmtp.rulesInsert the new device, by duplicating a previous one and correcting the id's and save the file:
# Wiko DARKMOON ATTR{idVendor}=="0bb4", ATTR{idProduct}=="0c02", SYMLINK+="libmtp-%k", MODE="660", GROUP="audio", ENV{ID_MTP_DEVICE}="1", ENV{ID_MEDIA_PLAYER}="1"Unplug your smartphone and replug it. Your Linux should mount your device like it would do for other ones.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Peter Mortensen |
| Solution 2 | Peter Mortensen |
| Solution 3 | Peter Mortensen |
