<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	     xmlns:dc="http://purl.org/dc/elements/1.1/"
	   xmlns:atom="http://www.w3.org/2005/Atom"
	     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>Connecting Samsung ICS to Ubuntu using MTP &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/2012/01/connecting-samsung-ics-to-ubuntu-using-mtp/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Tue, 20 Oct 2015 21:55:38 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>Connecting Samsung ICS to Ubuntu using MTP &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Connecting Samsung ICS to Ubuntu using MTP]]></title>
		<link>https://shkspr.mobi/blog/2012/01/connecting-samsung-ics-to-ubuntu-using-mtp/</link>
					<comments>https://shkspr.mobi/blog/2012/01/connecting-samsung-ics-to-ubuntu-using-mtp/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Tue, 03 Jan 2012 15:45:42 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[ics]]></category>
		<category><![CDATA[mtp]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">http://shkspr.mobi/blog/?p=5132</guid>

					<description><![CDATA[(These notes are mostly for my own benefit).  Android is moving away from USB Mass Storage.  You will no longer be able to plug in a USB cable and have your Android show up as a USB disk.  There are some good technical reasons for this, but it is a pain if you want to copy some files to your phone.  The new system - MTP - isn&#039;t automagically detected in Ubuntu.  This is something which is likely…]]></description>
										<content:encoded><![CDATA[<p>(These notes are mostly for my own benefit).</p>

<p>Android is moving away from USB Mass Storage.  You will no longer be able to plug in a USB cable and have your Android show up as a USB disk.  There are some <a href="http://www.engadget.com/2011/11/21/ice-cream-sandwich-supports-usb-mass-storage-after-all-galaxy-n/">good technical reasons</a> for this, but it is a pain if you want to copy some files to your phone.  The new system - MTP - isn't automagically detected in Ubuntu.  This is something which is likely to be fixed in later versions of Ubuntu - but for now you'll have to hack around it.</p>

<p>The crazy cats at <a href="http://www.omgubuntu.co.uk/2011/12/how-to-connect-your-android-ice-cream-sandwich-phone-to-ubuntu-for-file-access/">omgUbuntu have a tutorial</a> which I have adapted for the Samasung Galaxy S (running <a href="http://forum.xda-developers.com/showthread.php?t=1363593">ICS from teamhacksung</a>).</p>

<p>First, install the MTP tools.</p>

<pre>sudo apt-get install mtp-tools mtpfs</pre>

<p>Connect the phone to the computer using USB.</p>

<p>To check that MTP is installed and working, run the command</p>

<pre>mtp-detect</pre>

<p>You should see a spool of text as MTP detects the phone.</p>

<p>To create the rules which allow Ubuntu to detect the phone, create a new rule file like so:</p>

<pre>sudo nano /etc/udev/rules.d/51-android.rules</pre>

<p>Add in this line of text</p>

<pre>SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0666"</pre>

<p>If you're using a different device, run this command to get the correct idVendor and idProduct:</p>

<pre>mtp-detect | grep idVendor
mtp-detect | grep idProduct</pre>

<p>We'll need to restart udev so it can pick up the new rule.</p>

<pre>sudo service udev restart</pre>

<p>Then create a directory in your filesystem which you can use to access your phone.</p>

<pre>sudo mkdir /media/GalaxyS
sudo chmod a+rwx /media/GalaxyS
</pre>

<p>Now we need to add ourselves to fuse.</p>

<pre>sudo adduser YOURUSERNAME fuse
sudo nano /etc/fuse.conf</pre>

<p>The last line probably reads</p>

<pre>#user_allow_other</pre>

<p>Remove the "#" so you're left with:</p>

<pre>user_allow_other</pre>

<p>Save the file.</p>

<p>We're going to create two commands "android-connect" and "android-disconnect".  When run, these will allow you to connect to your phone, then safely disconnect.</p>

<pre>echo "alias android-connect="mtpfs -o allow_other /media/GalaxyS"" &gt;&gt; ~/.bashrc
echo "alias android-disconnect="fusermount -u /media/GalaxyS"" &gt;&gt; ~/.bashrc
source ~/.bashrc
</pre>

<p>Restart the computer.  Make sure the phone is connected via USB.  Open a terminal and run</p>

<pre>android-connect</pre>

<p>Open your file manager and go to "/media/GalaxyS"
<img src="https://shkspr.mobi/blog/wp-content/uploads/2012/01/ICS-MTP.png" alt="ICS MTP" title="ICS MTP" width="190" height="413" class="aligncenter size-full wp-image-5136"></p>

<p>Once you're done, disconnect the device by running</p>

<pre>android-disconnect</pre>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=5132&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2012/01/connecting-samsung-ics-to-ubuntu-using-mtp/feed/</wfw:commentRss>
			<slash:comments>15</slash:comments>
		
		
			</item>
	</channel>
</rss>
