Main Site Documentation

Connecting Hard Drive To Raptor


#1

I was wondering, is it possible to connect a external hard drive via usb to a FEZ raptor? Like a western digital passport or something like that?


#2

I think any USB mass storage device should work.
So give it a try, what could go wrong (except loosing all data on the hard drive :whistle:


#3

I am kinda new to this stuff so I don’t know where to really start. Once I connect, how do I see any files or directories. How do I delete files and directories. Stuff like that I suppose.
Any help would be awesome. :slight_smile:


#4

Check out this code share entry:
https://www.ghielectronics.com/community/codeshare/entry/630

It looks on SD card and all connected USB drives for a specific file.

It contains all code you need for this.
As soon as your drive is mounted and you have the root directory, the API for accessing it is very similar to normal .net on Windows.


#5

I have used SSD and hard disk drives with MF devices. You do have to watch the power requirements if get power from the MF device. With a n external power supply for the drive there should be no problems.


#6

@ Mike - Were those drives connected via USB?


#7

Yes. USBHost module. I have also used a USB hub to attach multiple devices.


#8

That sounds awesome. I will have to try it out. As for powering the drive with seperate power, how would I go about doing that? Is there a breakout module for that or would I have to make my own?


#9

The hard drive must be powered separately:
You can use an extra power supply for HDD (if available) or a USB hub with extra power in between. The USB Host module can not supply as much power via USB than a hib can do.


#10

That sounds good. Any good recommendations for a USB externally powered hub?
Thanks for the help btw. Very greatful. :slight_smile:


#11

I usually take what’s on stock at work.
I never had any real problems with USB hubs.
But I think: the less fancy it looks, the better it is.


#12

Another alternative, if you have the choice or happen to have one, is to use an HDD enclosure that has 2 USB connectors, one for data & power, one for power only. Attach the data/power to your device, the other to a charger/ps such as this:


or whatever suits your locale and situation.

I’ve used this strategy to add 60GB SSD’s to my RPi and BBB. I used this enclosure:


#13

@ Mike - I forgot to ask… what sort of performance have you gotten from the HDD?


#14

I have not measured performance. it is fast enough.