LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 09-18-2006, 03:46 PM   #1
enocompton
LQ Newbie
 
Registered: Sep 2006
Posts: 4

Rep: Reputation: 0
Post use linux to simulate usb thumb drive


Using a small linux box, I need to simulate a usb thumb drive. Supposing somebody here must have done that long ago, would you share the lessons you learned, please?

Thankyou

Eno Compton
 
Old 09-18-2006, 04:35 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu (x86), Debian (PPC)
Posts: 3,528

Rep: Reputation: 60
Question

Simulate for what purpose? If you're just looking for a small filesystem which you will mount and un-mount manually you could use a loopback filesystem (i.e. a filesystem in a file). If you want to simulate the plugging of an actual device, I don't know. Perhaps there is some option to do this in one of the virtual machine programs?
 
Old 09-19-2006, 08:34 AM   #3
enocompton
LQ Newbie
 
Registered: Sep 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Post simulate usb drive

We produce airborne disks for various avionics also of our manufacture. The disks need to be loaded by a terrestrial device. For this function, we envision a tiny linux box that interfaces to the disk and simulates a usb disk. The operator would plug our box, via a usb cable, into an ordinary windows box on which our airborne disk would appear just like any thumb drive, albeit much larger.

From that point, the operator could drag and drop data on our disk just as he would an ordinary usb drive.

What's a virtual machine?

Eno
 
Old 09-19-2006, 09:19 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu (x86), Debian (PPC)
Posts: 3,528

Rep: Reputation: 60
Ah, so you want Linux to have a usb cable coming from your Linux box, which when connected to another computer will act like a UMS (universal mass storage) device? Googling is tough because the much more common use of plugging a UMS device into linux swamps the hits.

You might have some luck asking the question in an embedded linux specialist group. The forums at LinuxDevices is probably a good place to start. If you find something, please post a link in this thread - I'd like to know.

Virtual machines are programs which pretend to be computers. You can install operating systems "into" them and all sorts of similar stuff. Some emulate various bits of hardware, such as USB ports. Examples of x86 architecture virtual machines are vmware or qemu. If you want to prototype some hardware in software, using virtual machines might be one way to go, but unless you're really into the low level stuff it's probably not appropriate.
 
Old 09-19-2006, 09:48 AM   #5
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, ubuntu
Posts: 1,148

Rep: Reputation: 54
I think all you need is a USB file transfer cable:

http://catalog.belkin.com/IWCatProdu...duct_Id=275561

no drivers required. Its about $100 USD I think. It is designed to connect two computers and transfer files between them. I haven't tried this myself. You will likely have to create a VFAT partition on the linux box for a windows box to read and write to, just as you do with a USB flash disk.
 
Old 09-19-2006, 10:10 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,919

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
The USB file transfer cable is what is known as a host to host cable. I've never used one but linux recognizes these cables as network devices. I assume it would be possible to create a driver using these cables to simulate a mass storage device. Not sure it is worth the effort. Googling didn't really find anything.
 
  


Reply

Tags
drive, thumb, usb


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB thumb drive corrupts whenever plugged into Linux, but not windows. RHLinuxGUY Linux - Hardware 1 08-12-2006 08:00 PM
making usb thumb/pen drive to boot linux rohdimp_24 Linux - Software 2 07-11-2005 01:21 PM
Losing mind over Linux on my USB thumb drive! Javahulk Linux - Laptop and Netbook 3 03-16-2005 02:53 PM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 06:36 PM
Booting Linux From a USB Thumb Drive Ehuwiko Linux - General 3 01-09-2004 09:31 PM


All times are GMT -5. The time now is 03:22 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration