LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   USB stick hotplugging with SUSE 10.0 (https://www.linuxquestions.org/questions/suse-opensuse-60/usb-stick-hotplugging-with-suse-10-0-a-373551/)

DarkCow 10-16-2005 06:38 AM

USB stick hotplugging with SUSE 10.0
 
In 9.3 I could plug in a USB stick and have it instantly recognised, mounted and it would appear on my desktop. In 10.0 no such thing happens. I can manually mount it from a command line, but I'd like it to be automounted.

Here are a few things I've noticed on my system that may be of importance:
- /etc/hal/ is empty
- hotplug does not appear in yast software management
- The suseplugger icon does not appear in my system tray, but running it from a command line gives no output and returns 0
- This is the relevant part of /var/log/messages that appears when I plug in a USB flash drive, then unplug it:
Code:

Oct 16 12:33:05 hermes kernel: usb 5-1: new high speed USB device using ehci_hcd and address 6
Oct 16 12:33:05 hermes kernel: scsi1 : SCSI emulation for USB Mass Storage devices
Oct 16 12:33:05 hermes kernel: usb-storage: device found at 6
Oct 16 12:33:05 hermes kernel: usb-storage: waiting for device to settle before scanning
Oct 16 12:33:10 hermes kernel:  Vendor: USB      Model: Storage Device    Rev:
Oct 16 12:33:10 hermes kernel:  Type:  Direct-Access                      ANSI SCSI revision: 02
Oct 16 12:33:10 hermes kernel: SCSI device sda: 246016 512-byte hdwr sectors (126 MB)
Oct 16 12:33:10 hermes kernel: sda: Write Protect is off
Oct 16 12:33:10 hermes kernel: sda: Mode Sense: 03 00 00 00
Oct 16 12:33:10 hermes kernel: sda: assuming drive cache: write through
Oct 16 12:33:10 hermes kernel: SCSI device sda: 246016 512-byte hdwr sectors (126 MB)
Oct 16 12:33:10 hermes kernel: sda: Write Protect is off
Oct 16 12:33:10 hermes kernel: sda: Mode Sense: 03 00 00 00
Oct 16 12:33:10 hermes kernel: sda: assuming drive cache: write through
Oct 16 12:33:10 hermes kernel:  sda: sda1
Oct 16 12:33:10 hermes kernel: Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
Oct 16 12:33:10 hermes kernel: Attached scsi generic sg0 at scsi1, channel 0, id 0, lun 0,  type 0
Oct 16 12:33:10 hermes kernel: usb-storage: device scan complete
Oct 16 12:33:11 hermes kernel: end_request: I/O error, dev sda, sector 246009
Oct 16 12:33:11 hermes kernel: printk: 589 messages suppressed.
Oct 16 12:33:11 hermes kernel: Buffer I/O error on device sda1, logical block 245912
Oct 16 12:33:11 hermes kernel: Buffer I/O error on device sda1, logical block 245913
Oct 16 12:33:11 hermes kernel: Buffer I/O error on device sda1, logical block 245914
Oct 16 12:33:11 hermes kernel: Buffer I/O error on device sda1, logical block 245915
Oct 16 12:33:11 hermes kernel: Buffer I/O error on device sda1, logical block 245916
Oct 16 12:33:11 hermes kernel: Buffer I/O error on device sda1, logical block 245917
Oct 16 12:33:11 hermes kernel: Buffer I/O error on device sda1, logical block 245918
Oct 16 12:33:11 hermes kernel: Buffer I/O error on device sda1, logical block 245912
Oct 16 12:33:11 hermes kernel: Buffer I/O error on device sda1, logical block 245913
Oct 16 12:33:11 hermes kernel: Buffer I/O error on device sda1, logical block 245914
Oct 16 12:33:11 hermes kernel: SCSI device sda: 246016 512-byte hdwr sectors (126 MB)
Oct 16 12:33:11 hermes kernel: sda: Write Protect is off
Oct 16 12:33:11 hermes kernel: sda: Mode Sense: 03 00 00 00
Oct 16 12:33:11 hermes kernel: sda: assuming drive cache: write through
Oct 16 12:33:11 hermes kernel: SCSI device sda: 246016 512-byte hdwr sectors (126 MB)
Oct 16 12:33:11 hermes kernel: sda: Write Protect is off
Oct 16 12:33:11 hermes kernel: sda: Mode Sense: 03 00 00 00
Oct 16 12:33:11 hermes kernel: sda: assuming drive cache: write through
Oct 16 12:33:11 hermes kernel:  sda: sda1
Oct 16 12:33:12 hermes kernel: end_request: I/O error, dev sda, sector 246009
Oct 16 12:33:13 hermes kernel: SCSI device sda: 246016 512-byte hdwr sectors (126 MB)
Oct 16 12:33:13 hermes kernel: sda: Write Protect is off
Oct 16 12:33:13 hermes kernel: sda: Mode Sense: 03 00 00 00
Oct 16 12:33:13 hermes kernel: sda: assuming drive cache: write through
Oct 16 12:33:14 hermes kernel: end_request: I/O error, dev sda, sector 246009
Oct 16 12:33:14 hermes kernel: SCSI device sda: 246016 512-byte hdwr sectors (126 MB)
Oct 16 12:33:14 hermes kernel: sda: Write Protect is off
Oct 16 12:33:14 hermes kernel: sda: Mode Sense: 03 00 00 00
Oct 16 12:33:14 hermes kernel: sda: assuming drive cache: write through
Oct 16 12:33:48 hermes kernel: usb 5-1: USB disconnect, address 6

Any ideas? Does anyone else have the same problem?

SlackerLX 10-16-2005 06:59 AM

run this before you unplug your device:
#umount /media/XXX
XXX - mounted directory (/media/usbdisk - example)
Unplug device.

DarkCow 10-16-2005 07:11 AM

Uhm, it doesn't get mounted in the first place.
My problem is that hal or whatever does automounting in this release isn't doing its job, and I have to manually mount/umount things.

Donb 10-26-2005 08:27 PM

Thank goodness someone else has had the same problem with Suse 10.0 free distribution not detecting USB devices. I have posted a similar report but nobody is answering. I see a lot of talk about unmounting USB devices, but my system will not detect any USB devices. There is also lots of talk about editing all sorts of different files to try to mount a USB device, but the issue is that Suse 10 seems to detect the USB controller, but that's about all it does. The problem seems to be in the hotplug arena. Nothing shows up anywhere in Yast, and no device is detected on either a cold boot or hotplug. I see no entries for any USB device when I open up etc/fstab. Quite frankly I am so really pissed off. Have spent a week trying to play around with all sorts of files after reading various responses on the forum, but there are so many distributions that it is like an endless maze for a newbie trying to solve a particular problem on a specific distribution. Suse 10 installed like a charm and seems to work really well on most tasks, but if it can't detect my Zip drive and USB printer on the first go round, it is just a huge headache. I have been trying for four years to get away from Microsoft by trying Corel Linux, Calders Linux, Red Hat Linux, Slackware, but so far it is the only Win 98,Win2000 and XP are the only OS's where you NEVER have to waste time playing around with command line nonsense to get a basic installation running. Suse 10 is close, but unless I can get my USB to work without spending hours and hours on a forum I guess it is back to Microsoft.

JonHayes 10-26-2005 10:42 PM

Does this make sense to anyone?
 
I'm having a similar problem but only a usb mouse isn't working.

I read this and wondered if it's an irq problem:

http://www.ussg.iu.edu/hypermail/lin...09.2/1823.html

too bad I don't know what to do to fix it

pnutjam 10-27-2005 10:50 AM

no problems here
 
I am running SUSE 10.0 eval version on a Dell 810, usb memory sticks work fine for me. They don't appear on the desktop, they pop in under my computer.

RedShirt 10-27-2005 11:00 AM

According to the release notes for the new kernels since .3, they have fixed the hotplugging issues. It is kernel .15 which comes installed with SuSE(basically .1, not .15, they mean 1.1.5, modified 1.1) that has the issue, which we on SuSE have as the kernel installed with SuSE 10. Upgrading, should fix that issue entirely.

SlackerLX 10-27-2005 11:09 AM

I didn't upgrade the kernel on my SuSE 10.0 and usb devices still work NP. :p
As long as hardware monitor is running in system tray it detects new devices and mounts them automaticly. USB-sticks you'll still have to unmount though.
New Debian also has this feature. I upgraded mine from Sarge to Etch and it mounts just fine with
kernel 2.6.8-2 ;)

RedShirt 10-27-2005 12:27 PM

How do you get the hardware monitor to run and stay there upon rebooting?

SlackerLX 10-27-2005 02:49 PM

Simple!
Menu=>System=>Desktop Applet=>SUSEPlugger
Keep it running all the time. When you reboot the machine with it running on system tray, next time it will login automaticly
;)

Donb 10-28-2005 06:20 PM

I am still scratching my head. Redshirt appears to be saying that the Suse 10.0 I downloaded had a kernal that doesn't properly support hotplugging. Strange that this kernal was only released a few weeks ago. He says that upgrading should fix the problem. Upgrading to what? Also Slackerlx gives a simple fix "Menu=>System=>Desktop Applet=>SUSEPlugger". Nice to know the fix, but what is it, and where do you make this entry. Please remember newbie's probably know shit about Linux and need very explicit instructions to try to fix a problem. I am sure my issue is hotplug related because no usb devices are detected.

RedShirt 10-28-2005 06:49 PM

No, I am not saying it is a truly incompatible kernel, but the speeds of transfer is supposedly the kernel version, which you can upgrade. I have seen the changelogs and many forum goers mention upgrading the kernel fixed this. As for weird little issues with USB, like the hotplugger, that is just SuSE, I have done 3 installs so far of SuSE 10, and only one had hotplugger running automatically, which is really odd. All used the same install discs. The SUSEPlugger, assuming that fixes your issue, is like a hardware watcher that as you install USB keyboards, mice, drives, etc, it will pop up notification. And it isn't an entry, it is a program in the kmenu you run, under those subsections. If running that fixes your issues, let us know, otherwise, see about trying a few other things, like kernel upgrade from www.Kernel.org and let us know if that worked or not.

Donb 10-28-2005 08:04 PM

I don't see any reference to suseplugger on my kmenu. Boy am I dumb or something. Is it under utilities on the dropdown menu? Can I make an entry somewhere in the init.d or somewhere else. Went to the kernel.org site and downloaded the most up to date stable kernel 2.6.14. Saved to disk and then extracted to root/home. When i double click on the extracted file it opens in a text editor and does nothing. How do I upgrade the kernel from the download?

Donb 10-28-2005 09:08 PM

At last figured out I downloaded a text file not the kernel upgrade. Used Yast to load all patches. Re-compiled the kernel, still no usb detected. In usbviewer I now get message "cannot open file /proc/bus/usb/devices", "Verify that you have USB compiled into your kernel, have the usb core modules loaded, and have the usbdevfs filesystem mounted". Surely all this should have been done when I installed SUSE. How do I proceed from here step by step. Frankly I wouldn't know where to start.

RedShirt 10-29-2005 12:15 AM

Using YAST, search for plug or hotplug, and then using the install discs, instal it if it isn't. If it is installed, you can search for the plugger in the little appfinder in the kmenu, or try doing a find or grep in command line for *plug* or something like that. If my box were operational, I would gladly help, but I just got new ram, and am in the midsts of testing.


All times are GMT -5. The time now is 02:29 AM.