LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-15-2004, 07:06 PM   #1
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
turn a computer into a usb or firewire mass storage device.


I read a while back on slashdot about someone that turned a computer into a firewire drive using a firewire card, I want to do something similar. I want to eather turn an old computer or a small mini-via system into a mass storage device accessed over usb or firewire. maybe also acting as a network server. anyone know what hardware/software is required? (since it is a combo of both I figured neather hardware nor software was the proper forum)
 
Old 08-16-2004, 09:59 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
This rather depends on what you're trying to access it with.

Software: You'll need to run a networked filesystem server, such as nfsd (UNIXey) or Samba (Microsoftey).

Hardware: To make it appear as a USB mass storage device, you'll need to appear as a USB client node, not a host node. You won't be able to use your USB port for this, but you may get somewhere by e.g. rewiring your parallel port and writing a device-driver.

To make it appear as a networked storage device is much, much easier. Just set up a network…

Network server: What do you mean by a “network server”? To run a web-site, look at Samba.To run an email server, look at sendmail or qmail. To run a firewall, look at iptables. To run a freenet node, look at freenet. There are literally thousands of different servers you can run — but most common ones can be easily gotten up and running with your distro's setup tool.

Hope that helps,

— Robert J. Lee
 
Old 08-16-2004, 10:07 AM   #3
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Original Poster
Rep: Reputation: 47
I already know how to o a network server, my question is on the usb or firewire mass storage, I want other computers to see it as one when I plug a usb or firewire cable comming from somewhere on the storage computer into the system I want to access it.
 
Old 08-16-2004, 10:26 AM   #4
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I don't see the point of this? IF you want it as a USB storage device then you would be better with just a large external USB drive you could plug in any PC. If you want a server accesable to all, you would be better off networking it.
 
Old 08-16-2004, 10:41 AM   #5
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Original Poster
Rep: Reputation: 47
I already have 4 120gb hd's in a raid, but they generate to much heat to leave in my main system, I want ot put them in an old 1ghz I have. now I have done the networking filesystems and such in the past, but I have experianced problems being I do not restart the systems much at all, sessions expiring, and also network getting clogged by transferes (I use data on the 120's A LOT) I want firewire or usb2.0 to avoid these problems, and as far as I know there isn't a usb drive casing that takes 4 ata133 drives ina linux raid.
 
Old 08-16-2004, 11:00 AM   #6
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Run the fileserver on a separate network, have two network cards in your main box - go to gigabyte net cards Simple setup rather than playing with USB.

I don't know what you mean about network problems and sessions expiring. I run 24/7 fileservers here for various media and never really restart and have no trouble. Don't know what you mean?
 
Old 08-16-2004, 11:10 AM   #7
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Original Poster
Rep: Reputation: 47
I mean using lufs I think it is called, lets you mount ftp/scp-ssh as though they were native, I used ftp because no checking makes for faster speeds, eventually the session would expire, I experianced the same w/ ssh
 
Old 08-16-2004, 11:26 AM   #8
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
I would be sharing with smb or nfs...
 
Old 08-16-2004, 11:32 AM   #9
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
You could make the computer appear as a USB mass storage drive, but you will need to get your hands dirty and actually write a kernel module to drive the client side of the USB hardware, and build a cable that was USB at one end and some other suitable connector at the other (a low-level port like a parallel port where you can wiggle each of the bits independantly, not USB where you usually can't).

There's a host-side driver in the Linux kernel that you can follow to see the other side of the communication you need to deal with. It's not completely trivial, especially when you consider that you're only communicating one bit at a time (something 8/32-bit computers tend not to make too easy in software). You can also get details and tips on the mass storage drive spec' here: http://www2.one-eyed-alien.net/~mdharm/linux-usb/

That said, networked storage really is the easy option here. If you're having trouble with using FTP as a mounted filesystem, you could try another protocol. samba/SMB actually works quite well even in mixed-OS networks, and the UNIX NFS protocol was designed to be used for permanent networked storage so I'd imagine it might do what you're looking for. You certainly won't get any speed increase over a dedicated ethernet by using USB, which is serial and not exceptionally fast (but USB2 is probably comparable to hard-disk speeds I think).

If cost is an issue, you might consider buying/building a parallel cable and running a PLIP network.

Hope that helps,

— Robert J. Lee
 
Old 08-16-2004, 11:46 AM   #10
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Original Poster
Rep: Reputation: 47
it does help a bit yes, I am not afraid to get my hands dirty, I am a programmer, I could probably figure out how to write a kernel module given the correct tutorials. thank you.
 
Old 11-06-2010, 06:23 AM   #11
thienbaont
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
Hi,

I run into this post by goggling and very interested with the idea. I can tell there're quite a few scenarios where the idea can be useful:
- Transfer data from PC to PC, one PC act as mass storage device
- Connect PC into PS3, if PC can act as mass storage device then PS3 can read media files with ease
- Connect PC to TV that has the capability to play media file from mass storage device

As rjlee said above, it might need to get dirty. But I think I have found something else by googling around. I wonder if these will help at all. One thing i found are:
- USB transfer cable which can be used as link mode or network mode to connect PC to PC, google about them you'll see some will need drivers/software which will both need to be installed in both PC. However, this particular one does not need to install any driver/software because the manufacter claim that they used a special chip inside the cable so the PC reconised them as drive: http://www.youtube.com/watch?v=CD5vv...eature=related. The price to get one USB transfer cable seems to be minimal.

My question is if using normal cable to make the PC act as mass storage device is too hard, whether by using the USB transfer cable to achieve the same thing would be any easier?

Please note that although the USB transfer cable is specificly used to transfer data between PCs but it still haven't achieved turning PC into mass storage device. Also PS3 and media playable TV should also support DLNA for media streaming but remember that USB provides better speed (at least 5 times faster than 100mbps LAN) for HD content media, and some media file cannot be stream, i.e. MKV.

Thanks for reading my post and hope I will get some reply. I am also a programmer so I can get dirty if needed.
 
Old 01-16-2011, 09:54 PM   #12
sicablondu
LQ Newbie
 
Registered: Jan 2011
Posts: 7

Rep: Reputation: 0
Hi,

There were a couple of guys that wanted to get their hands dirty on this one ...
What happened? Didn`t worth the effort?
Please share if you managed to create a mass storage USB device from an old PC ...
 
Old 01-16-2011, 10:51 PM   #13
cmas1148
Member
 
Registered: Jan 2011
Location: Ringgold GA
Distribution: Ubuntu 10.10, openSUSE, Damn Small Linux, Fedora 14
Posts: 47

Rep: Reputation: 2
120GB x4 = 480GB
500GB external drive costs like U.S. $80 - $120
Internal drive enclosures cost U.S. $15 - $40

I've seen enclosures that can hold 4 internals. With a fan, too.
 
Old 01-17-2011, 09:07 AM   #14
sicablondu
LQ Newbie
 
Registered: Jan 2011
Posts: 7

Rep: Reputation: 0
The thing is, i`m keeping this old PC on the balcony .... A torrent server, apache with some webs, and other little stuff.
It will be great to access those torrent files via TV, or DVD, without the trouble of copying them on a memory stick or external HDD.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mass storage device USB xeebeeeeeee Linux - Hardware 10 02-13-2008 12:11 PM
USB Mass storage Device purefan Linux - Hardware 15 06-06-2005 01:56 PM
USB Mass Storage Device ebasi Linux - Hardware 2 12-23-2004 02:06 PM
2.6.9 mass storage (usb and firewire) not working carboncopy Slackware 2 12-02-2004 05:09 AM
Usb mass storage device laguna Linux - Hardware 4 08-12-2002 02:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:00 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