Android/Ubuntu mounting as USB storage device

Linux based operating system for mobile phones.

Android/Ubuntu mounting as USB storage device

Postby Calum » Thu Mar 13, 2014 12:53 pm

Hi folks,

I recently purchased a tablet PC, it connects to Ubuntu 12 no bother at all via the USB lead provided. You plug it in, click two buttons on the tablet, and it shows up as a mounted USB storage device in Ubuntu.

Great!

Now, i then got an HTC One mobile phone, with Android on it, plugged it into the computer using the USB cable provided, and it says USB connected, and MTP enabled (which i don't know what that means).

A quick google of why it isn't mounting, or apparently being seen automatically by Ubuntu only showed up things to do with MacOS, Windows 7, and/or different but similar mounting problems. Nothing close enough to my issue that i could find (i am sure the truth is out there, but...)

So. Does anybody here know how i can mount the phone as a USB device in Ubuntu? I don't even know how to check the storage capacity on the phone itself and was hoping to do that from Ubuntu.

By the way hi everyone. Sorry it's been so long (if indeed anyone's still here!) i do miss you guys, but i hardly ever have any computer problems to come and talk about anymore!
User avatar
Calum
guru
guru
 
Posts: 1343
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland

Re: Android/Ubuntu mounting as USB storage device

Postby Basher52 » Sat Mar 15, 2014 5:45 pm

Hi there, long time no see :P

MTP means Media Transfer Protocol. It's the main way that most newer Android phones interface via USB with a computer, allowing your computer to browse certain folders on the phone, and transfer media files like photos, music, and videos...
and this kinda suck big time :( since we all want to fiddle with the rest of the memory too... right :)

but have a look here if you haven't seen this already: http://www.mysolutions.it/mounting-your-mtp-androids-sd-card-on-ubuntu/ I haven't checked it thought... I just found it so don't blame me if it won't suit you :lol:

The only good thing about the new way to handle this with the SD Card is that it can use all the memory to install program on(not just the internal) but that means that you can only access it as MTP as it's always in use.
I got "some" problems with mounting this in winblows as 'USB Storage' but haven't seen anything if this in Linux...yet :P
Oh... but I use Fedora mostly if that would make any difference which I doubt.
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE

Re: Android/Ubuntu mounting as USB storage device

Postby Calum » Tue Mar 18, 2014 3:21 pm

thanks! that sets me on the right track, though i get lost when trying to detect the phone's VID and PID. I get a very long output (so piped it to less to get a look at it) and the first few lines show:

Code: Select all
Unable to open ~/.mtpz-data for reading, MTPZ disabled.libmtp version: 1.1.5

Listing raw device(s)
   Found 1 device(s):
   0bb4:0f64 @ bus 1, dev 9
Attempting to connect device(s)

So either there is a problem or those hexy looking numbers are the VID and PID i am looking for. In fact that's what i am going to assume. I stopped there though, due to not enough time and not enough urgency, but i will follow the rest of the configuration instructions shortly and see how i get on. MTP mode is on out of the box, so i have a feeling i just need to set it up as it says on the ubuntu end and it'll all be fine.

I actually never thought of booting into windows to see if it would mount in that with no config. This laptop came with windows so i just fdisked its partition down to the smallest workable size and forgot it was on there, but it does still "work" (if you can call waiting forever for the endless updates to install each time i log in to it) so maybe i could use that in the meantime. I'd have to move my files to the windows partition though before rebooting (since the files are going phonewards, not the other way) so maybe it's not worth the bother.

Thanks again!

Find me on facebook by the way. In fact there's even a stop microsoft group that refalm set up that i am administrator of for some reason!
User avatar
Calum
guru
guru
 
Posts: 1343
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland

Re: Android/Ubuntu mounting as USB storage device

Postby Basher52 » Tue Mar 18, 2014 5:43 pm

otherwise try this place: http://forum.xda-developers.com
Best place I've seen for "all" Android phones.
User avatar
Basher52
guru
guru
 
Posts: 881
Joined: Wed Oct 22, 2003 5:57 am
Location: .SE


Return to Android

Who is online

Users browsing this forum: No registered users and 0 guests

cron