KDE / HAL / dbus

I am trying to setup HAL/dbus with KDE, but have hit a bit of a snag. When popping in a CD/DVD or USB device, then selecting "Open in New Window" from the prompt, I get this message ("/mnt/usbdisk" differs when using a dvd):
/mnt/usbdisk is a folder, but a file was expected.
After that error message, I can click the link on my desktop to the device, and it opens up.
Here is some relevant information:
/etc/fstab:
/dev/sr0 /mnt/dvd auto ro,user,noauto,nodev,nosuid0 0
/dev/sdc1 /mnt/usbdisk auto user,noauto,nodev,nosuid 0 0

xyon wrote:
Here is some relevant information:
/etc/fstab:
/dev/sr0 /mnt/dvd auto ro,user,noauto,nodev,nosuid0 0
/dev/sdc1 /mnt/usbdisk auto user,noauto,nodev,nosuid 0 0
Removable media shall be controllable by HAL of operating system, which does automount. /etc/fstab creates hard mounts. Even if the documents or fstab examples state what you pasted, remove these lines or comment them out. Let Linux do it for you.

Similar Messages

  • Hal/Dbus/gnome-volume-manager mount permission problem

    Hello,
    I have hal/dbus/gnome-volume-manager installed (of course I use gnome as DE).
    I need help in configuring the permissions for automatically mounted disk/partitions.
    When I connect an external USB HDD having 1 NTFS and 1 partition, these partitions are auto-mounted and the desktop icons appear for the both.
    As a normal user I am able to read/write FAT partition (I think, not because I have configured anything properly, but because FAT does not support permissions on filesystem), but I am not even able to read (browse) NTFS filesystem (ERORR: You do not have permission...).
    Yes, I have NTFS filesystm support enabled, because I am able to access that same NTFS partition as root.

    Well, Thanks for the reply but I had not put any static entry in fstab for this external USB HDD.
    Anyway, I figured out something (havn't tested it yet)
    When an external USB HDD is attached ... depending storage.policy and volume.policy rules in /usr/share/hal .. the hal daemon (hald) calls fstab-sync with appropriate parameters.
    fstab-sync, then, generates /etc/fstab enteries automatically (with comment=managed keyword).
    I have added a user policy so that umask and gid value is set correctly. I'll test is as soon as I'll get time.
    In the meanwhile if anybody have any other suggestions, please post it here.

  • Autofs or hal/dbus ?

    When I was setting up my Arch box I used autofs so it would automount dvds I wanted to watch with smplayer.  Then I wanted to try "thunar", which needed hal/dbus.  When I enable hal in my rc.conf and rebooted, it said the DVD was locked - by autofs I assume.  So I removed autofs from my rc.conf, and rebooted.  Now thunar works.  I had avoided hal/dbus because I thought I read they were part of gnome and I was afraid it would clutter my system, but then I found it was already installed and I just had to enable it.  Is using autofs deprecated in favor of using hal/dbus?

    HAL and dbus are needed by alot of things, and using it in conjunction with a volume manager (such as  thunar-volman) seems to be the prefered way to do it.
    not sure if autofs is "deprecated" (i can think of a few uses where it'd work better than hal/dbus+volume manager) but since you already got hal/dbus + a volume manager installed, use them

  • KDE, HAL, cannot open the non-latin mount point

    I just installed ArchLinux for a few days and there is a problem here: I use KDE and hal, USB disk and CDROM can be auto-mounted. But if the USB Disk lable or CDROM label is non-latin characters, KDE, actually, Konqueror cannot open that mount point.
    I think my charset is correct because in konqueror, the directory name of the mount point is correct. When I try to open this directory, konqueror complained that she cannot open that directory and the directory name which the error message dialog shows is wrong.
    Any ideas? Thanks a lot.

    kartwall wrote:
    Problem solved -- modify the HAL mount point, so HAL will not use disk's lable to create a directory as mount point. Although this is not a perfect solution, but it works.
    http://mail.kde.org/pipermail/kde-fr...il/000545.html
    I think this is the page:
    http://mail.kde.org/pipermail/kde-freeb … 00545.html
    http://www.centos.org/modules/newbb/pri … SC&start=0
    fifth and sixth post

  • HAL/DBUS No longer works in nautilus.

    Hey,
    After a recent upgrade I noticed that nautilus no longer recognises any devices such as USB or DVD/CD there's is no longer even an icon with which to mount from. This worked perfectly before but stopped after the upgrade. I checked hal and dbus and they both start and are definitely running, outside of that, I can't even see any errors.
    Any help?
    I also just noticed that my wastebasket no longer works. Has anything major happened to nautilus? I think that's where the problem may be/ I checked the logs and they mostly show udev picking it up but it never shows in nautilus, not even an icon. Also the only associated error is 
    kernel: sd 6:0:0:0: [sdf] Assuming drive cache: write through
    Last edited by MrGone (2009-09-30 21:59:38)

    No i'm just using the one in extra i believe.
    Last edited by MrGone (2009-09-30 19:21:47)

  • Annoying inconsistent udev/HAL/dbus external USB HDD detection...

    Hello!  I am a newbie to ARCH.  When I first installed it, my USB drive almost always was detected AND auto-mounted upon booting into GNOME.  It was beautiful.  This shows that I have DBUS/HAL and all that nice stuff installed. 
    After a while, I decided to update my daemons as below.  (i added portmap and fam --- that is all!)
    DAEMONS=(syslog-ng network portmap fam dbus hal netfs crond alsa openntpd gdm)
    Anyway... now the USB external drive is never automatically detected or mounted, period.  I have to boot into GNOME, THEN unplug the USB cable... wait a bit... plug it back in.  Then it is detected.  Then I have to manually do:
    mount /dev/sda5 /media/usb
    mount /dev/sda6 /media/usb
    to mount them.  This is very annoying. 
    Is there anyway to get consistent detection and auto-mounting behavior???  It was working fine the first few times.  No idea where I went wrong, friends.
    btw... i am in the proper groups for my user too, though that is irrelevant because if i wasn't, it would still show up, just give me a security msg preventing mounting - GROUPS = disk wheel ftp dbus hal network video audio optical storage camera power users pacman
    Last edited by darweth (2007-04-07 13:42:39)

    Well, I eventually discovered the necessity of gnome-volume-manager and all is fine now.   No more help needed.  Weird that the behavior was bipolar w/o it though.

  • [KDE & HAL] I can't log with KDM & HAL daemon doesn't work.

    Hi all,
        I opened a new topic because I found anybody who has the same problem. First, I can't log myself with KDM, when I type my password and press enter, it displays me a black screen en goes back to logging session...So I read a comment which is advised to log in with GDM, it works but it's not KDM... I noticed that dbus didn't launch, I fixed that with wiki explanations, but HAL still like that:
    :: Starting Hardware Abstraction Layer                                                                       [FAIL]
    I think it is a bug of 64bit package, but I am not sure. (32bit version works)
    So Have you any ideas ? Thanks for reply.
    PS: sorry for ugly english. It's not my native language.
    I simply rebooted when it solved the problem...
    Last edited by skanarchy (2009-02-12 15:23:20)

    I am having the problem logging on through KDM as well, was that what was solved by simply rebooting? Someone else is mentioning the problem here: http://bbs.archlinux.org/viewtopic.php?pid=514615

  • Ivman hal dbus problem

    I tried automount and this with the packages from current and extra
    when starting ivman I get this:
    libhal.c 644 : Error connecting to system bus: Failed to connect to socket /var/lib/dbus/system_bus_socket: Connection refused
    ** (process:3869): WARNING **: manager.c/656: Failed to initialize HAL!
    if I start hal it seems to start but later does not have a process so I think it stops again:
    12:08:17.822 [I] hald.c:394: hal 0.4.7
    12:08:17.823 [I] hald.c:396: Will daemonize
    12:08:17.823 [I] hald.c:406: Becoming a daemon
    ps ax|grep hal shows me nothing
    finally dbus:
    dbus gets started at boottime and has this lines when I ps for it:
    3746 tty1     S      0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session
    3747 ?        Ss     0:00 dbus-daemon-1 --fork --print-pid 8 --print-address 6
    so somehow some kind of dbus is running but hal can't connect to it so ivman wont start.
    I could not find any information about this problem.
    any help appreciated
    thanks
    wabi

    Hi
    I got some other problem hal related
    It was running since weeks without problems..automounting usb, cd etc.
    since the latest update, where hal and dbus was updated some very very strange things happen.
    After fresh start I had normally 77 processes running, mounting was ok etc.
    Now...after a restart I got 150 processes running increasing every few seconds.
    After a minute or so I got 280. 200 are hal and hotlug.hal related.
    and the Hard Drive and CPU is always showing actibities. never happened before.
    ...and  automounting isn´t working anymore too.
    What is this? 
    tia
    mic

  • [Solved] Desktop Zoom in KDE using dbus-send

    Hi,
    I am trying to use dbus to use the KDE zoom-in/out feature. I need this to assign mouse-based shortcuts as described here
    Using dbus-monitor, I got the following output when pressing the default shortcut for KDE-zoom:
    signal sender=:1.5 -> dest=(null destination) serial=1152 path=/component/kwin; interface=org.kde.kglobalaccel.Component; member=globalShortcutPressed
    string "kwin"
    string "view_zoom_in"
    int64 30802948
    method call sender=:1.5 -> dest=org.kde.knotify serial=1153 path=/Notify; interface=org.kde.KNotify; member=event
    string "globalshortcutpressed"
    string "kglobalaccel"
    array [
    variant string "application"
    variant string "KWin"
    string ""
    string "The global shortcut for Zoom &In was issued."
    array [
    array [
    int32 -1
    int64 0
    method return sender=:1.11 -> dest=:1.5 reply_serial=1153
    int32 0
    But I can't figure out how to use this info to actually send the zoom-in message with dbus-send. Can anyone help me with this?
    Last edited by codemon (2010-10-13 05:45:58)

    So I resume:
    yaourt -S xbindkeys
    xbindkeys --defaults > $HOME/.xbindkeysrc
    Then edit with your favorite text editor the file ~/.xbindkeysrc and add before the end those lines:
    # Zoom in
    "qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "view_zoom_in""
    m:0x50 + c:133 + b:4
    # Zoom out
    "qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "view_zoom_out""
    m:0x50 + c:133 + b:5
    Restart xbindkeys to apply the new shortcut:
    killall xbindkeys && xbindkeys
    Now you can fully enjoy the zoom effect and add xbindkeys into Autostart kde systemsettings tab.
    Enjoy^^.
    P.S: the shortcut I used in those line is meta key + scroll up for zoom in and meta key + scroll down for the zoom out.
    Last edited by splashy (2011-08-09 22:39:50)

  • Problem with hal[hal 0.5.2-3]

    i test ubuntu5.04[gnome] and when put a pendrive add automatic entry in mtab but in arch not[kde], so, try an lshal in ubuntu and not problem, but in arch are problems:
    lshal version 0.5.2
    *** [DIE] lshal.c:dump_devices():72 : Couldn't obtain list of devices
    and /etc/rc.d/hal start dont work(dont start hal), dbus[dbus 0.33-1] work ok, what can do or what is wrong???
    other thing, before arch use mandrake, and mandrake[kde] use supermount, so connect a external device[cdrom, dvd, pendrive] and got a icon on the desktop, can "kde"[not mandrake] do the same, like gnome, connect a external device and got and icon on the desktop???.or is necesary go to the fuc*i** icon of "system"[is like my pc in win...] ???. And use hwd, not hotplug.

    Dbus version is now 0.50-4 , upgrade.
    Do you have dbus and hal in your daemons line in rc.conf ?
    make sure dbus is listed BEFORE hal.

  • Hal 0.5.14-1 does not mount some usb drives correctly

    Hi folks
    When I try to mount a USB hard disk (with KDE 4.3.4), it tries to mount it at some wrong path used by another USB hard disk.  Or I have to mount it as root, or even as root it still doesn't work right... pfff I'm really disappointed by this showstopper...
    For example, I own a LaCie hard disk (/media/disk), a Iomega one (/media/IOMEGA) and a LaCie mobile disk (no power cable, /media/MobileDisk):
    - When I try to mount the Iomega one, it works fine, as normal user;
    - When I try to mount the LaCie one, it fails, independently of the fact that the Iomega drive is mounted or not, with the following message:
    Unable to run the command specified. The file or folder file:///media/IOMEGA does not exist.
    Looks like it wants to mount the LaCie one where the Iomega one is/should be mounted...
    - When I connect the LaCie hard disk, the directory /media/MobileDisk
    is created, instead of /media/disk
    , and when as root I try to manually mount the hard disk, it says:
    ntfs-3g: Failed to access volume '/dev/sdb1': No such file or directory
    Maybe there's some erroneous entry in some cache or data used by hal/dbus?  I don't know how they work and how to activate their logging systems and then where to find the logs...
    Maybe there's a way to simply completely wipe out hal/dbus/consolekit/policykit/... configuration data without having to reinstall the complete system?
    I have:
      hal 0.5.14-1
      dbus-core 1.2.16-1
      dbus 1.2.16-1
      dbus-glib 0.82-2
      dbus-python 0.83.0-2
    I start KDM using /etc/inittab, as described in the wiki.  I've put "/usr/sbin/console-kit-daemon" in /etc/rc.local and have modified /etc/inittab so that it starts kdm with: "x:5:respawn:/usr/bin/ck-launch-session /usr/bin/kdm -nodaemon"! 
    Is this the right setup, equivalent to the one with xinitrc?
    The same setup works fine on my laptop.
    I've got the impression that hal/dbus/... confounds my drives and does not know where to mount them...
    Downgrading to hal 0.5.13-idontrememberwhatcifer does not solve the issue, the system is kept up to date with "pacman -Syu" about once a day and it still doesn't work...
    Some clue?
    Thanks and happy new year

    OK something happened that I can't explain...
    I just controlled about all files related to hal/dbus/mounting etc and, I don't know why, all devices I've mounted had a corresponding line in fstab... really weird.
    I juste deleted those lines, and, well, mounting seems to work again
    So this issue is solved
    And finally Arch Linux is again my favorite distro
    Last edited by yannick555 (2010-01-03 14:37:55)

  • Can't mount data CD in KDE

    Today, trying to mount a CD in KDE, this error message have appeared:
    A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration files (rejected message had interface "org.freedesktop.Hal.Device.Volume" member "Mount" error name "(unset)" destination "org.freedesktop.Hal")
    I'm annoyed. I don't know what want to say that error.
    I have change never any configuration of hal, dbus... and, a weeks ago, i hadn't problems to mount CD in KDE. The normal window saying "what do you want to do", now is missed and only appears that error.
    As root, the CD can be mounted, and, music CD are ok as normal user.
    I don't know what upgrade "crashed" the system, as there is a lot of time i don't mount a data CD.
    I only use current, extra and community for ktorrent and kmldonkey.
    Any idea or help?
    Thanks!

    Well, the solution found:
    - add user to group 'storage' (and, may be, to 'optical' - in my case user already belong to this group) and REBOOT (logout was not enough in my case) the system
    - remove or comment entries /dev/cdrom, /dev/dvd from /etc/fstab
    Thanks to all
    But the next trouble found: if CD/Flash/DVD contain non-English characters (for example, Cyriilic) in filenames, they appear as '?????'. Early, I could fix this using 'iocharset=' and 'codepage=' parameters in /etc/fstab. Now I don't use fstab for mount options. There I can set new mount options?
    I send the bug report to KDE Team
    http://bugs.kde.org/show_bug.cgi?id=133444
    And the same problem was posted later
    http://bugs.kde.org/show_bug.cgi?id=133456

  • Kde-volume-manager .. cause manual click on eject on cdrom..

    ...doesnt work anymore...
    Is somewhere kde-volume-manager?? Graphical UI for KDE users ...??
    Because Gnome-volume-manager has the worst support for automount...
    This is stupid  that I want to eject my cdrom and I can't manual click on eject button on cdrom.. beacuse it's locked... <confused>
    Even subfs [submount] or supermount has this implementation...
    Any help??
    post scriptum.... Rest HAL&DBUS work fine..

    ...doesnt work anymore...
    Is somewhere kde-volume-manager?? Graphical UI for KDE users ...??
    Because Gnome-volume-manager has the worst support for automount...
    This is stupid  that I want to eject my cdrom and I can't manual click on eject button on cdrom.. beacuse it's locked... <confused>
    Even subfs [submount] or supermount has this implementation...
    Any help??
    post scriptum.... Rest HAL&DBUS work fine..

  • [SOLVED] Xorg and mouse with HAL doesn't work

    Hi
    I recently reinstalled Arch Linux and I have some problems... My mouse isn't working - at all! I'm using an HP Compaq 6510b.
    I've installed the following packages:
    * xf86-input-evdev
    * hal
    * dbus
    I don't have an xorg.conf file at all, as I heard that hal should solve everything automagically for me. This seems to not be the case?
    Any ideas? Thanks
    Last edited by skorpan (2009-06-05 18:41:51)

    Yeah, I'm doing that!
    BTW, Xorg.0.log is here: http://dpaste.com/51933
    Last edited by skorpan (2009-06-05 17:58:31)

  • Can't get HAL to work properly

    Hello everybody! This is the first distro I've ever tried which gives you substantial control over the installation process, and I like that a lot, but there are some things I probably didn't manage to do well. One of those is getting HAL to work as I tell it to via policies. I need for it to recognize my italian keyboard layout and automount ntfs partitions. I followed the instructions on the wiki, but I probably messed up, so can somebody briefly sum up the steps I need to make HAL do what I need?
    Last edited by eFFeeMMe (2009-04-10 12:12:35)

    Just correcting this so that any beginners who stumble on this wont get confused/misguided
    Neo_The_User wrote:
    i love being in-depth explaining everything so i'm sorry if i couldn't make it as breif as you wanted it to be
    as root or sudo:
    pacman -Syy
    pacman -Syu
    pacman -Sy hal dbus fam
    nano /etc/rc.conf
    In DAEMONS it should look like this (sort of:)
    DAEMONS=(!syslog-ng !netfs !crond network fam hal dbus alsa gdm)
    DAEMONS=(syslog-ng  crond network fam dbus hal  alsa )
    but basically it depends on what services you want to run.
    starting gdm in inittab is better.
    Now you can turn hal on 2 different ways. Reboot or just turn on. To turn on without reboot:
    /etc/hal restart
    /etc/rc.d/hal start
    (You should probably turn on dbus too)
    /etc/dbus restart
    (And fam)
    /etc/fam restart
    everything is  /etc/rc.d/daemonname start
    Now after you do all that do this as root (log in AS root because it will be easier for me to tell you what exactly you need to do)
    Xorg -configure
    Now I forget off the top of my head what the exact location is so if it says No such file or directory in the first command, do the second one:
    cp -L -vi /root/xorg.conf.new /etc/X11/xorg.conf
    No luck? Try this:
    cp -L -vi /home/root/xorg.conf.new /etc/X11/xorg.conf
    There is no /home/root
    Now you can install gdm and X and all that:
    pacman -Sy gdm
    Replace gnome with lxde or xfce4 or whatever
    pacman -Sy gnome
    Now fonts:
    pacman -Sy ttf-bitstream-vera ttf-dejavu ttf-ms-fonts ttf-liberation
    Turn on ntfs in DAEMONS though as I have mine off. Take the exclamation point out.
    Hope that works!
    I hope you meant netfs or nfsd here. ntfs-3g doesn't need a daemon AFAIK

Maybe you are looking for