Solved

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
9
353 Views
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?
0
Comment
Question by:Risky101
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 15

Expert Comment

by:.
ID: 22728689
Would you not consider using SAMBA instead, then you could have network drives rather than a USB drive?
0
 
LVL 2

Accepted Solution

by:
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.
0
 

Author Comment

by:Risky101
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?
0
Congratulations! You’re Certified – Now What?

Starting a new career can be overwhelming. Becoming certified in your field of expertise is a great start, but where do you go from here?  Here are some tips to help you on your career journey.

 
LVL 5

Assisted Solution

by:ifreq
ifreq earned 250 total points
ID: 22746831
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
 
LVL 2

Expert Comment

by:wdeviers
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.
0
 

Author Comment

by:Risky101
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.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

617 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