There are many Raspberry Pi guides out there that helps you to transform your Pi into a server supporting downloading torrents and sharing files via Samba and DLNA. However, they all have a major flaw: supporting only ONE hard drive. In this instructables, I will help you to setup Transmission, Samba and miniDLNA on your Raspberry Pi to support as many hard drives as you like (as long as there is enough power)

List of required components:
1. Raspberry Pi Model B for internet access
2. Powered USB hub
----- http://www.ebay.com.au/itm/Brand-new-USB-2-0-HUB-Powered-7-Port-High-speed-AC-Adapter-Cable-/251280391263?pt=AU_Laptop_Accessories&hash=item3a817a7c5f&_uhb=1
3. Power supply with 3-4A
----- http://www.ebay.com.au/itm/5V-AC-Power-Supply-Charger-Adapter-for-D-Link-DUBH7-DUB-H7-Hub-5V-3A-5-5-2-5-/181291153550?pt=AU_Laptop_Accessories&hash=item2a35cb788e&_uhb=1
4. (Optional) USB Wi-Fi dongle. Guides on setting up the Wi-Fi dongle are plentiful. You can do it with command line via SSH or from the GUI.

Step 1: Hooking up the Raspberry Pi

On the software side, I'm using the default Raspbian image, then install the bits and pieces I need later on. There are plenty of guides on installing the image and setting up the Pi.

Hardware wise,
Step 1.
Discard the power adapter that comes with the powered USB Hub if it supplies less than 3A. You need 700mA for the Pi and 500mA for each hard drive you connected.

Step 2.
Connect the USB Wi-Fi dongle to the Raspberry Pi.

Step 3.
Connect the USB output cable from the hub to the Pi. This should also power the Pi, so no need for a mini USB cable.

Step 4.
Connect the hard drives to the hub,

Step 5.
Power on the Pi. Powering Pi before plugging in USB components may restart Raspberry Pi.
<p>How can I access it outside by my network. I've used a script which changes my dynamic ip and updates it to my DNS.<br>I guess I've to make few setting in my router broadcom router and sshd.conf ?</p>
<p>Thanks for the guide! made it and im loving it!</p>
<p>Anybody can help with MiniDlna and .srt subtitles? It seems to me that it doesn't work. I have placed the .srt, named exactly the same as my .mp4 (or .mkv). - also case sensitive.</p><p>I have tried a lot of DLNA servers with no luck :(</p><p>My smart tv is capable of rendering .srt files, this works fine with I try with my PS3 Media Server on my windows desktop.</p><p>Thanks,</p><p>G.</p>
<p>Thanks! I would try rTorrent the next time :D</p>
What about the network speed? I managed to reach only 4MB/s with ext4 and 1MB/s with NTFS, while it is more than 50MB/s on my PC.
<p>Old post, but just in case somebody runs into the same problem, consider that the raspberry Pi has a slow 100Mb/s and only USB 2.0.</p><p>Not sure what was your setup with the PC, but 50MB/s is 400Mb/s, so I am guessing you are testing over gigabit lan.</p><p>That kind of speed is unachievable with a raspberry Pi, including the very latest model. It makes for a pretty good server, media center and a number of other things, but if one wants high network speed a dedicated NAS or a router like the the Netgear r7000, which has usb3.0 and samba/dlna out of the box, are both a better solution.</p><p>And, admittedly, even if many reviewers say the netgear can do 57MB/s or so over lan, with mine and a usb 3.0 HD I never really managed more than 27MB/s.</p>
<p>I haven't got around to do a network speed test and I'm abroad right now, so can't do one. Before I left, I tested the network with 4 devices (2 Android's, an iPad and a Bravia TV) connecting to the DLNA server playing an AVI file, each was streaming at around 150KB/s-250KB/s, so that's a total of 600KB/s-1MB/s coming out of the Raspberry Pi reading 1 file on a NTFS hard drive. </p><p>Just for clarification, is your question referring to the NTFS read speed, DLNA speed or Samba speed?</p>
<p>hi,</p><p>sometimes the minidlna service is working but my tv doesn't see it. So i have to stop it and restart it.... why?</p>
<p>Day 3 with my Raspi B+ and am still trying to wrap my head around a new programming language, (outside of Basic back when I was a teen in the 90's), and I have found this Instructable to be very informative but have come across some troubles when trying to identify my external (non powered 1Tb WD HDD) I fear that even the B+ does not have the &quot;oompff&quot; to get the drive up to speed. My concern being; is it me, or is it my Pi? I have been trying to figure out a way to stream my media to friends and thus far I have been unsuccessful and thought the Pi was the way to go as well as learn a few things along the way. </p>
There's a setting somewhere in the Pi that lets you increase the total current supplied to its USB ports. Check the Pi forum. I haven't got the newer model so I can't help you here.
<p>How fast do your torrents download? I am using Openelec and my download speed jumps from 50kb/s to 700kb/s. My internet speed is 120Mb/s down and 20Mb/s up, is there some settings I can change around to increase my download speed. Thanks and cool Pi you got there :D</p>
<p>to get info on the harddrives can I suggest th eblkid tool?<br>sudo blkid<br>and it shows it very structured</p>
<p>OK, I think I succeeded. Allow me to share my experience here as it might help others:<br>Turns out it wasnt a 1TB hdd but a 2TB hdd, a seagate and a WD<br>As previously the raspberry didnt even recognize the WD, I decided to try that one again:<br>At first I did an upgrade with &quot;sudo apt-get dist-upgrade&quot; as you suggested. My OS is a raspian distro from Ghoulman. Update took about an hour so i guess a lot neded to be done :-)<br>Then I connected the 2TB WD hdd. I made sure that it was already powered up before I connected the USB. it went direct into the USB port so without a powered hub.<br>With webmin I could see that it was connected now and it was actually already mounted, but 'not in use' and it was labelled as an 'MSDOS' disk so I guessed it was vfat (wrong).<br>after fruitless attempts to get it properly mounted, resulting in bad fs, bad option bad superblock, I came across the </p><p>&quot;parted -l&quot; command.<br>Output was: <br>Model: WD Ext HDD 1021 (scsi) Disk /dev/sda: 2000GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 1049kB 2000GB 2000GB primary ntfs <br><br>and yes, there it was ntfs!! so indeed I had been using the wrong type.<br>a quick:<br>&quot;sudo mount -t ntfs-3g /dev/sda1 /media/WD2TB&quot; got it properly mounted<br>end a quick edit of the samba file made it accessible.<br>Now I only have to re-edit the fstab file to change &quot;vfat&quot; into &quot;ntfs-3g&quot;<br>and I am sure that boot will be ok then.<br>I presume my other disk wont give any problems either.</p><p>I am not sure where the earlier problems were, old distribution (I put it on there 3 mo ago)? did I perhaps connect the USB before it was properly powered? I dont know, but at least it works now</p><p>Thanks for yr suggestions, the upgrade was possibly the smartest i could do</p>
<p>come to think of it... my harddrives have a psu of their own, so they shldnt draw that much from the USB</p>
<p>Nice. any advice on the harddisks? till now I haven't been able to get some 1TB harddisks working on the raspberry.<br>Supposedly a bug in raspbian, but i see plenty of people adding one</p>
<p>One of my hard disks is a WD 1TB so it shouldn't be a bug. Upgrade your Pi's distro with &quot;sudo apt-get dist-upgrade&quot;, it may solve the problem. My experience with hard drives not working with Pi is that there isn't enough power. So even if you are plugging only 1 hard drive, plug through a powered USB hub. </p>
Thanks, I have a seagate 1TB.<br>There is a description of a bug for 1Tb disks, but I can use it in my ubuntu 13. but not in my raspbian.<br>So,, reading abt that big with 'fast, huge disks' I thought that must be the problem.<br>But.... I had not thought of your suggestion yet, that it could be powerfailure. I will try the powered hub suggestion <br>Will order one and report back. Thanks for yr help <br>
Cool!!!!!! Pls follow me!!!!!!

About This Instructable




Bio: I'm an electrical and electronic engineering student. I make things when I need them or simply because I can :)
More by rampadc:Soldering headers without drilling holesA Better ThinkPad USB Keyboard AdapterMake a ThinkPad keyboard USB adapter with Arduino
Add instructable to: