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
349 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
9 Comments
 
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?
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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Fine Tune your automatic Updates for Ubuntu / Debian
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…
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…

777 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