At what point do you need the USB device? I use one with my system, but I hold off until right before login to use it (I need it for /home and a few non-standard mounts, but not the basic ones.) If you don't need it before /etc and fstab are processed, I'd suggest waiting until the last minute. If you can wait until / is mounted, either compile your kernel with USB support, or load the usb-storage module early on (rc.modules in Slackware.) If you can't wait until / is mounted, you (almost) definitely need to use an initrd, which is a pain in the ass. I've never had the patience to figure out setting one of those up.
BTW Yes, scripts work very well for this purpose. The exception is if you've encrypted the USB device and/or it cannot otherwise be found using findfs. You can explicitly specify the device name to mount, however all peripheral devices must be connected exactly the same (with the same kernel) every boot for that to work reliably. Also, on one of my systems the PCMCIA controller seems to get in the way so I have to wait until hotplug is done before I plug it in.
ta0kira
|