FORUMS
Remove All Ads from XDA

[Q] Has anyone managed to connect their S2 via MTP using Ubuntu?

659 posts
Thanks Meter: 348
 
By coversnail, Senior Member on 9th April 2012, 05:19 PM
Post Reply Email Thread
Has anyone managed to connect their S2 using MTP when running Ubuntu? Obviously I know that it's a very simple tast to just connect via mass storage instead, but I'm interested to know.

I think that Samsung have some weird implementation of MTP because I was able to connect and copy files when I was running CM9 but not on stock ICS. I always get the error message:

Unable to mount SAMSUNG_Android
Error initialising camera: -60: Could not lock the device

Though it does mount and I can see the root of both SDCards, all the folders are empty and I can't copy any files to the cards from the computer as I get a error message reading:

There was an error copying the file into gphoto2://[usb:001,010]/store_00020002.

The same happens whether I try to use MTP or PTP.

I think the problem lies in that libmtp-1.1.3 contains fixes for the S2 but that version isn't included with 11.10 or 12.04
 
 
29th April 2012, 10:17 PM |#2  
alpike's Avatar
Junior Member
Thanks Meter: 1
 
More
Talking hint
did you find out,

i got mine working by doing below guide,

think the issue is we have our phones in USB Debugging Mode

ubuntuforums.org/archive/index.php/t-1806119.html


Steps:
1. Go to: Settings ➔ Wireless and network ➔ USB utilities.
2. Connect your phone to your PC using a USB cable.
3. Tap Connect storage to PC.
4. Scroll down from the phone notification bar. Click USB Mass Storage and tap "Connect storage from PC". The android robot will turn from green to orange. (Important step!)
5. From your PC, open the folder to view your files.
6. Copy files between your PC and the memory card.
The Following User Says Thank You to alpike For This Useful Post: [ View ] Gift alpike Ad-Free
29th April 2012, 11:42 PM |#3  
coversnail's Avatar
OP Senior Member
Thanks Meter: 348
 
More
Quote:
Originally Posted by alpike

did you find out,

i got mine working by doing below guide,

think the issue is we have our phones in USB Debugging Mode

ubuntuforums.org/archive/index.php/t-1806119.html


Steps:
1. Go to: Settings ➔ Wireless and network ➔ USB utilities.
2. Connect your phone to your PC using a USB cable.
3. Tap Connect storage to PC.
4. Scroll down from the phone notification bar. Click USB Mass Storage and tap "Connect storage from PC". The android robot will turn from green to orange. (Important step!)
5. From your PC, open the folder to view your files.
6. Copy files between your PC and the memory card.

That's connecting via USB mass storage, not mtp. But thanks for trying.

Sent from my GT-I9100 using XDA
29th April 2012, 11:57 PM |#4  
Inactive Recognized Developer
Flag Medellín
Thanks Meter: 16,015
 
Donate to Me
More
Very easy

Code:
cd ~
sudo apt-get install mtpfs
sudo mkdir /mtp
sudo chmod 775 /mtp
sudo mtpfs -o allow_other /mtp
For dismount

Code:
sudo umount mtpfs
You need to have your device rules ( Check how to install adb if you dont )
The Following 2 Users Say Thank You to D4rKn3sSyS For This Useful Post: [ View ] Gift D4rKn3sSyS Ad-Free
9th August 2012, 08:14 AM |#5  
Senior Member
Thanks Meter: 30
 
More
what I have found out that mtpfs is unable to preserve timestamps of the files at least on my install.
gphoto2 backend worked fine on CM9 now wile testing CM10 its a bit buggy, I can get the list of files but I am unable to read or rename them.
Most likelly it will improve as development of CM10 progresses rapidly.
23rd June 2013, 12:22 AM |#6  
Junior Member
Thanks Meter: 0
 
More
Question Mounting my Galaxy S3 when connected via USB to my Ubuntu computer
Quote:
Originally Posted by D4rKn3sSyS

Very easy

Code:
cd ~
sudo apt-get install mtpfs
sudo mkdir /mtp
sudo chmod 775 /mtp
sudo mtpfs -o allow_other /mtp
For dismount

Code:
sudo umount mtpfs
You need to have your device rules ( Check how to install adb if you dont )

I went through the steps above, except the last: How do I install adb? (device rules ?).
While my phone is so connected, the command:
cd /mtp
produces the result

bash: cd: /mtp: Transport endpoint is not connected

Help greatly appreciated.

Thank you,

-- Saul
23rd June 2013, 04:46 AM |#7  
Senior Member
Thanks Meter: 141
 
More
Quote:
Originally Posted by slubkin

I went through the steps above, except the last: How do I install adb? (device rules ?).
While my phone is so connected, the command:
cd /mtp
produces the result

bash: cd: /mtp: Transport endpoint is not connected

Help greatly appreciated.

Thank you,

-- Saul

Ubuntu 13.04 is a drastic improvement for MTP support. I have not got around to trying my S II but I successfully managed a family friends Galaxy TAB 2 with MTP with zero manual modifications to Ubuntu. Everything worked perfect plug and play out of the box.

I have also tried old versions to know how bad they were compared to 13.04.
26th August 2013, 03:04 PM |#8  
Junior Member
Sydney
Thanks Meter: 0
 
More
No luck with S2 and Ubuntu 13.04
I'm on Android 4.1.2 and trying to connect via USB to Ubuntu 13.04. Error I get is that my device is not an MTP device, which it's not as its using USB

Issue is that I don't see the mounted android partitions. To make this worse, it works every now and then. Following is the syslog and the outpu of lsusb

-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Aug 26 23:04:00 ml kernel: [134718.425536] usb 1-5: new high-speed USB device number 11 using ehci-pci
Aug 26 23:04:00 ml kernel: [134718.558636] usb 1-5: New USB device found, idVendor=04e8, idProduct=685b
Aug 26 23:04:00 ml kernel: [134718.558647] usb 1-5: New USB device strings: Mfr=2, Product=3, SerialNumber=4
Aug 26 23:04:00 ml kernel: [134718.558655] usb 1-5: Product: SAMSUNG_Android
Aug 26 23:04:00 ml kernel: [134718.558661] usb 1-5: Manufacturer: SAMSUNG
Aug 26 23:04:00 ml kernel: [134718.558666] usb 1-5: SerialNumber: 001964815b817e
Aug 26 23:04:05 ml kernel: [134723.546077] usb 1-5: can't set config #1, error -110
Aug 26 23:04:05 ml mtp-probe: checking bus 1, device 11: "/sys/devices/pci0000:00/0000:00:12.2/usb1/1-5"
Aug 26 23:04:05 ml mtp-probe: bus: 1, device: 11 was not an MTP device
[email protected]:~$ lsusb
Bus 001 Device 011: ID 04e8:685b Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II] (mass storage mode)
Bus 003 Device 002: ID 046d:c52e Logitech, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Post Reply Subscribe to Thread

Tags
mtp, ubuntu, usb

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes