automount usb pen's in runlevel3 howto ?

Hi, i have a 11.1 i586 ver installed with minimum x running, as i need this for school boxes to run rdesktop to a win terminal server.

i was trying to redirect usb pen’s with the -r option in rdesktop so the users will be able to auto access it.

i have notice that also i have the usb pen connected and i see it with fdisk -l it will not automount it.

how can i make the system automount usb pen’s. ?

p.s - the system is configured to get to runlevel 3 then in ~./bashrc i have added:
startx
rdesktop …

I think “ivman” is what you are searching for.

thanks for your fast replay, i have inst ivman and enabled it in yast > services

but still the same no automount.
do i have to configure ivman ? as i see it has xml files in /etc/ivman

if i do , .i.e will be helpfull

Hi
Have you also started the ivman service (as well as enabling it)? Have
a read of the man page as you shouldn’t need to modify the config file.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 (i586) Kernel 2.6.27.21-0.1-pae
up 7:17, 1 user, load average: 0.09, 0.12, 0.29
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

yes i did the service is running, but still does not work for me
any other idea ??

Hi
Hmmm, just tested here and it is working as expected with an OCZ
Rally2 drive. Can you see the device appear if you run dmesg?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 (i586) Kernel 2.6.27.21-0.1-pae
up 10:27, 3 users, load average: 0.39, 0.26, 0.19
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME

this is the output of lsusb:

lsusb
Bus 002 Device 003: ID 0781:5406 SanDisk Corp. Cruzer Micro 1/2/4GB Flash Drive
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

this is part of dmesg:

scsi 2:0:0:0: Direct-Access USB 2.0 Flash Disk 2.00 PQ: 0 ANSI: 2
sd 2:0:0:0: [sdb] 2062846 512-byte hardware sectors: (1.05GB/1007MiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 0b 00 00 08
sd 2:0:0:0: [sdb] Assuming drive cache: write through
ACPI: WMI: Mapper loaded
gameport: NS558 PnP Gameport is pnp00:0e/gameport0, io 0x201, speed 718kHz
sd 2:0:0:0: [sdb] 2062846 512-byte hardware sectors: (1.05GB/1007MiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 0b 00 00 08
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 2:0:0:0: [sdb] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete
acer-wmi: Acer Laptop ACPI-WMI Extras
acer-wmi: No or unsupported WMI interface, unable to load
ppdev: user-space parallel port driver
Adding 2096472k swap on /dev/sda2. Priority:-1 extents:1 across:2096472k
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.14.0-ioctl (2008-04-23) initialised: dm-devel@redhat.com
loop: module loaded
fuse init (API version 7.9)
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
NET: Registered protocol family 17
usb 2-2: USB disconnect, address 2
usb 2-2: new full speed USB device using uhci_hcd and address 3
usb 2-2: configuration #1 chosen from 1 choice
scsi3 : SCSI emulation for USB Mass Storage devices
usb 2-2: New USB device found, idVendor=0781, idProduct=5406
usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-2: Product: U3 Cruzer Micro
usb 2-2: Manufacturer: SanDisk Corporation
usb 2-2: SerialNumber: 0000162B537271A7
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi 3:0:0:0: Direct-Access SanDisk U3 Cruzer Micro 3.27 PQ: 0 ANSI: 2
sd 3:0:0:0: [sdb] 4013710 512-byte hardware sectors: (2.05GB/1.91GiB)
sd 3:0:0:0: [sdb] Write Protect is off
sd 3:0:0:0: [sdb] Mode Sense: 03 00 00 00
sd 3:0:0:0: [sdb] Assuming drive cache: write through
sd 3:0:0:0: [sdb] 4013710 512-byte hardware sectors: (2.05GB/1.91GiB)
sd 3:0:0:0: [sdb] Write Protect is off
sd 3:0:0:0: [sdb] Mode Sense: 03 00 00 00
sd 3:0:0:0: [sdb] Assuming drive cache: write through
sdb: sdb1
sd 3:0:0:0: [sdb] Attached SCSI removable disk
sd 3:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete
lines 433-489/489 (END)

do i have to see the device when i type “mount”?

AFAIK, it is easiest to use with pmount installed as well. (Please correct me if I’m wrong here).

I note that this ivman page states:

For automount purposes, Ivman should be run once from a system-wide init script and once per user session (e.g., create a link to /usr/bin/ivman in ~/.kde/Autostart or put an entry for /usr/bin/ivman in gnome-session-manager). When a device is attached, Ivman will call pmount or mount to mount the device. If pmount is used, it will mount the device readable and writeable only for the current user; if no per-user instance of Ivman is running, the device will be mounted read/write for everyone in the same group as is required to use the pmount command, and read-only for everyone else. If regular mount is used, then an fstab entry must exist in /etc/fstab for the device to be mounted, and the settings given in that fstab entry will be used for the mount.

Have a look at this:

How to Automatically Mount USB Drives with Rox-Filer, Ivman and Pmount

ok i made some progress, i found this article:

](http://forums.opensuse.org/archives/sls-archives/archives-linux-tweaks/archives-tips-tricks-tweaks/370496-automounting-suse-10-below-kernel-2-6-16-a.html)
changed /etc/fstab so it looks like this:

/dev/sda2 swap swap defaults 0 0
/dev/sda1 / ext3 acl,user_xattr 1 1
/dev/sdb1 /media/usb auto noauto,user,exec 0 0
#/dev/disk/by-id/ata-ST320410A_6FG1166H-part2 swap swap defaults 0 0
#/dev/disk/by-id/ata-ST320410A_6FG1166H-part1 / ext3 acl,user_xattr 1 1
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/etc/fstab lines 1-11/11 (END)

and also edit/create in my home dir:
.xinitrc/.xsession
and add this line:
ivman-launch &

now when ever i enter a cd or a usb pen i get alot of error messages like this:

[QUOTE]
ERROR:dbus.proxies:Introspect error on :1.1:/org/freedesktop/Hal/devices/pci_8086_2449: dbus.exceptions.DBusException: Rejected send message, 1 matched rules; type=“method_call”, sender=":1.34" (uid=1000 pid=4950 comm="/usr/bin/python /usr/bin/halmount /dev/sde1 “) interface=“org.freedesktop.DBus.Introspectable” member=“Introspect” error name=”(unset)" requested_reply=0 destination=":1.1" (uid=0 pid=2163 comm="/usr/sbin/hald --daemon=yes “))
ERROR:dbus.proxies:Introspect error on :1.1:/org/freedesktop/Hal/devices/pci_8086_2449: dbus.exceptions.DBusException: Rejected send message, 1 matched rules; type=“method_call”, sender=”:1.35" (uid=1000 pid=4948 comm="/usr/bin/python /usr/bin/halmount /dev/sde1 “) interface=“org.freedesktop.DBus.Introspectable” member=“Introspect” error name=”(unset)" requested_reply=0 destination=":1.1" (uid=0 pid=2163 comm="/usr/sbin/hald --daemon=yes “))
ERROR:dbus.proxies:Introspect error on :1.1:/org/freedesktop/Hal/devices/pci_8086_244e: dbus.exceptions.DBusException: Rejected send message, 1 matched rules; type=“method_call”, sender=”:1.34" (uid=1000 pid=4950 comm="/usr/bin/python /usr/bin/halmount /dev/sde1 “) interface=“org.freedesktop.DBus.Introspectable” member=“Introspect” error name=”(unset)" requested_reply=0 destination=":1.1" (uid=0 pid=2163 comm="/usr/sbin/hald --daemon=yes “))
ERROR:dbus.proxies:Introspect error on :1.1:/org/freedesktop/Hal/devices/pci_8086_244e: dbus.exceptions.DBusException: Rejected send message, 1 matched rules; type=“method_call”, sender=”:1.35" (uid=1000 pid=4948 comm="/usr/bin/python /usr/bin/halmount /dev/sde1 “) interface=“org.freedesktop.DBus.Introspectable” member=“Introspect” error name=”(unset)" requested_reply=0 destination=":1.1" (uid=0 pid=2163 comm="/usr/sbin/hald --daemon=yes “))
ERROR:dbus.proxies:Introspect error on :1.1:/org/freedesktop/Hal/devices/pci_10de_2d: dbus.exceptions.DBusException: Rejected send message, 1 matched rules; type=“method_call”, sender=”:1.34" (uid=1000 pid=4950 comm="/usr/bin/python /usr/bin/halmount /dev/sde1 “) interface=“org.freedesktop.DBus.Introspectable” member=“Introspect” error name=”(unset)" requested_reply=0 destination=":1.1" (uid=0 pid=2163 comm="/usr/sbin/hald --daemon=yes “))
ERROR:dbus.proxies:Introspect error on :1.1:/org/freedesktop/Hal/devices/pci_10de_2d: dbus.exceptions.DBusException: Rejected send message, 1 matched rules; type=“method_call”, sender=”:1.35" (uid=1000 pid=4948 comm="/usr/bin/python /usr/bin/halmount /dev/sde1 “) interface=“org.freedesktop.DBus.Introspectable” member=“Introspect” error name=”(unset)" requested_reply=0 destination=":1.1" (uid=0 pid=2163 comm="/usr/sbin/hald --daemon=yes “))
ERROR:dbus.proxies:Introspect error on :1.1:/org/freedesktop/Hal/devices/pci_8086_1a31: dbus.exceptions.DBusException: Rejected send message, 1 matched rules; type=“method_call”, sender=”:1.34" (uid=1000 pid=4950 comm="/usr/bin/python /usr/bin/halmount /dev/sde1 “) interface=“org.freedesktop.DBus.Introspectable” member=“Introspect” error name=”(unset)" requested_reply=0 destination=":1.1" (uid=0 pid=2163 comm="/usr/sbin/hald --daemon=yes “))
ERROR:dbus.proxies:Introspect error on :1.1:/org/freedesktop/Hal/devices/pci_8086_1a31: dbus.exceptions.DBusException: Rejected send message, 1 matched rules; type=“method_call”, sender=”:1.35" (uid=1000 pid=4948 comm="/usr/bin/python /usr/bin/halmount /dev/sde1 “) interface=“org.freedesktop.DBus.Introspectable” member=“Introspect” error name=”(unset)" requested_reply=0 destination=":1.1" (uid=0 pid=2163 comm="/usr/sbin/hald --daemon=yes “))
ERROR:dbus.proxies:Introspect error on :1.1:/org/freedesktop/Hal/devices/pci_8086_1a30: dbus.exceptions.DBusException: Rejected send message, 1 matched rules; type=“method_call”, sender=”:1.34" (uid=1000 pid=4950 comm="/usr/bin/python /usr/bin/halmount /dev/sde1 “) interface=“org.freedesktop.DBus.Introspectable” member=“Introspect” error name=”(unset)" requested_reply=0 destination=":1.1" (uid=0 pid=2163 comm="/usr/sbin/hald --daemon=yes “))
ERROR:dbus.proxies:Introspect error on :1.1:/org/freedesktop/Hal/devices/pci_8086_1a30: dbus.exceptions.DBusException: Rejected send message, 1 matched rules; type=“method_call”, sender=”:1.35" (uid=1000 pid=4948 comm="/usr/bin/python /usr/bin/halmount /dev/sde1 “) interface=“org.freedesktop.DBus.Introspectable” member=“Introspect” error name=”(unset)" requested_reply=0 destination=":1.1" (uid=0 pid=2163 comm="/usr/sbin/hald --daemon=yes “))
ERROR:dbus.proxies:Introspect error on :1.1:/org/freedesktop/Hal/devices/volume_uuid_2157_00E4: dbus.exceptions.DBusException: Rejected send message, 1 matched rules; type=“method_call”, sender=”:1.34" (uid=1000 pid=4950 comm="/usr/bin/python /usr/bin/halmount /dev/sde1 “) interface=“org.freedesktop.DBus.Introspectable” member=“Introspect” error name=”(unset)" requested_reply=0 destination=":1.1" (uid=0 pid=2163 comm="/usr/sbin/hald --daemon=yes “))
ERROR:dbus.proxies:Introspect error on :1.1:/org/freedesktop/Hal/devices/volume_uuid_2157_00E4: dbus.exceptions.DBusException: Rejected send message, 1 matched rules; type=“method_call”, sender=”:1.35" (uid=1000 pid=4948 comm="/usr/bin/python /usr/bin/halmount /dev/sde1 “) interface=“org.freedesktop.DBus.Introspectable” member=“Introspect” error name=”(unset)" requested_reply=0 destination=":1.1" (uid=0 pid=2163 comm="/usr/sbin/hald --daemon=yes "))
/dev/sde1: org.freedesktop.DBus.Error.UnknownMethod: Method “Mount” with signature “vsas” on interface “org.freedesktop.Hal.Device.Volume” doesn’t exist
/dev/sde1: org.freedesktop.DBus.Error.UnknownMethod: Method “Mount” with signature “vsas” on interface “org.freedesktop.Hal.Device.Volume” doesn’t exist

[QUOTE/]

any idea for what may give those errors ?

i have installed pmount from packman repo but still get the same error messags

?

Hi
Well the only change I have made in /etc/fstab was changing the usbfs
to auto (I use gpsd and this needs the change).

Can you try that after rolling back the changes you made in that link?


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 (i586) Kernel 2.6.27.21-0.1-pae
up 18:26, 2 users, load average: 0.55, 0.44, 0.26
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME