<?xml version="1.0" encoding="UTF-8"?>
<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>Chris JeanChris Jean &#187; mount</title>
	<atom:link href="http://chrisjean.com/tag/mount/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisjean.com</link>
	<description>Linux, WordPress, programming, anime, and other stuff</description>
	<lastBuildDate>Tue, 08 May 2012 20:36:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Mount Dell Studio 17 Card Reader in Ubuntu</title>
		<link>http://chrisjean.com/2009/02/10/mount-dell-studio-17-card-reader-in-ubuntu/</link>
		<comments>http://chrisjean.com/2009/02/10/mount-dell-studio-17-card-reader-in-ubuntu/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 06:00:49 +0000</pubDate>
		<dc:creator>Chris Jean</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips 'n Tricks]]></category>
		<category><![CDATA[card reader]]></category>
		<category><![CDATA[Dell Studio 17]]></category>
		<category><![CDATA[lspci]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[SD Card]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://gaarai.com/?p=970</guid>
		<description><![CDATA[I&#8217;m using Ubuntu 8.10 64-bit, Intrepid Ibex, but these instructions should work for users of other distros (such as Linux Mint, Fedora, Sabayon, etc) as well. This morning I needed to pull some images off of my camera&#8217;s SD card using my Dell Studio 17&#8242;s built-in card reader. I plugged the card in, got sidetracked [...]]]></description>
			<content:encoded><![CDATA[<!-- filtered -->
<p>I&#8217;m using Ubuntu 8.10 64-bit, Intrepid Ibex, but these instructions should work for users of other distros (such as Linux Mint, Fedora, Sabayon, etc) as well.</p>
<p>This morning I needed to pull some images off of my camera&#8217;s SD card using my Dell Studio 17&#8242;s built-in card reader. I plugged the card in, got sidetracked for a few minutes, and then realized that I couldn&#8217;t find a mount point for my card.</p>
<p>Usually when I plug in the card, it is automatically identified and mounted. Then Nautilus would show a listing in the left-hand pane for the card allowing me easy access to the contents. However, that didn&#8217;t happen today.</p>
<p>I thought about rebooting in order to see if it was just a fluke, but I didn&#8217;t want to save all my projects, close out all my applications, reboot, and load everything back up. So, I thought I&#8217;d see about mounting the device manually. Fortunately, it wasn&#8217;t difficult at all.</p>
<p><span id="more-970"></span></p>
<h3>Hardware Compatibility</h3>
<p>I&#8217;m running a Dell Studio 1735 laptop. The exact card adapter that I&#8217;m using is a Ricoh R5C822. If you are not using the same adapter on the same computer, the instructions could vary greatly since the hardware configuration will be different.</p>
<p>To verify that you are using the same adapter, run the following command in Terminal (Applications &gt; Accessories &gt; Terminal):</p>
<pre style="padding-left:20px;">lspci|grep R5C822</pre>
<p>You should get output similar to the following if you have the same adapter:</p>
<pre style="padding-left:20px;">03:01.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22)</pre>
<p>Of course, trying the following instructions even if your system varies is still worth a try. If you successfully use the instructions on a different system/adapter, please leave a comment about your results.</p>
<h3>Mounting the Device</h3>
<p>Simply run the following two commands in Terminal to mount the card to a new mount point called /media/cardreader:</p>
<pre style="padding-left:20px;">sudo mkdir /media/cardreader
sudo mount /dev/mmcblk0p1 /media/cardreader</pre>
<p>This should result in /media/cardreader being filled with the contents of the inserted card and by a new mounted device called cardreader poping up on Nautilus.</p>
<p>When you are done with the card, close out all the applications that are referring to files or folders on the card. You can then unmount it and remove the unneeded mount point by running the following:</p>
<pre style="padding-left:20px;">sudo umount /media/cardreader
sudo rmdir /media/cardreader</pre>
<p>If you need, you could create a couple of shell scripts to run these commands quickly when you need access to the card reader.</p>
<h3>Conclusion</h3>
<p>I still have no idea why my card reader did not automatically mount when I plugged in the card. My hope is that this is a temporary problem and not a persistent issue. I&#8217;ll test more later on. If this is more than a temporary issue, I&#8217;ll find a solution and post it here.</p>
<p>For right now, the card reader worked as expected after a reboot. I popped the card into the reader, and the pop-up asked me what I&#8217;d like to do with the files.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjean.com/2009/02/10/mount-dell-studio-17-card-reader-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forcing a Device to Unmount in Ubuntu Linux</title>
		<link>http://chrisjean.com/2009/02/07/forcing-a-device-to-unmount-in-ubuntu-linux/</link>
		<comments>http://chrisjean.com/2009/02/07/forcing-a-device-to-unmount-in-ubuntu-linux/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 06:00:00 +0000</pubDate>
		<dc:creator>Chris Jean</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips 'n Tricks]]></category>
		<category><![CDATA[fuser]]></category>
		<category><![CDATA[Mastering The Command Line]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://gaarai.com/?p=929</guid>
		<description><![CDATA[I recently ran into an issue where a mounted SSHFS filesystem refused to unmount. I tried to unmount it from inside Nautilus by right-clicking the mount and selecting Unmount, but this failed with an error message. The error told me that it couldn&#8217;t unmount the device and gave a reason of &#8220;mount disagrees with the [...]]]></description>
			<content:encoded><![CDATA[<!-- filtered -->
<p>I recently ran into an issue where a mounted <a href="http://fuse.sourceforge.net/sshfs.html" target="_blank">SSHFS filesystem</a> refused to unmount.</p>
<p>I tried to unmount it from inside <a href="http://projects.gnome.org/nautilus/" target="_blank">Nautilus</a> by right-clicking the mount and selecting Unmount, but this failed with an error message. The error told me that it couldn&#8217;t unmount the device and gave a reason of &#8220;mount disagrees with the fstab&#8221;.</p>
<p>I then edited the fstab (sudo vi /etc/fstab) and commented out the entry for the device. I tried to unmount in Nautilus again, but this time it told me that I couldn&#8217;t unmount the device because I wasn&#8217;t root and the device was not listed in fstab. I then uncommented the previously commented line and saved the file again.</p>
<p><span id="more-929"></span></p>
<p>Time to get dirty. I ran &#8220;sudo umount /mnt/share&#8221; to try to force it, but this failed with a new error message:</p>
<pre style="padding-left:20px;">umount: /mnt/share: device is busy.
        (In some cases useful info about processes that use
        the device is found by lsof(8) or fuser(1))</pre>
<p>This was getting personal now as the previous messages said nothing about the device being in use. I closed out every application and tried again. Same error message.</p>
<p>I followed the instructions and ran &#8220;man lsof&#8221; followed by &#8220;man fuser&#8221; to find out more about those recommended commands. fuser was the winner.</p>
<p>fuser allows you to find out detailed information about processes that are using specific files or sockets. In addition to getting information, it allows you to kill processes accessing the file or socket. This was exactly what I was looking for.</p>
<p>After reading up on the fuser syntax, I ran the following:</p>
<pre style="padding-left:20px;">sudo fuser -km /mnt/share</pre>
<p>This command basically translates into &#8220;find every process that is accessing the /mnt/share mount point and kill it&#8221;. Since I was unsure of the ownership of the processes that would be killed, I ran it with sudo to make sure that any processes could be killed.</p>
<p>The command returned &#8220;/mnt/share/: 9004c&#8221; which I believe indicates that a process was killed.</p>
<p>Again, I ran:</p>
<pre style="padding-left:20px;">sudo umount /mnt/share</pre>
<p>This command cheerily replied with nothing, which is a good sign as it means that the umount command succeeded.</p>
<p>Finally, the mount is unmounted. Now if only I could remember what I was trying to do when this problem happened&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisjean.com/2009/02/07/forcing-a-device-to-unmount-in-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

