You are not logged in.

#1 2007-09-23 14:10:19

uplift
Member
Registered: 2007-09-23
Posts: 2

Another hal/automount thread (sorry!)

First time Arch user and I'm really rather impressed at the speed and ease of control smile

On to the problem though, I cannot get hal to automount my drives (CD or usb drives)

I've looked at these threads and the hal wiki entry: 1, 2 and 3 but haven't been able to find a solution.

My user is correctly set up in the storage/optical groups (and have also tried adding to the hal and dbus groups, just in case) and it doesn't work when logged in as root either so probably not a permissions issue.

Here is my rc.conf, without comments:

#
# /etc/rc.conf - Main Configuration for Arch Linux

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
LOCALE="en_GB.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/London"
KEYMAP=uk
CONSOLEFONT=default8x16
CONSOLEMAP=
USECOLOR="yes"


# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by udev
MOD_BLACKLIST=()

MODULES=(forcedeth nvidia) 
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
HOSTNAME="desktop"

lo="lo 127.0.0.1"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0)

gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

NET_PROFILES=(home)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------

DAEMONS=(syslog-ng network @netfs @hal @crond @alsa )
# End of file

(Tried hal non-backgrounded too, so don't think that is the issue).

Hal is definitely running - pstree output:

  
     ─hald───hald-runner─┬─hald-addon-acpi
                         ├─4*[hald-addon-keyb]
                         └─hald-addon-stor

My gnome settings in System -> Prefs -> Removable drives/media are both set to mount automatically.

In gconf-editor, /desktop/gnome/volume_manager has both 'automount_drives' and 'automount_media' checked.
/apps/nautilus/desktop has 'show volumes' checked.

I have the rights to mount a partition, because when I go manually to the /media/ folder and mount it using the leftover icon (can do this as a normal user), it will correctly appear on the desktop and places menu.

Here is a list of my various groups:

root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin
adm::4:root,daemon
tty::5:colin
disk::6:root,colin
lp::7:daemon,colin
mem::8:
kmem::9:
wheel::10:root
ftp::11:
mail::12:
log::19:root,colin
smmsp::25:
network:x:90:colin
video:x:91:colin
audio::92:colin
optical::93:colin,hal
floppy:x:94:colin,hal
storage:x:95:colin,hal
power:x:98:colin
nobody::99:
users::100:colin
slocate:x:21:colin
games:x:50:
dbus:x:81:
hal:x:82:
avahi:x:84:
gdm:x:101:
camera:x:97:colin

I found a bug report suggesting running it standalone like this to get output:

hald --verbose=yes --daemon=no

And I get a ton of output, a sample of which is here on inserting a CD:

15:03:57.088 [i] blockdev.c:364: entering; exit_type=0, return_code=0
15:03:57.089 [E] device_info.c:272: Could not resolve keypath '@input.originating_device:info.linux.driver' on udi 'atkbd'
15:03:57.089 [E] device_info.c:272: Could not resolve keypath '@input.originating_device:info.linux.driver' on udi 'atkbd'
15:03:57.089 [E] device_info.c:272: Could not resolve keypath '@input.originating_device:info.linux.driver' on udi 'atkbd'
15:03:57.089 [E] device_info.c:272: Could not resolve keypath '@input.originating_device:info.linux.driver' on udi 'atkbd'
15:03:57.089 [E] device_info.c:272: Could not resolve keypath '@input.originating_device:info.linux.driver' on udi 'atkbd'
15:03:57.089 [E] device_info.c:272: Could not resolve keypath '@input.originating_device:info.linux.driver' on udi 'atkbd'
15:03:57.090 [i] blockdev.c:127: Add callouts completed udi=/org/freedesktop/Hal/devices/volume_label_BG2_ToB
15:03:57.090 [i] hald.c:103: Added device to GDL; udi=/org/freedesktop/Hal/devices/volume_label_BG2_ToB
15:03:57.090 [i] hald.c:711: Device probing completed
15:03:57.090 [i] hald_dbus.c:5173: entering
15:03:57.092 [W] ci-tracker.c:200: Could not get uid for connection: org.freedesktop.DBus.Error.NameHasNoOwner Could not get UID of name 'org.freedesktop.DBus': no such name
15:03:57.092 [E] hald_dbus.c:4462: Cannot get caller info for org.freedesktop.DBus
[7221]: 15:03:58.652 [i] addon-storage.c:346: Checking whether device /dev/sr0 is locked on HAL
[7221]: 15:03:58.653 [i] addon-storage.c:354: ... device /dev/sr0 is not locked on HAL
[7221]: 15:04:56.685 [D] addon-storage.c:481: Media removal detected on /dev/sr0
15:04:56.685 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/storage_model_DVDR1660P1, key=storage.removable.media_available
15:04:56.686 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/storage_model_DVDR1660P1, key=storage.partitioning_scheme
15:04:56.688 [i] hald_dbus.c:2849: entering, local_interface=1
15:04:56.689 [D] hald_dbus.c:2858: udi=/org/freedesktop/Hal/devices/storage_model_DVDR1660P1
15:04:56.689 [i] blockdev.c:1328: Entering, udi=/org/freedesktop/Hal/devices/storage_model_DVDR1660P1
Run started hald-probe-storage (10000) (0) 
!  full path is '/usr/lib/hal/hald-probe-storage', program_dir is '/usr/lib/hal'
15:04:56.691 [i] hald_dbus.c:4766: ***************************
15:04:56.691 [i] hald_dbus.c:4767: ********* got a connection 80a9100
15:04:56.691 [i] hald_dbus.c:4768: ***************************
[7225]: 15:04:56.691 [D] probe-storage.c:153: Doing probe-storage for /dev/sr0 (bus scsi) (drive_type cdrom) (udi=/org/freedesktop/Hal/devices/storage_model_DVDR1660P1) (--only-check-for-fs==1)
[7225]: 15:04:56.691 [D] probe-storage.c:295: Checking for optical disc on /dev/sr0
[7225]: 15:04:56.692 [D] probe-storage.c:303: Doing open ("/dev/sr0", O_RDONLY | O_NONBLOCK | O_EXCL)
[7225]: 15:04:56.753 [D] probe-storage.c:333: PROBE HAS EXCLUSIVE LOCK ON CDROM
[7225]: 15:04:56.756 [D] probe-storage.c:383: PROBE CLOSED LOCK ON CDROM
15:04:56.757 [i] hald_dbus.c:1264: storage.removable.media_available -> False
15:04:56.757 [i] hald_dbus.c:4711: ************************
15:04:56.757 [i] hald_dbus.c:4712: Client to local_server was disconnected for 80a9100
15:04:56.757 [i] hald_dbus.c:4713: ************************
15:04:56.757 [i] hald_dbus.c:4752: ***************************
15:04:56.757 [i] hald_dbus.c:4753: ********* unregistered 80a9100
15:04:56.757 [i] hald_dbus.c:4754: ***************************
/usr/lib/hal/hald-probe-storage exited
15:04:56.758 [i] blockdev.c:1284: hald-probe-storage --only-check-for-media returned 0 (exit_type=0)
15:04:56.758 [i] blockdev.c:1309: Media removal detected; synthesizing hotplug rem for fakevolume /org/freedesktop/Hal/devices/volume_label_BG2_ToB
15:04:56.758 [i] blockdev.c:1225: block_rem: sysfs_path=/sys/block/sr0/fakevolume
15:04:56.758 [i] blockdev.c:1267: device at sysfs_path /sys/block/sr0/fakevolume is not mounted
15:04:56.758 [i] blockdev.c:141: Remove callouts completed udi=/org/freedesktop/Hal/devices/volume_label_BG2_ToB
15:04:56.758 [i] hald.c:123: Removed device from GDL; udi=/org/freedesktop/Hal/devices/volume_label_BG2_ToB
[7221]: 15:04:58.725 [i] addon-storage.c:346: Checking whether device /dev/sr0 is locked on HAL
[7221]: 15:04:58.726 [i] addon-storage.c:354: ... device /dev/sr0 is not locked on HAL
[7221]: 15:05:18.667 [D] addon-storage.c:506: Media insertion detected on /dev/sr0
15:05:18.667 [D] hald_dbus.c:1550: udi=/org/freedesktop/Hal/devices/storage_model_DVDR1660P1, key=storage.removable.media_available
15:05:18.668 [i] hald_dbus.c:2849: entering, local_interface=1
15:05:18.668 [D] hald_dbus.c:2858: udi=/org/freedesktop/Hal/devices/storage_model_DVDR1660P1
15:05:18.668 [i] blockdev.c:1328: Entering, udi=/org/freedesktop/Hal/devices/storage_model_DVDR1660P1
Run started hald-probe-storage (10000) (0) 
!  full path is '/usr/lib/hal/hald-probe-storage', program_dir is '/usr/lib/hal'
15:05:18.671 [i] hald_dbus.c:4766: ***************************
15:05:18.671 [i] hald_dbus.c:4767: ********* got a connection 80a92b8
15:05:18.671 [i] hald_dbus.c:4768: ***************************
[7226]: 15:05:18.671 [D] probe-storage.c:153: Doing probe-storage for /dev/sr0 (bus scsi) (drive_type cdrom) (udi=/org/freedesktop/Hal/devices/storage_model_DVDR1660P1) (--only-check-for-fs==1)
[7226]: 15:05:18.671 [D] probe-storage.c:295: Checking for optical disc on /dev/sr0
[7226]: 15:05:18.671 [D] probe-storage.c:303: Doing open ("/dev/sr0", O_RDONLY | O_NONBLOCK | O_EXCL)
[7226]: 15:05:18.672 [D] probe-storage.c:315: Open failed - Device Busy
[7226]: 15:05:18.772 [D] probe-storage.c:319: Attempting open w/ O_EXCL again
[7226]: 15:05:18.773 [D] probe-storage.c:333: PROBE HAS EXCLUSIVE LOCK ON CDROM
[7226]: 15:05:18.775 [D] probe-storage.c:375: media size = 656158720
[7226]: 15:05:18.777 [D] probe-storage.c:383: PROBE CLOSED LOCK ON CDROM
15:05:18.777 [i] hald_dbus.c:1264: storage.removable.media_available -> True
15:05:18.777 [i] hald_dbus.c:1248: storage.removable.media_size -> 656158720
15:05:18.777 [i] hald_dbus.c:4711: ************************
15:05:18.778 [i] hald_dbus.c:4712: Client to local_server was disconnected for 80a92b8
15:05:18.778 [i] hald_dbus.c:4713: ************************
15:05:18.778 [i] hald_dbus.c:4752: ***************************
15:05:18.778 [i] hald_dbus.c:4753: ********* unregistered 80a92b8
15:05:18.778 [i] hald_dbus.c:4754: ***************************
/usr/lib/hal/hald-probe-storage exited
15:05:18.778 [i] blockdev.c:1284: hald-probe-storage --only-check-for-media returned 2 (exit_type=0)
15:05:18.778 [i] blockdev.c:1300: Media insertion detected with file system on main block device; synthesizing hotplug add
15:05:18.778 [i] osspec.c:892: hal_util_find_known_parent: '/sys/block/sr0/fakevolume'->'/sys/block/sr0'
15:05:18.778 [i] blockdev.c:645: block_add: sysfs_path=/sys/block/sr0/fakevolume dev=/dev/sr0 is_part=0, parent=0x080ee6a0
15:05:18.778 [i] blockdev.c:655: Handling /dev/sr0 as fakevolume - sysfs_path_real=/sys/block/sr0
Run started hald-probe-volume (10000) (0) 
!  full path is '/usr/lib/hal/hald-probe-volume', program_dir is '/usr/lib/hal'
15:05:18.780 [i] hald_dbus.c:4766: ***************************
15:05:18.780 [i] hald_dbus.c:4767: ********* got a connection 80a8e60
15:05:18.780 [i] hald_dbus.c:4768: ***************************
[7227]: 15:05:18.780 [D] probe-volume.c:381: Doing probe-volume for /dev/sr0

[7227]: 15:05:18.791 [D] probe-volume.c:392: volume.block_size = 2048
[7227]: 15:05:18.791 [D] probe-volume.c:396: volume.size = 656158720
[7227]: 15:05:18.798 [D] probe-volume.c:440: Disc in /dev/sr0 has data
[7227]: 15:05:19.768 [D] probe-volume.c:473: get_disc_type returned 0x08
[7227]: 15:05:19.770 [D] probe-volume.c:544: volume.disc.capacity = 656158720
[7227]: 15:05:19.776 [D] probe-volume.c:578: volume_session_count = 1
[7227]: 15:05:19.778 [D] probe-volume.c:586: last session starts at block = 0
[7227]: 15:05:19.781 [i] probe-volume.c:625: invoking volume_id_probe_all, offset=0, size=0
7227: 15:05:19.781: volume_id.c:351 probing at offset 0x0, size 0x0
7227: 15:05:19.781: linux_raid.c:70 probing at offset 0xffffffffffff0000, size 0x0
7227: 15:05:19.781: linux_raid.c:124 probing at offset 0xffffffffffff0000, size 0x0
7227: 15:05:19.781: util.c:342 get buffer off 0xffffffffffff0000(18446744073709486080), len 0x800
7227: 15:05:19.781: util.c:391 read seekbuf off:0xffffffffffff0000 len:0x800
7227: 15:05:19.781: linux_raid.c:124 probing at offset 0x0, size 0x0
7227: 15:05:19.781: util.c:342 get buffer off 0x0(0), len 0x800
7227: 15:05:19.781: util.c:355 read sbbuf len:0x800
7227: 15:05:19.857: linux_raid.c:124 probing at offset 0x1000, size 0x0
7227: 15:05:19.857: util.c:342 get buffer off 0x1000(4096), len 0x800
7227: 15:05:19.857: util.c:355 read sbbuf len:0x1800
7227: 15:05:19.876: ddf_raid.c:49 probing at offset 0x0, size 0x0
7227: 15:05:19.876: isw_raid.c:47 probing at offset 0x0, size 0x0
7227: 15:05:19.876: lsi_raid.c:42 probing at offset 0x0, size 0x0
7227: 15:05:19.876: silicon_raid.c:57 probing at offset 0x0, size 0x0
7227: 15:05:19.876: nvidia_raid.c:45 probing at offset 0x0, size 0x0
7227: 15:05:19.876: promise_raid.c:46 probing at offset 0x0, size 0x0
7227: 15:05:19.876: adaptec_raid.c:90 probing at offset 0x0, size 0x0
7227: 15:05:19.876: jmicron_raid.c:43 probing at offset 0x0, size 0x0
7227: 15:05:19.876: lvm.c:49 probing at offset 0x0
7227: 15:05:19.876: util.c:342 get buffer off 0x400(1024), len 0x800
7227: 15:05:19.876: util.c:342 get buffer off 0x0(0), len 0x800
7227: 15:05:19.876: highpoint.c:52 probing at offset 0x0
7227: 15:05:19.876: util.c:342 get buffer off 0x1200(4608), len 0x200
7227: 15:05:19.876: volume_id.c:382 probing at offset 0x0, size 0x0
7227: 15:05:19.876: fat.c:273 probing at offset 0x0
7227: 15:05:19.876: util.c:342 get buffer off 0x0(0), len 0x400
7227: 15:05:19.876: linux_swap.c:46 probing at offset 0x0
7227: 15:05:19.876: util.c:342 get buffer off 0xff6(4086), len 0xa
7227: 15:05:19.876: util.c:342 get buffer off 0x1ff6(8182), len 0xa
7227: 15:05:19.876: util.c:355 read sbbuf len:0x2000
7227: 15:05:19.876: util.c:342 get buffer off 0x3ff6(16374), len 0xa
7227: 15:05:19.876: util.c:355 read sbbuf len:0x4000
7227: 15:05:19.876: util.c:342 get buffer off 0x0(0), len 0x2
7227: 15:05:19.876: xfs.c:48 probing at offset 0x0
7227: 15:05:19.876: util.c:342 get buffer off 0x0(0), len 0x200
7227: 15:05:19.876: ext.c:84 probing at offset 0x0
7227: 15:05:19.876: util.c:342 get buffer off 0x400(1024), len 0x200
7227: 15:05:19.876: reiserfs.c:63 probing at offset 0x0
7227: 15:05:19.876: util.c:342 get buffer off 0x10000(65536), len 0x200
7227: 15:05:19.876: util.c:355 read sbbuf len:0x10200
7227: 15:05:19.989: util.c:342 get buffer off 0x2000(8192), len 0x200
7227: 15:05:19.989: jfs.c:48 probing at offset 0x0
7227: 15:05:19.989: util.c:342 get buffer off 0x8000(32768), len 0x200
7227: 15:05:19.989: udf.c:75 probing at offset 0x0
7227: 15:05:19.989: util.c:342 get buffer off 0x8000(32768), len 0x200
7227: 15:05:19.989: util.c:342 get buffer off 0x8800(34816), len 0x800
7227: 15:05:19.989: util.c:342 get buffer off 0x8000(32768), len 0x800
7227: 15:05:19.989: util.c:342 get buffer off 0x8800(34816), len 0x800
7227: 15:05:19.989: util.c:342 get buffer off 0x9000(36864), len 0x800
7227: 15:05:19.989: util.c:342 get buffer off 0x9800(38912), len 0x800
7227: 15:05:19.989: iso9660.c:62 probing at offset 0x0
7227: 15:05:19.989: util.c:342 get buffer off 0x8000(32768), len 0x200
7227: 15:05:19.989: util.c:342 get buffer off 0x8800(34816), len 0x200
[7227]: 15:05:19.989 [i] probe-volume.c:627: volume_id_probe_all returned 0
[7227]: 15:05:19.989 [D] probe-volume.c:123: volume.fsusage = 'filesystem'
[7227]: 15:05:19.989 [D] probe-volume.c:128: volume.fstype = 'iso9660'
[7227]: 15:05:19.989 [D] probe-volume.c:132: volume.fsversion = 'Joliet Extension'
[7227]: 15:05:19.989 [D] probe-volume.c:136: volume.uuid = ''
[7227]: 15:05:19.989 [D] probe-volume.c:143: volume.label = 'BG2 ToB'
15:05:19.990 [i] hald_dbus.c:1240: volume.block_size -> 2048
15:05:19.990 [i] hald_dbus.c:1248: volume.size -> 656158720
15:05:19.990 [i] hald_dbus.c:1232: volume.disc.type -> unknown
15:05:19.990 [i] hald_dbus.c:1264: volume.disc.has_audio -> False
15:05:19.990 [i] hald_dbus.c:1264: volume.disc.has_data -> False
15:05:19.990 [i] hald_dbus.c:1264: volume.disc.is_blank -> False
15:05:19.990 [i] hald_dbus.c:1264: volume.disc.is_appendable -> False
15:05:19.990 [i] hald_dbus.c:1264: volume.disc.is_rewritable -> False
15:05:19.990 [i] hald_dbus.c:1264: volume.disc.has_data -> True
15:05:19.990 [i] hald_dbus.c:1264: volume.disc.is_videodvd -> False
15:05:19.990 [i] hald_dbus.c:1264: volume.disc.is_vcd -> False
15:05:19.990 [i] hald_dbus.c:1264: volume.disc.is_svcd -> False
15:05:19.990 [i] hald_dbus.c:1232: volume.disc.type -> cd_rom
15:05:19.990 [i] hald_dbus.c:1248: volume.disc.capacity -> 656158720
15:05:19.990 [i] hald_dbus.c:1232: volume.fsusage -> filesystem
15:05:19.990 [i] hald_dbus.c:1232: volume.fstype -> iso9660
15:05:19.990 [i] hald_dbus.c:1232: volume.fsversion -> Joliet Extension
15:05:19.990 [i] hald_dbus.c:1232: volume.uuid -> 
15:05:19.990 [i] hald_dbus.c:1232: volume.label -> BG2 ToB
15:05:19.990 [i] hald_dbus.c:1232: info.product -> BG2 ToB
15:05:19.991 [i] hald_dbus.c:4711: ************************
15:05:19.991 [i] hald_dbus.c:4712: Client to local_server was disconnected for 80a8e60
15:05:19.991 [i] hald_dbus.c:4713: ************************
15:05:19.991 [i] hald_dbus.c:4752: ***************************
15:05:19.991 [i] hald_dbus.c:4753: ********* unregistered 80a8e60
15:05:19.991 [i] hald_dbus.c:4754: ***************************
/usr/lib/hal/hald-probe-volume exited
15:05:19.991 [i] blockdev.c:364: entering; exit_type=0, return_code=0
15:05:19.992 [E] device_info.c:272: Could not resolve keypath '@input.originating_device:info.linux.driver' on udi 'atkbd'
15:05:19.992 [E] device_info.c:272: Could not resolve keypath '@input.originating_device:info.linux.driver' on udi 'atkbd'
15:05:19.992 [E] device_info.c:272: Could not resolve keypath '@input.originating_device:info.linux.driver' on udi 'atkbd'
15:05:19.992 [E] device_info.c:272: Could not resolve keypath '@input.originating_device:info.linux.driver' on udi 'atkbd'
15:05:19.992 [E] device_info.c:272: Could not resolve keypath '@input.originating_device:info.linux.driver' on udi 'atkbd'
15:05:19.992 [E] device_info.c:272: Could not resolve keypath '@input.originating_device:info.linux.driver' on udi 'atkbd'
15:05:19.993 [i] blockdev.c:127: Add callouts completed udi=/org/freedesktop/Hal/devices/volume_label_BG2_ToB
15:05:19.993 [i] hald.c:103: Added device to GDL; udi=/org/freedesktop/Hal/devices/volume_label_BG2_ToB
[7221]: 15:05:20.669 [i] addon-storage.c:346: Checking whether device /dev/sr0 is locked on HAL
[7221]: 15:05:20.669 [i] addon-storage.c:354: ... device /dev/sr0 is not locked on HAL

However, deciphering that is a bit beyond my linux knowledge!

Can anyone point me in the right direction here? I feel like I've checked all the boxes and it should just be working, so could use a hand smile

Thanks!

Offline

#2 2007-09-23 15:12:30

luciferin
Member
Registered: 2007-05-10
Posts: 144

Re: Another hal/automount thread (sorry!)

What version of Gnome are you using?  There has been a bug reported with 2.18 onwards (I believe)

Check out this thread for detail:
http://bbs.archlinux.org/viewtopic.php? … 28#p282528

Offline

#3 2007-09-23 19:09:16

uplift
Member
Registered: 2007-09-23
Posts: 2

Re: Another hal/automount thread (sorry!)

2.18.3 - thanks for the informative link pointing me in the right direction, looks like gvm is the culprit as mine seems to be failing silently as well.

Last edited by uplift (2007-09-23 19:09:33)

Offline

Board footer

Powered by FluxBB