LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 05-27-2012, 08:29 PM   #1
future_computer
Member
 
Registered: Apr 2012
Distribution: Pinguy OS
Posts: 386

Rep: Reputation: Disabled
Smile Connect Android Phone to Linux (Ubuntu)


I have a Sony Xperia S phone, running Android 2.3,
it has only internal memory 32GB.
When I plug the usb cable between the phone and my PC (ubuntu),
the file manager does not detect its memory.

In Windows, MTP driver is needed,
how about Linux?
What can I do?

Last edited by future_computer; 05-27-2012 at 08:32 PM.
 
Old 05-27-2012, 08:44 PM   #2
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
Hi future_computer, Welcome to LQ. When you plug the phone into the pc it should ask you which mode, charge only, disk mode, or Sync. If it isn't asking you, goe into settings, Connect to PC, and change the default connection type there.

Good luck. ;-)
 
Old 05-27-2012, 08:52 PM   #3
future_computer
Member
 
Registered: Apr 2012
Distribution: Pinguy OS
Posts: 386

Original Poster
Rep: Reputation: Disabled
In the phone setting, I set it as "storage" under the option USB connection mode.
But it does not work.
 
Old 05-27-2012, 08:53 PM   #4
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,573

Rep: Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433
In my Android (HTC T-Mobile MyTouch 3G), it connects by default as "charge only" and that message is reflected in the message in the notification panel.

I can touch the notification message and get options to mount it as a disk drive, to tether, and something else I forget. If I select, disk drive, it unmounts the SD card from the phone, making it available to the computer. When I'm done with it, I unmount the drive from my computer, then change the connection type on the phone.

My previous phone (HTC T-Mobile G-1) acted in a slightly different, but similar fashion.

I did look at the manual (http://www-support-downloads.sonymob...261-9418.1.pdf) and there is no mention of Linux.
 
Old 05-27-2012, 09:14 PM   #5
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
If you continue to have trouble connecting via usb you can set up a samba share on your pc, install astro with the smb module or some similar file manager on the device and just manage it over the network. You can copy data from the device to the share that way.

Good luck. ;-)
 
Old 05-27-2012, 09:53 PM   #6
future_computer
Member
 
Registered: Apr 2012
Distribution: Pinguy OS
Posts: 386

Original Poster
Rep: Reputation: Disabled
In Windows, it does not work also,
I do not know why?
First time I installed Sony PC Companion in Windows,
connected the phone and it worked.
But later on, the windows trying to install MTP driver, prompted me that it failed,
and device not mounted.
 
Old 05-27-2012, 10:25 PM   #7
future_computer
Member
 
Registered: Apr 2012
Distribution: Pinguy OS
Posts: 386

Original Poster
Rep: Reputation: Disabled
Quote:
Few days ago I was installing Motorola Milestone 2 mobile phone drivers and there was an MTP USB Device that kept refusing to install properly.

After a quick Google search I found a "e;solution"e; select MTP USB device in Device Manager, select Update driver, then manually select USB Mass Storage. Without those steps PC refused to mount the phone storage even though it was in USB Storage Mode.

Unfortunately, that doesn't fix the problem permanently because as soon as you unplug/replug the phone it will again try to install the MTP USB Device and it will, of course, fail miserably.

I traced it down to a file C:\WINDOWS\INF\wpdmtp.inf. After removing it, Windows no longer tries to install MTP USB device but installs regular mass storage. Keep in mind that this is a dangerous workaround so be sure to backup the file if you decide to try it.
Advise from somebody.
 
Old 05-28-2012, 12:15 AM   #8
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
I'm not sure what you're trying to do here. Are you trying to connect to Linux or Windows or both?

Good luck. ;-)
 
Old 05-28-2012, 03:17 AM   #9
future_computer
Member
 
Registered: Apr 2012
Distribution: Pinguy OS
Posts: 386

Original Poster
Rep: Reputation: Disabled
I want to connect to Windows as well as Linux.
Usually Linux can auto detect the phone's internal memory, but this time it does not!
 
Old 05-28-2012, 11:29 AM   #10
future_computer
Member
 
Registered: Apr 2012
Distribution: Pinguy OS
Posts: 386

Original Poster
Rep: Reputation: Disabled
My problem is still unsolved.
 
Old 05-28-2012, 08:23 PM   #11
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,573

Rep: Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433
I can't help with the Windows aspect; Sony might be your best source of assistance on that.

I do have an idea about the Linux side.

Connect up the phone, the run the dmesg command in a terminal. (you might have to run it as root to get adequate results). Then inspect the output for the part regarding the phone; there will be quite a bit of output, so it will take some looking, but it should be towards the end.

Post the relevant output here. It might help clarify the situation.

I would not suggest the lsusb command because it won't return enough information about whether and, if so, how the computer is seeing the phone's file system.
 
Old 05-29-2012, 12:40 AM   #12
future_computer
Member
 
Registered: Apr 2012
Distribution: Pinguy OS
Posts: 386

Original Poster
Rep: Reputation: Disabled
ok, will try to do it.
 
Old 05-29-2012, 04:20 PM   #13
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 876

Rep: Reputation: 184Reputation: 184
Some phones do not allow mounting of the phones storage as a USB mass storage device. You may need to root the phone and install a work around.

An alternative would be to use something like airdroid which allows access via a mini web server on your phone.
 
Old 05-29-2012, 06:58 PM   #14
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,573

Rep: Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433
I do recall that the Sony website said that there was special Sony software for connecting to Windows.

Sony does not have the best record for openness in the software world. I would not be surprised to find that they have locked this phone down.

An Android phone that cannot mount to a Linux computer would be quite the crime against nature.
 
Old 05-30-2012, 10:03 PM   #15
Peacedog
Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,292

Rep: Reputation: 167Reputation: 167
Looks like you'll need libmtp to get this working. There is more information here.

http://forum.xda-developers.com/show...t=mount+ubuntu

Good luck. ;-)
 
  


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
Ubuntu connect to Android with adb, cannot see it! Please help! PeterUK Ubuntu 8 04-30-2012 02:25 AM
howto "backup" Android (v2.2) phone with linux (Ubuntu Lucid)? SaintDanBert Linux - Mobile 2 03-15-2011 08:12 AM
ubuntu lucid will not mount android 2.1 phone storage SaintDanBert Linux - Mobile 13 11-24-2010 06:29 PM
Connect to internet via phone (bluetooth) in ubuntu ? how? BlackwaterPark Linux - General 2 04-23-2010 12:05 AM
want to connect mobile phone to ubuntu SaintDanBert Linux - Hardware 0 05-13-2009 10:30 AM


All times are GMT -5. The time now is 11:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration