Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to mount SAMSUNG_Android in UBUNTU

Tags:

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.

like image 902
senzacionale Avatar asked Feb 24 '13 18:02

senzacionale


People also ask

How do I connect my Samsung phone to Ubuntu?

To pair, open the KDE Connect app on your Android device. From the main screen look for your system under “Available devices”. Tap the name of your system and hit the big blue “Request Pairing” button to fling a pair request over to your Ubuntu box.

How can I access my Android phone from Ubuntu?

Steps to access Android Devices in Ubuntu, Linux Mint Plug in your Android device using USB cable in Ubuntu. In your Android device, swipe down from above in the home screen and click Touch for more options. In the next menu, select option “Transfer File (MTP)“.


3 Answers

The problem is that Ubuntu is yet to support MTP natively. I hope with the next 13.04 version they will fix this annoying problem. In the mean time, you can manually add MTP support to your ubuntu'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 should be no annoying error popups, it should appear in Nautilus as a single device with SD card and internal memory as sub folders, not as two mounted devices. Data transfer should work, but you might have 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.

Hope that will help you. It works for me. Ubuntu 12.04, Samsung Galaxy S III and Nexus 7.

like image 193
Max Avatar answered Sep 28 '22 04:09

Max


On Ubuntu 14.04 LTS I just had to

sudo apt-get install mtpfs 

Worked like magic -- didn't even need to unplug my phone.

like image 38
kornieff Avatar answered Sep 28 '22 03:09

kornieff


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): SettingsApplicationsDevelopmentUSB Debugging
  • Android 4.0 (Ice Cream Sandwich): SettingsDeveloper OptionsUSB Debugging
  • Android 4.1 (Jelly Bean): SettingsDeveloper OptionsUSB Debugging
  • Android 4.2 or higher - Jelly Bean:
    • SettingsAbout
    • 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":

  1. 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

  2. open the file "/lib/udev/rules.d/69-libmtp.rules" for edit:

    gksudo gedit /lib/udev/rules.d/69-libmtp.rules
    
  3. Insert 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"
    
  4. Unplug your smartphone and replug it. Your Linux should mount your device like it would do for other ones.

like image 43
Sven Avatar answered Sep 28 '22 02:09

Sven