<?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>Connecting the dots... &#187; DNS323</title>
	<atom:link href="http://blog.rajatpandit.com/tag/dns323/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rajatpandit.com</link>
	<description>Thoughts on Web Development, Infrastructure and Application Scalability</description>
	<lastBuildDate>Thu, 29 Dec 2011 13:21:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Mounting USB drive on DNS323</title>
		<link>http://blog.rajatpandit.com/2009/12/05/mounting-usb-drive-on-dns323/</link>
		<comments>http://blog.rajatpandit.com/2009/12/05/mounting-usb-drive-on-dns323/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 15:36:51 +0000</pubDate>
		<dc:creator>rp</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[DNS323]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[NAS]]></category>
		<category><![CDATA[unmount]]></category>

		<guid isPermaLink="false">http://blog.rajatpandit.com/?p=412</guid>
		<description><![CDATA[As a followup from my previous post, documenting how to get the NAS box to mount an external drive. It has its own advantages, primarily that it allows you to...]]></description>
			<content:encoded><![CDATA[<p>As a followup from my previous post, documenting how to get the NAS box to mount an external drive. It has its own advantages, primarily that it allows you to transfer your old backed-up data quickly and also in case you need to get data out of there (in case of one of the drive fails etc).<br />
So simple steps:<br />
Step 1:<br />
ssh into the box and download the module from <a href="http://www.domaigne.com/download/dns-323/usb-storage.ko">here</a>.</p>
<pre class="brush: bash; title: ; notranslate">
# wget http://www.domaigne.com/download/dns-323/usb-storage.ko
# mkdir /mnt/HD_a2/mod
# cp usb-storage.ko /mnt/HD_a2/mod
</pre>
<p>Step 2:<br />
Load the module and verify in the memory</p>
<pre class="brush: bash; title: ; notranslate">
# insmod usb-storage.ko
# lsmod
Module                  Size  Used by    Not tainted
usb_storage            29956  1
usblp                  10976  0
sd_mod                 14484  10
</pre>
<p>That confirms that the module is loaded.Now connect your external hard drive and  double confirm everything by checking the system log messages:</p>
<pre class="brush: bash; title: ; notranslate">
# dmesg
#######################################
#              HD0 awake now !        #
#######################################
Initializing USB Mass Storage driver...
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
  Vendor: SAMSUNG   Model: HD500LJ           Rev:
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sdc: 976773168 512-byte hdwr sectors (500108 MB)
sdc: assuming drive cache: write through
SCSI device sdc: 976773168 512-byte hdwr sectors (500108 MB)
sdc: assuming drive cache: write through
 sdc: sdc1
Attached scsi disk sdc at scsi2, channel 0, id 0, lun 0
Attached scsi generic sg2 at scsi2, channel 0, id 0, lun 0,  type 0
usb-storage: device scan complete
</pre>
<p>That shows that my drive <code> HD500LJ</code> is now connected.</p>
<p>Now mount the hdd</p>
<pre class="brush: bash; title: ; notranslate">
# mount -t vfat /dev/sdc1 /mnt/HD_a2/ext/
</pre>
<p>Now when you mount your volume on your windows/mac, you would be able to see ext folder which is basically the external hdd mounted.</p>
<p>Now, you can ssh into the box and move/copy files around to your hearts content, however make sure you remember to unmount it before you disconnect it, to avoid the risk of loosing data.</p>
<pre class="brush: bash; title: ; notranslate">
#umount /mnt/HD_a2/ext
</pre>
<div id="in_post_ad_bottom_1" style="clear:both;margin:0;padding:0;"><div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-bp */
google_ad_slot = "7787511801";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="brp-bp-234">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4254382394977039";
/* brp-234x60-BP-1 */
google_ad_slot = "9111022353";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div></div><div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://blog.rajatpandit.com/2009/12/05/mounting-usb-drive-on-dns323/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

