LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-21-2015, 03:23 PM   #1
Devyn
Member
 
Registered: Oct 2004
Posts: 98

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.

Cheers,
DH
 
Old 05-21-2015, 03:45 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,150

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
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
Devyn
Member
 
Registered: Oct 2004
Posts: 98

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.

Cheers,
DH
 
Old 05-21-2015, 06:33 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,751

Rep: Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929Reputation: 5929
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.

http://www.hardkernel.com/main/main.php
 
Old 05-22-2015, 02:39 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,001

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:20 PM.

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