Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am having problems getting my Ubuntu system to hotplug USB keydrives. This
functionality worked fine in Warty but broke in Hoary. I have upgraded to
the Breezy RC to see if that might fix it, but no go. Because this
functionality worked in earlier versions and others seem to have no problems
with it, I assume there's something wrong in my system configuration. So,
here are the particulars:
Distro: Ubuntu, Breezy Badger Release Candidate
Kernel version: 2.6.12-8
dmesg output:
[4294667.296000] Linux version 2.6.12-8-386 (buildd@rothera) (gcc version 3.4.5 20050809 (prerelease) (Debian 3.4.4-6ubuntu6)) #1 Tue Aug 30 22:41:30 BST 2005
[4341820.002000] usb 2-2: new full speed USB device using uhci_hcd and address 2[4341820.731000] Initializing USB Mass Storage driver...
[4341820.783000] scsi0 : SCSI emulation for USB Mass Storage devices
[4341820.838000] usb-storage: device found at 2
[4341820.838000] usb-storage: waiting for device to settle before scanning
[4341820.839000] usbcore: registered new driver usb-storage
[4341820.839000] USB Mass Storage support registered.
[4341825.842000] Vendor: SanDisk Model: Cruzer Titanium Rev: 0.4
[4341825.842000] Type: Direct-Access ANSI SCSI revision: 02
[4341825.940000] usb-storage: device scan complete
Note that the hotplug system seems to identify the device and load the scsi
emulation layer, but no /dev node gets created for the newly plugged device.
hotplug blacklist:
#
# Listing a module here prevents the hotplug scripts from loading it.
# Usually that'd be so that some other driver will bind it instead,
# no matter which driver happens to get probed first. Sometimes user
# mode tools can also control driver binding.
#
# Syntax: driver name alone (without any spaces) on a line. Other
# lines are ignored.
#
# uhci ... usb-uhci handles the same pci class
usb-uhci
# usbcore ... module is loaded implicitly, ignore it otherwise
#usbcore
#evbug is a debug tool and should be loaded explicitly
evbug
# these drivers are very simple, the HID drivers are usually preferred
usbmouse
usbkbd
# watchdog drivers should be loaded only if a watchdog daemon is installed
acquirewdt
advantechwdt
alim1535_wdt
alim7101_wdt
cpu5wdt
eurotechwdt
i810_tco
i8xx_tco
i810-tco
ib700wdt
indydog
machzwd
mixcomwd
pcwd
pcwd_pci
pcwd_usb
sa1100_wdt
sbc60xxwdt
sc1200wdt
sc520_wdt
scx200_wdt
shwdt
softdog
w83627hf_wdt
w83877f_wdt
wafer5823wdt
wdt285
wdt977
wdt
wdt_pci
# causes no end of confusion by creating unexpected network interfaces
eth1394
# eepro100 is obsoleted by e100 (Ubuntu bug #2156)
eepro100
Well, you certainly tried a lot of stuff...did you try a simple "sudo mount -a" though? If not, in terminal, try:
Code:
$ sudo mkdir /media/pendrive
$ sudo mount /dev/sda1 /media/pendrive
$ cd /media/pendrive
$ ls
You'll get an error before that anyway if the pen drive can't be found, but really - just try mounting everything and see if it pops up, or if not try mounting it manually!
I tried mounting the device and it fails with the error message: mount: special device /dev/sda1 does not exist.
I also checked the dev directory and, after the drive is plugged in, no new device nodes are being created for the hotplugged drive (something that dmesg should have mentioned if all was going well).
And besides, manually mounting the thing is a pain, anyway - I didn't have to do that under warty and everything came up fine. Thanks for your suggestion, though. I appreciate it.
Nope. Still no go. The /dev node isn't being created. I did an lsmod and the usb_storage module is there, as is usbcore, uhci_hdb, pci_hotplug and shpchp. scsi_mod is also being loaded to provide the scsi emulation layer for the drive. dmsg says it's using uhci_hdb to hotplug the device and that the scsi emulation driver is starting, but there's no message about the creation of a scsi device in /dev, nor does there appear to be one when I manually check. The salient dmesg portion is as follows:
[4295305.839000] usb 2-1: new full speed USB device using uhci_hcd and address 2
[4295306.015000] scsi1 : SCSI emulation for USB Mass Storage devices
[4295306.047000] usb-storage: device found at 2
[4295306.047000] usb-storage: waiting for device to settle before scanning
[4295311.051000] Vendor: SanDisk Model: Cruzer Titanium Rev: 0.4
[4295311.051000] Type: Direct-Access ANSI SCSI revision: 02
[4295311.162000] usb-storage: device scan complete
Somewhere in here should be a message about the creation of a /dev node for the scsi device, but it doesn't seem to happen :-(.
Possible solution (loss of permission/group membership)
fadrian: I had the same thing happen, and what it turned out to be in my case was a sudden and (apparently) spontaneous loss of group-membership. Check to see if your user-account belongs to the "plugdev" group (I also lost "audio" group membership, and probably several others, don't know why, or when). If you aren't a member of "plugdev," add yourself back in to the group (Computer --> System Configuration --> Users and Groups --> select your user-name -->Properties --> Other Groups --> plugdev --> OK --> OK.
I broke down and installed Ubuntu on another of the systems I had laying around at home. I also found out that the audio problems that I was having with the original box was due to a bad sound chip (as Windows didn't seem to detect this device anymore, either). I haven't tried out the hotplug facility on the new system yet, but I figure it will work fine. Thanks again for your help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.