eh?dotout comments on USB Drives with Slackware and Hotplug http://www.ehdotout.com/ en-us 40 eh?dotout comments "USB Drives with Slackware and Hotplug" by Jason <p>I finally found a workable solution to my biggest Slackware annoyance. And since it was one of those things that wasn&#8217;t immediately available on Google, I figured it would be a service to others to blog about it.</p> <p>My problem was with <span class="caps">USB</span> storage. I could plug in my flash drive or external hard drive in and it would all work; the device would get assigned to /dev/sdX. But it wouldn&#8217;t work if I unplugged the device and plugged it back in later. I had to reboot to get that <span class="caps">USB</span> device to work again. After rebooting, it was the same One And Done situation.</p> <p>When first plugging in the device, I would get something like this in /var/log/messages:</p> <pre> <code> Mar 20 22:01:29 crane kernel: hub.c: new USB device 00:10.4-1, assigned address 3 Mar 20 22:01:29 crane kernel: scsi2 : SCSI emulation for USB Mass Storage devices Mar 20 22:01:29 crane kernel: sdb: sdb1 </code> </pre> <p>After unplugging the device and plugging it back in, the relevant entries in the messages file would look like this:</p> <pre> <code> Mar 20 21:57:07 crane kernel: hub.c: new USB device 00:10.4-1, assigned address 4 </code> </pre> <p>The device would show up as you&#8217;d expect in the output of <code>lsusb</code> in both cases, but the <span class="caps">SCSI</span> emulation system doesn&#8217;t to pick up the drive when it gets plugged in for the second time.</p> <p>The workaround turned out to be pretty simple. Every time I need to plug in one of my <span class="caps">USB</span> drives, I run this command as root: <code>/etc/rc.d/rc.hotplug restart</code></p> <p>Then everything&#8217;s good to go.</p> <p>Since you need root/sudo access to do this, it&#8217;s not really a great solution. But it&#8217;s good enough for me. The real solution likely requires kernel updates, and I don&#8217;t have the same desire to upgrade my kernel like I did back in the day :)</p> Mon, 20 Mar 2006 12:41:00 EST <a href="/articles/2006/03/20/usb-drives-with-slackware-and-hotplug">USB Drives with Slackware and Hotplug</a> <a href="/articles/2006/03/20/usb-drives-with-slackware-and-hotplug">USB Drives with Slackware and Hotplug</a>