User Space Driver for USB Storage Devices? 59
Zarf asks: "With Linux, if you don't like something,
fix it yourself. So when I couldn't get my USB pen-drive to work and none of the canned solutions were satifactory... I took it upon myself to fix Linux. I've posted
my solution in my Slashdot user's journal. But it seems to me that there must be a better way to promote my solution. Where should I post my fix so it can help the most people?"
I suggest... (Score:5, Funny)
Daniel
Re:I suggest... (Score:3, Funny)
Dude, you failed to include the URL.
Re:I suggest... (Score:2)
I don't use the url you insensitive clod!!
http://66.35.250.150
Re:I suggest... (Score:2)
The Manufacturer (Score:5, Insightful)
DO NOT DO THIS (Score:4, Interesting)
If you needed it and you want to share it with others, that's awesome. But don't let someone else get away with making a buck off of it without putting an ounce of effort into helping you.
If you do approach the company, make it clear that you are willing to sell them a license to distribute it.
Re:DO NOT DO THIS (Score:5, Insightful)
This from someone named "passthecrackpipe"... (Score:1)
Just a thought-
Benjamin
Re:DO NOT DO THIS (Score:1)
Unless you place your code under any Free or Open Source license. Then you ALREADY have given them a license to distribute it.
Re:DO NOT DO THIS (Score:3, Interesting)
Re:The Manufacturer (Score:2)
SourceForge (Score:3, Informative)
Re:SourceForge (Score:2)
You did this in Perl (Score:1, Insightful)
If you were unhappy with the driver, it's more than likely some Japanese embedded engineer is sitting in his cube wishing that he could get his hands on a working USB pen storage driver that he didn't have to worry about releasing the source to.
Re:You did this in Perl (Score:3, Funny)
Your promoting recoding into C, making it closed source and then SELLING it for profit?
What kind of geek are you?
Re:You did this in Perl (Score:1)
Re:You did this in Perl (Score:2)
Bullshit. The slave-labor elves you have trapped in your non-union sweatshop do the work. Not only that, but you take jobs away from American elves [frontpagemag.com].
Bastard.
Re:You did this in Perl (Score:1)
That's why I moved my factories to the NP: unionbusting is easy, just toss the little nits into the snow and wait for them to come begging for their job back.
Re:You did this in Perl (Score:2)
Hey, you could even use perlcc -c (outputs C code) with the same usage options, make it open source, and still have the benefits of it being closed ;-) (if you don't get this joke, you've not seen C output by perlcc
Sir (Score:5, Funny)
Oh, and for people who waste their lives gaming too.
Re:Sir (Score:1)
Re:Sir (Score:2)
Hotplug (Score:5, Informative)
Re:Hotplug (Score:2)
The problem is that this is a "Redhat 9" problem. If you look at the Red Hat 9 standard "/etc/hotplug/usb" directory you'll find one script in there. It's the "usbcam" script written by... A programmer at Redhat. So I assume that the "correct" place for "/etc/hotplug/usb" scripts to come from are from distro people.
I will contact the hotplug people but I have a feeling that they will respond that this isn't "part of" hot
Ehh... (Score:5, Informative)
For the script, all it does is load the right modules and mount the device, right?
Loading the modules is what hotplug does, and mounting automatically with sync can be done with supermount.
I'm no usbguru, programmer or bashguru, so maybe I'm missing something...
I'd just contact the people from the usb-storage driver, and the hotplug people, if I had issues with it, and it's not clear to me what your isssue exatly was, and what you really needed to do to fix your issue.
Re:Ehh... (Score:5, Insightful)
You're still loading the kernel drivers to talk to the device, and mount that. If you mean the automount script, that's not really a driver.
If you really need user space you could look at libusb, all that libusb needs is a driver loaded for the host controller, and for the rest it should be able to talk to the device from userspace. But if it can do usb-storage, I have no clue about that.
Re:Ehh... (Score:2)
My solution is not
Re:Ehh... (Score:2)
In Mandrake, the modules should be loaded by hotplug, and then dynamic should make an icon on your Gnome or Kde desktop, which you can use to mount it. Ofcourse, hotplug and the usb drivers should know which driver belongs to the hardware, when looking at the device id's, so essentially that should be all that's needed to do.
If it doesn't work like that, something is broken somewhere.
Re:Ehh... (Score:1)
Re:Ehh... (Score:2)
Did you try the script in my journal at all? You should look at the "hotplug" stuff online... if you don't want to just trust me... You'll need to edit the file
Next you'll want to copy the script from here:
http://slashdot.org/~Zarf/journal/44708
into th
UM...LKML or find the USB maintainer for it (Score:2)
In One of two ways....
1. Post the patch to the list explaining what its for and what it does...
2. Post to the list asking who the maintainer of the USB realm for that device is, send the patch to them...
or
3. Check the Kernel Maintainers file for same information as #2
LKML (Score:2)
Re:LKML (Score:1)
OTOH, the idea of rewriting the Linux kernel in Perl is certainly nice *g*
Nice... Not really a driver, though. (Score:2)
Re:Nice... Not really a driver, though. (Score:2)
Any Success Stories? (Score:2, Interesting)
I have become embarrassed when my Windows using friends want me to copy something onto their usb stick.
I am running Red Hat 9, and can not get the sticks to work. I can dual boot to Windows on the same hardware and they just work.
Re:Any Success Stories? (Score:3, Informative)
/sbin/modprobe sr_mod
/sbin/modprobe sd_mod
/sbin/modprobe usbcore
/sbin/modprobe uhci
/sbin/modprobe usb-storage
/sbin/modprobe vfat
Re:Any Success Stories? (Score:3, Interesting)
Of course, FreeBSD by default has a bare bones configuration, so I do a trivial amount of work to allow user mountin
Re:Any Success Stories? (Score:1)
Re:Any Success Stories? (Score:2)
Umm. It doesn't.
Did you even read those journal entries (oh, yes, this is slashdot. Of course you didn't.), this is not really a driver and he didn't have any trouble getting that USB Mass Storage to work Out Of The Box(tm), he just didn't like having to mount it manually and wrote a hotplug script that does that. No big deal.
Re:Any Success Stories? (Score:1)
Wouldn't just a KDE icon do the same thing? I thought hotplug was just when you need to do weird stuff when you connected a device.
Re:Any Success Stories? (Score:2)
Re:Any Success Stories? (Score:1)
I have a success story, on RH8. I have a TwinMOS "Mobile Disk", plugged it in to my box, and it was automatically detected. I had to mount it manually (" mount
Seems weird that it would work less easily under RH9.
David.
Re:Any Success Stories? (Score:2)
Re:Any Success Stories? (Score:1)
So as a Linux beginner, it does work for me (Score:1)
I used a properly patched Redhat 9 and it worked extremely easy. I used a no-name generic usb-stick with the lowest price tag I could find.
The only quirk was a "device busy"-bug that occured sometimes so the filesystem could not be cleanly unmounted. This was because some subsystems of Nautilus or any other filemananger component did not release the
Re:So as a Linux beginner, it does work for me (Score:2)
My "driver" fixes this problem... to a certain extent. The boss didn't like having to drop to the command line to mount and unmount the device. So I was commissioned to write this script. The other problems I
Re:Any Success Stories? (Score:1)
external kit that I use to add a second hard drive to my laptop.
Under Mandrake 9.1, I pop the 20gig drive into the case, connect both ends of the cable and the drive gets automounted. Couldn't be simpler.
Re:Any Success Stories? (Score:2)
You can add a line in fstab, or you can use my script to do it for you... yes, I kno
USBMan.com (Score:3, Interesting)
USBman's Linux section [usbman.com]
As a regular slashdot reader... (Score:2)
Those of you who actually read the discussion threads in my Journal might see how even amongst the intelligent and clueful people who post in my Journals that there is confusion on the "proper" way to h