FORUMS
Remove All Ads from XDA
Honor View 10
Win an Honor 7X!

Easy-Mount Script for Mounting MTP in Ubuntu

357 posts
Thanks Meter: 363
 
By barrmulio, Senior Member on 15th July 2012, 04:59 AM
Post Reply Email Thread
The following script will install necessary files for mtp and copy a Unity launcher that runs either a mount or unmount script so you can access the filesystem on your nexus 7 without having to resort to wifi.

This is not original work, the code was adapted from here

Background...why move away from UMS to MTP?
“MTP is a big improvement over USB mass storage — for devices with lots of internal memory, a manufacturer no longer needs to come up with some hard partition between the USB mass storage and internal storage. Instead, they are all in one partition, with MTP providing access to the directory of media files that would normally be available through USB mass storage. This means there is no longer a need for apps on SD card for such devices, because what used to be the ‘internal SD card’ is in the same partition as where applications are stored. The storage on your device can be used for either applications or media, depending on what you want to put on it. You aren’t stuck with how much space the manufacturer decided to leave for the two areas.

Oh also this means that the media storage doesn’t need to be unmounted from Android when it is being access through the PC.“

Using the Script:
1. Run install_me.sh by double-clicking and running in terminal, or launch sh from terminal
2. After install script completes, it will drop you to $HOME/.local/share/applications, copy over the file called Mount Nexus 7 Filesystem to your Unity Launcher
3. Right click on the Nexus 7 icon and chose mount or unmount. Mounting takes about 5-10 seconds, so be a little patient.

Note: Although Nautilus has an eject next to the folder, it will not do anything. You need to unmount from the launcher.

Download:
http://www.mediafire.com/?fbib01go50iij7g

Script Details:
Install mtpfs package
Copy over a Nexus 7 icon for the launcher
Copy a mount and unmount script to your $HOME/.scripts folder
Copy a desktop file (unity launcher icon) to your $HOME/.local/share/applications folder
The desktop file calls either the mount or unmount script from the .scripts folder to mount as mtp filesystem

The Following 14 Users Say Thank You to barrmulio For This Useful Post: [ View ] Gift barrmulio Ad-Free
 
 
4th October 2012, 02:00 AM |#2  
Senior Member
Gävle
Thanks Meter: 55
 
More
Thanks a lot. The script also works for my Samsung Galaxy Note II
The Following User Says Thank You to CrimzonEyed For This Useful Post: [ View ] Gift CrimzonEyed Ad-Free
5th October 2012, 09:20 PM |#3  
metalwraith's Avatar
Senior Member
Flag South of Boston
Thanks Meter: 67
 
More
I'm gonna give that script a try once I get the runt off the school bus.
5th October 2012, 10:30 PM |#4  
Senior Member
Thanks Meter: 88
 
More
I had it work once or twice, but now I'm not having much luck. Nautilus seems to be force closing a lot. I even rebooted, no difference. In fact even if I force close Nautilus and bring it back, it'll continually spin until I unplug my Nexus 7. The second I unplug it, my home dir files show up perfectly.
14th October 2012, 09:29 AM |#5  
Junior Member
Thanks Meter: 0
 
More
How do you do i Gnome 3?
14th October 2012, 05:35 PM |#6  
O2Blevel's Avatar
Senior Member
Thanks Meter: 40
 
More
Quote:
Originally Posted by JaSauders

I had it work once or twice, but now I'm not having much luck. Nautilus seems to be force closing a lot. I even rebooted, no difference. In fact even if I force close Nautilus and bring it back, it'll continually spin until I unplug my Nexus 7. The second I unplug it, my home dir files show up perfectly.

I've got the same problem. I'm fairly familiar with mounting and unmounting in linux so I don't think it was anything I did.
2nd December 2012, 11:33 PM |#7  
liquidsuspension's Avatar
Member
Thanks Meter: 7
 
More
How do I assign the icon to the file? I have a "?" icon where the Nexus 7 pic should be.
4th December 2012, 02:10 AM |#8  
liquidsuspension's Avatar
Member
Thanks Meter: 7
 
More
Quote:
Originally Posted by liquidsuspension

How do I assign the icon to the file? I have a "?" icon where the Nexus 7 pic should be.

Ok I figured it out. I had to copy the icon PNG to /usr/share/pixmaps
9th December 2012, 02:38 PM |#9  
Sebianoti's Avatar
Senior Member
Flag Krakow
Thanks Meter: 209
 
Donate to Me
More
Installed it but whenever i click 'Internal Storage' it just opens the home directory in another folder and i can never get to internal storage
like so
14th December 2012, 07:15 AM |#10  
Senior Member
Thanks Meter: 346
 
More
Quote:
Originally Posted by Sebianoti

Installed it but whenever i click 'Internal Storage' it just opens the home directory in another folder and i can never get to internal storage
like so

same thing happened to me
18th December 2012, 09:49 PM |#11  
jekennedy33's Avatar
Junior Member
Flag Essex, England
Thanks Meter: 0
 
More
Quote:
Originally Posted by jesuscash

same thing happened to me

and to me... does anyone have a solution?
Post Reply Subscribe to Thread

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