Auto mount/recognize of USB devices?

Does anyone know how to have Suse 11 auto detect usb devices? When I plug something in I have to do “lsusb” every time to get them recognized. Help would be greatly appreciated.

What devices are you trying to get auto-recognized? What desktop environment are you using?

I’m using KDE4, and mine are all good to go.

Just a side question. Please show the line for usbfs from the file fstab. like mine is this:

usbfs                /proc/bus/usb        usbfs      auto                0 0

What’s yours?
This command will reveal it to you:

cat /etc/fstab | grep usbfs

Sorry, I’m using Gnome 2.22 and here is my fstab:

usbfs /proc/bus/usb usbfs noauto 0 0

I sense my “noauto” may be the key, yes? Can I just change that to auto using vi?

I have “noauto” in the fstab on both my openSUSE-10.3 PC and 11.0 PC, and hotplug mounting of external USB NTFS drives works (with read/write) as does the USB interface to my Canon digital camera. Note I have no entries in my /etc/fstab for my external USB drives (I have 3 such drives).

To get write permissions with the NTFS external drives, I had to apply this work around:
cd /sbin
su -c ‘ln -s mount.ntfs-3g mount.ntfs’
Reference for NTFS hot plug auto mounting:
NTFS - openSUSE

Thanks for the advice, but beyond NTFS mounting, I have a usb dongle for my wireless mouse and a usb tv tuner, those are the things I would like recognized without having to “lsusb”. If that makes sense.

here is the “dmesg” of my mouse dongle device:

usb 2-2: new low speed USB device using ohci_hcd and address 3
usb 2-2: configuration #1 chosen from 1 choice
input: HID 062a:0000 as /devices/pci0000:00/0000:00:13.1/usb2/2-2/2-2:1.0/input/input8
input,hidraw0: USB HID v1.10 Mouse [HID 062a:0000] on usb-0000:00:13.1-2
usb 2-2: New USB device found, idVendor=062a, idProduct=0000
usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0

and here is my fstab after editing it:

usbfs /proc/bus/usb usbfs auto 0 0

however, this device doesn’t show up under /proc/bus/usb, so where does it get mounted?

Any help with this guys?

None from me. I always research my hardware before a purchase, to ensure it is compatible with Linux.

On my wife’s openSUSE-10.3, her USB wireless keyboard with built in trackball “just works”. We did not have to do ANYTHING special. Hence I have not learned any “special tricks”. If it just works, one plugs it in and remains dumb and happy. :slight_smile:

Reference your USB turner, you could look here:
HCL/TV Cards - openSUSE

Of course, many users with different tuners (and indeed different hardware) get their hardware working with openSUSE, but they never take the time to update the openSUSE Hardware compatibility list.

I think you missed my point, both of the things I connect work. I am just asking why they aren’t recognized when I plug them in without having to do a “lsusb”.

I don’t understand your last post.

ok, let me break this down.

I have a device, lets call it device A.

I plug device A into my computer, now, if I don’t do a “lsusb” in the terminal the device doesn’t get recognized as having been connected, if I do actually do the “lsusb” the device will then show up and work as expected. Make sense? I’m wondering why the device isn’t just picked up automatically on hotplug.

Wow, anyone, no one has this working?

Bump, anyone?

Man, does anyone have an answer to this issue. Like I said, when I plug in a USB device unless I run “lsusb” the device never gets picked up. I’m stumped, help!!

Why don’t you write a bug report on this, and then monitor the bug reporting thread. You will likely get more detailed technical assessment of this in a bug thread. Submitting Bug Reports - openSUSE

In such a bug reporting thread you will likely be asked to provide all sorts of info on your PC’s software/OS and hardware setup.

Hi

Not an answer to your question, but a workaround. Add “mount usbfs” to /etc/init.d/boot.local This will mount usbfs when it is not mounted with fstab.

CU

Hi–

Please see this discussion…

Can’t automount USB drive in Suse 11.0 - openSUSE Forums

and you may find this helpful
HAL-0.5.9.1

I will post a more general thread topic in just a moment…

Basically, here’s the deal

hal-> udev -> “your windowing interface”

yes, there ARE some things in fstab that still apply…like your main fixed hard drive but it seems SO many other devices have now been delegated to hal, and if the permissions to normal users are not set right, you’re screwed.

Unfortunately, I think the SuSE installers (11.0+) don’t seem to do a good job of either asking the right questions concerning all this—and some of the setup seems rather difficult IF you don’t use linux acls AND you don’t know ahead of time who your normal users might be. I will contact the yast folks shortly.

Without editing files etc, you might try running (replace the <user_name> with yours):

# sudo polkit-auth --grant org.freedesktop.hal.storage.mount-removable --user **<user_name>**

# sudo polkit-auth --grant org.freedesktop.hal.storage.eject --user **<user_name>**

More details in here

HTH