Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-21-2015, 03:23 PM   #1
Registered: Oct 2004
Posts: 97

Rep: Reputation: 15
Linux USB port as a 'flash disk'

Hey All,

Is there a way to present a path or other block device to a USB port on a Linux server then have that port connected to a USB port of another device (ie USB to USB) and have it look like a flash disk?

I can plug a USB flash disk to a router just fine. But if I wanted a device to access a path off of another device int he absence of NFS or CIFS capability, that would be handy.

In other words, anyway to assign storage to a USB port in Linux? It would be akin to something like SAN with a target and source just with USB.

Old 05-21-2015, 03:45 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,764

Rep: Reputation: 745Reputation: 745Reputation: 745Reputation: 745Reputation: 745Reputation: 745Reputation: 745
usb ports are mostly not symmetrical. Devices have different connectors than hosts. For example, hosts provide power and devices consume power. Do you have a computer with a device port?
Old 05-21-2015, 06:08 PM   #3
Registered: Oct 2004
Posts: 97

Original Poster
Rep: Reputation: 15
No, only standard USB ports provided by the MOBO.

I know I can cut power to the USB ports using the proc filesystem and manipulate many other things on them so curious if it could be set to point to a block device instead.

Old 05-21-2015, 06:33 PM   #4
Registered: Aug 2002
Posts: 15,848

Rep: Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799
Power and physical connector hardware are one factor but desktops and laptops typically only have USB host controllers and can not be configured as a device. Many single board computers have both or an OTG port which you could use the USB gadget mass storage module. I personally have not tried doing this yet.
Old 05-22-2015, 02:39 PM   #5
Registered: Mar 2008
Posts: 16,544

Rep: Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428Reputation: 2428
Mount the usb as an iscsi and it will then be available to remote systems.

What you actually asked was to use a usb in one system and have it attached to another system as a usb. While that may be possible in a round about way such as a virtual machine. Possibly some windows set ups can do that too.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Mini Distro Suggestion: Emulate USB Flash Disk layanto Linux - Software 4 04-25-2009 03:54 PM
LXer: Comparing Linux USB flash disk distros LXer Syndicated Linux News 0 05-22-2008 12:40 PM
USB flash disk help bakazer Solaris / OpenSolaris 1 06-24-2005 09:30 AM
USB flash disk. ValidiusMaximus Linux - Software 0 12-30-2004 02:45 PM
USB flash disk and Linux? Tommi Linux - Hardware 26 07-29-2003 10:16 AM

All times are GMT -5. The time now is 02:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration