Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a daemon or driver I can install on a Linux host -- in this case a Buffalo TeraStation, but I'm also curious about the general case -- which will allow that host to appear as a USB hard drive to another host when connected by a USB A male-to-male cable?

This is what I want:

  1. Connect the TeraStation to a laptop with a USB A male-to-male cable.
  2. The TeraStation then appears to the laptop as a USB drive.

It seems like this should be really easy and obvious. The Palm Pre -- which runs a Linux OS -- has a mode where it can do exactly this.

share|improve this question
i have seen special usb cable adapters specifically for this purpose, however i have not tried one (found in a cable bin at an internship). You may need to make/find a specially wired usb cable for this so as to avoid a Rx/Tx pinout mismatch – Jimsmithkka Aug 16 '10 at 9:09
This seems to be called "USB Gadget Mode" under Linux, and according to the g_mass_storage kernel module is part of it. However, warns "DO NOT CONNECT TWO HOST PORTS TOGETHER" so possibly you need a special USB "slave" connector on one side. Presumably the Palm Pre had such a connector. – oliver Nov 29 '15 at 13:24

I couldn't find anything on a quick search - interesting. Depending on what your end goal is you might want to look into iscsi and just do it via the network - which the terrastation has.

You can then present your linux box as an iscsi target to windows, linux or anything that has an iscsi initiator (client).

The client just sees your storage as a scsi disk, and treats it like any other disk...

share|improve this answer
This would be a great solution, but I am interested in a solution which can work without when a network connection is not available (rare circumstances). – Jesse Dhillon Aug 16 '10 at 7:59
sorry can't answer your question directly - may a more hardcore linux guy on here has the direct answer for yah. :) – Matt Aug 16 '10 at 17:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.