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

Posted on 2008-10-16
Last Modified: 2013-12-15
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?
Question by:Risky101
LVL 15

Expert Comment

by:It breaks therefore I am
ID: 22728689
Would you not consider using SAMBA instead, then you could have network drives rather than a USB drive?

Accepted Solution

wdeviers earned 250 total points
ID: 22734929
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.

Author Comment

ID: 22735469
> 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?
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.


Assisted Solution

ifreq earned 250 total points
ID: 22746831
For USB Slave mode this should get you started:
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.


Expert Comment

ID: 22747057
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.

Author Comment

ID: 22756326
> 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.

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now