Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
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
Medium Priority
?
356 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 1000 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
Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

 
LVL 5

Assisted Solution

by:ifreq
ifreq earned 1000 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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

721 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