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
 
Search this Thread
Old 10-11-2004, 04:13 AM   #1
layanto
LQ Newbie
 
Registered: Oct 2004
Posts: 1

Rep: Reputation: 0
Linux Mini Distro Suggestion: Emulate USB Flash Disk


I have a suggestion for a Linux Mini Distribution. I'm don't think this exist out there, but please correct me if I'm wrong.

As we all know, usb flash disk and external notebook hdd usb case are very popular. Just plug these devices into any computer (running linux, mac or windows) and you immediately see the drive mounted ready to transfer files from and to.

I propose (if it is at all possible) a linux mini distribution which when installed on a notebook, allows the notebook's hdd to be seen as an external usb hdd when the notebook is connected to another computer (usb to usb). Once installed, the linux distribution will appear on the boot list, allowing the user to either boot into normal operating system or use the notebook as a portable hdd.

In other words, this linux distribution emulates the behaviour of a usb flash disk or usb hdd case. This allows for easy file transfer without having to set up networking (which may not be possible in some cases, eg transferring files btw uni's computer and notebook).

Is this possible with linux? Is there any Linux distribution out there that can do this? Is there anyone outthere interested in developing this?
 
Old 10-11-2004, 04:26 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
Interesting idea. This could be done, using a special cable and a kernel driver that behaves as a USB client. You'd probably have to plug into the laptop's parallel port rather than USB (the USB standard isn't designed to connect two hosts together).

The only real downsides are that the cable might cost the best part of a cheap USB disk (although the storage capacity would be much larger), and you'd probably have to build the cable yourself.

For anyone reading, I should also note that if you are wanting to transfer files from one computer to another, the traditional methods of PLIP or SLIP will work in most cases; assuming that you can either set up networking or get a program like laplink onto the computer.
 
Old 04-23-2009, 01:11 AM   #3
markosjal
LQ Newbie
 
Registered: Feb 2009
Posts: 6

Rep: Reputation: 0
TONS of uses for this

I have been scouring the net for a solution that I need that this original post could work for. In fact I concluded I may have to build it, and that is how I came across this post.

I started looking at small PCs such as
http://digg.com/linux_unix/Space_Cub...llest_Linux_PC
and
http://www.picotux.com/

The problem that I see is that OSes support USB HOST controllers and not as a USB "client" (for lack of a better word)

In the case of the PicoTux , It would be perfect for me if it had a USB "client" connection, and appropriate linux support.

In My case the software I would need is as follows:
Mini Web Server to change IP address, and to set up which shares on the network the device would have access to (to pass on to the USB host controller)

proper support for the Network interface and USB host controller.


In my case The device would connect to a USB port on a DVD player to stream files from a NAS. In fact the device I envision , would work with ANY device that could use a USB memory or Hard disk.

Maybe something like DSL would do it all , if the problem with the USB client interface (vs host) were resolvable.

Last edited by markosjal; 04-23-2009 at 01:13 AM.
 
Old 04-25-2009, 03:30 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
You may want to look at this: http://www.linux-usb.org/gadget/
 
Old 04-25-2009, 03:54 PM   #5
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,060

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
I think DSL could do all that-maybe by editing the /etc/fstab, /etc/mtab and filetool.lst
DSL can probaly do the server bit too

You might wanna check out INSERT too, as it has alot of tools.

I do know that if at FIRST boot of dsl you specify "dsl mydsl=xxxx" where "xxxx" is whatever the device is, DSL will put a "mydsl" folder there.
At the desktop, don't install anything, just update mydsl browser, then open a root terminal, type "mount" and see if the device is connected.
try fdisk -l too and then try to mount where the mydsl folder is.

Once mounted, "mkdir /mnt/xxxx/mydsl/modules", and "mkdir /mnt/xxxx/mydsl/optional"
And finally "cp /KNOPPIX/lib/modules/2.4.31/kernel/drivers/block/cloop.o mnt/sda2/mydsl/modules"

Now backup and reboot...

Then at the boot line enter "dsl mydsl=xxxx restore=xxxx" and dsl should find the device and restore(though nothing installed yet).

I have found that once DSL knows where to find it's backup.tar.gz and mydsl folder-it will automatically give the device a name and mount point-making it easier than manually trying to figure it out.

Hope some of that helped...

Last edited by linus72; 04-25-2009 at 04:05 PM.
 
  


Reply


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
USB flash disk taoweijia Linux - Hardware 2 12-28-2005 04:30 AM
USB Flash Disk zillah Fedora 3 05-22-2005 03:25 AM
IOmega Micro Mini USB 256 MB FLash Drive in Linux Kernel 2.6! arys Linux - Hardware 0 02-07-2005 09:31 AM
Making a bootable rescue-disk/mini-distro CD with LFS? dushkinup Linux From Scratch 5 04-15-2004 03:06 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:09 PM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration