LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 05-01-2005, 03:41 PM   #1
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Rep: Reputation: 31
Linux as a USB drive


I know there is tons of documentation on using USB mass storage with Linux. However, is there a way to have Linux emulate a USB mass storage device?

That is, can I plug my Linux box into a windows machine via USB and have Linux behave as a mass storage device? That would be great.

Thanks
 
Old 05-01-2005, 03:53 PM   #2
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
There are drivers in the linux kernel to pull this off. It's called the "USB gadget API". However, the hardware must support this as well, and almost all USB chipsets in PC's don't support this mode!! It's really only meant for embedded devices running linux, like mp3 players and the like, who have specialized chipsets.
Maybe there exist one or two of these chipsets on a PCI board that can be plugged into a PC, but I wouldn't count too much on it

It would be quite cool, however...

Read more about it on http://www.linux-usb.org/gadget/
they have a list of supported chips as well, but again, finding these on a PCI card will be very hard if not impossible...

greets
nukkel
 
Old 05-01-2005, 04:04 PM   #3
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
Just checked... The NetChip 2280 is available as a PCI card version, for testing and developing purposes...

So if you can locate one (and are prepared to pay $$$ for it -- development cards are limited numbers so tend to be expensive) have fun
 
Old 05-01-2005, 11:57 PM   #4
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Original Poster
Rep: Reputation: 31
That kind of sucks. I figured it could be emulated in software but I guess the USB ports only let you go so low. The problem is trying to find a supported PC/104 usb board.
 
Old 05-02-2005, 01:59 AM   #5
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
Yeah, things like the vendor string, device name, device class, and host/device mode are all "hardwired" in the chip, no software can ever change these low level settings
 
Old 05-02-2005, 12:43 PM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Probably not a lot of use to you, but most recent Apple laptops can do this over Firewire. I believe it's called 'Target Mode'.

Dave
 
Old 05-03-2005, 12:30 AM   #7
AngryLlama
Member
 
Registered: Sep 2004
Location: /dev/urandom
Distribution: Gentoo
Posts: 171

Original Poster
Rep: Reputation: 31
Thats cool. I was thinking that I could possibly have a usb port talk to a microcontroller with built in USB. The controller can act as a bridge. Microchip's PICs have USB support but I think it is only 1.1. Not to mention how slow the chip is. The firewire sounds like the same sort of thing. I guess I will have to abandon this one.

I'm making a In-dash Linux based media player for my car. My hope was I could use it as an external harddrive too. I'll just have to stick with Ethernet.


Last edited by AngryLlama; 05-03-2005 at 09:29 PM.
 
  


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
Using a USB flash drive with Linux membrax Linux - Hardware 76 11-03-2005 11:25 AM
Linux on a USB hard drive without USB-FDD BIOS option jaro Linux - Hardware 1 07-15-2005 02:12 AM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 06:36 PM
Linux on a USB hard drive without USB-FDD BIOS option jaro Linux - Hardware 6 05-27-2004 11:49 AM
How can I use a USB Drive with linux binkybuckle Linux - Hardware 6 12-09-2003 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:25 AM.

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