How do I set Linux up, so that it acts as a USB drive? ie: plug a USB cable into the Linux box, it appears just like an external 40GB USB HD

Instead of using an external USB hard drive, I want to use a Linux machine with a bunch of hard drives.

How would I set up Linux to simulate an external hard drive?
Risky101Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
wdeviersConnect With a Mentor Commented:
You typically have to have a USB chip that implements USB device support (instead of USB Host support which is what computers have).  If you have a device that implements USB device/target support, then there is a driver in the kernel compile that you have to turn on.  I don't remember exactly what it is; you may have to patch it from outside.
0
 
.Commented:
Would you not consider using SAMBA instead, then you could have network drives rather than a USB drive?
0
 
Risky101Author Commented:
> You typically have to have a USB chip that implements USB device support (instead of
> USB Host support which is what computers have).

We have that; its a PCI card with a USB slave chip (almost all USB ports on a standard PC are USB host).

Do you happen to know which driver/module to switch on, and how to configure it so it the entire Linux machine acts like a large external USB hard drive to anything thats plugged into the USB slave port?
0
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

 
ifreqConnect With a Mentor Commented:
For USB Slave mode this should get you started: http://www.linux-usb.org/gadget/
Thought the information seems to be a bit outdated and there is no good solution available.

I would recommend you to think about using firewire instead. You get instant fw-network when connecting two firewire capable devices. Do a minimal minimal  Linux install on your "disk-server" and include NFS-service and IP-over-Firewire.





0
 
wdeviersCommented:
I don't offhand, but tomorrow in some extra time I'll download a new kernel and compile it to see what I can come up with.
0
 
Risky101Author Commented:
> I don't offhand, but tomorrow in some extra time I'll
> download a new kernel and compile it to see what I can come up with.

It would be great if you could do this - thanks! Much appreciated.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.