USB Pen Drives: Large, Portable Storage in a Tiny Package - Page 3

By Carla Schroder | Posted Dec 22, 2003
Page 3 of 3   |  Back to Page 1
Print ArticleEmail Article
  • Share on Facebook
  • Share on Twitter
  • Share on LinkedIn

The Hard Way

If hotplugging is not enabled, which is very sad, you can add it. There are several steps to follow. Before leaping in and doing any of these things, check the home page of your distribution or the documentation for your installation disks to see if there is an easy way to add hotplug support. It's a good thing to have, not only for USB devices, but for Cardbus, Firewire, docking stations — any device that can report state changes.

If after all that, there’s still no easy way to add it:

1. Make sure you have an up-to-date kernel. See Red Hat's manuals for the online versions of the Red Hat manuals; kernel upgrading and configuration is in the "Customization Guide."

Debian users have two excellent guides available to them:
Creating Custom Kernels With Debian's Kernel-Package System
Compiling Kernels the Debian Way

2. Configure all the kernel USB bits as modular. There really aren't any good reasons to compile them statically — that defeats the whole notion of hotplugging. The following are needed:

CONFIG_USB, usb.o
CONFIG_USB_DEVICEFS, devices.o
ECHI HCD CONFIG_USB_EHCI_HCD, usb-ehci-hcd.o
UHCI CONFIG_USB_UHCI, usb-uhci.o
OHCI CONFIG_USB_OHCI, usb-ohci.o
CONFIG_USB_STORAGE, usb-storage.o
CONFIG_HOTPLUG

3. Visit Linux Hotplugging to get the hotplug scripts. You may also need to update usbutils and pciutils. You’ll also want to consult the definitive resource for USB on Linux, Linux USB.

The Bottom Line

I support mixed Windows and Linux networks, and this little gadget has made a huge difference for me. It's much faster than a CD, and data transfers are so easy — I don't cuss nearly as much as I used to.

One surprising use is at "Big Company," where I do some occasional work. Engineers who use the big color plotters now use their own pen drives to transfer the files directly to the printer servers, instead of over the network. They can monitor and troubleshoot the print job locally, plus they like to poach on other department's plotters so it doesn't count against their own quotas. This probably doesn't count as a win in some people's books, but it sure does keep them happy and entertained.

Resources

mkfs (8)
fdisk (8)
Linux USB
Linux Hotplugging


» See All Articles by Columnist Carla Schroder

Comment and Contribute
(Maximum characters: 1200). You have
characters left.
Get the Latest Scoop with Enterprise Networking Planet Newsletter