Mounting drives on a udev+hal+gnome-volume-manager setup

Hi,
I set up Arch Linux on a friends computer. The setup seems to work, for example gnome-cd is started when one inserts an Audio CD. However, everything that involves mounting does not work. The error message given by gnome-volume-manager is
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
or too many mounted file systems
* /bin/mount has sid set, 755, owner and file group are root
* udev is set up correctly, so /dev/hdc for example does have write rights for the group disk, and the user is member of that group.
What could be wrong?

The problem was mainly about mounting, and not about /dev/sda or /dev/hdc. We found the solution:
The "mount" binary in Arch's current is confused by the entry "managed" that hal puts in /etc/fstab. You can correct this by
a) Adding a policy file in /usr/share/hal/fdi/95userpolicy named, for example, local.fdi that hinders hal from doing so:
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<!-- Default policies merged onto computer root object -->
<device>
<match key="info.udi" string="/org/freedesktop/Hal/devices/computer">
<merge key="storage.policy.default.managed_keyword.primary" type="string">user</merge>
</match>
</device>
</deviceinfo>
Then restart hal by typing
/etc/rc.d/hal restart
as root
b) Patching "mount" as described in Arch Linux bug #1930.[/code]

Similar Messages

  • Dbus/hal/gnome-volume-manager problem

    I've got hal and dbus running but it doesnt even seem that gnome-volume-manager is started. I added it to my gnome session but that didnt seem to do the trick. I'm trying to be able to just plug in my usb key and ipod and have them automount. It works if I restart hal or run gnome-volume-manager from the command line but then work work again unless I restart that stuff again. Here is a cut from my fstab:
    /dev/sda1 /mnt/usb auto user,noauto 0 0
    /dev/sda2 /mnt/ipod auto user,noauto 0 0

    Hi lhoerste,
    I had this problem with automount as well. The way I fixed it was adding
    dbus hal to daemons line in /etc/rc.conf. You probably did this already.
    Next, when you are in the gnome desktop, stick in a cd. Nothing happens right?
    Now go to preferences=>removable drives and media (I think this is what it is called. I'm not sitting infront of my computer at the moment). Then make sure that the checkboxes pertaining to "mount automatically" are checked.
    Close window.
    Now your cd should automount and appear on the desktop. Eject the cd by right clicking on the icon and choosing eject.
    Now, restart and ***make sure you save settings*** before leaving.
    Get back into the gnome desktop and plug your cd back in. It should automount now.
    This is how I got automount to work for me.

  • 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.

  • [SOLVED]gnome-volume-manager / hal 0.5.10 - can't deactivate automount

    http://wiki.archlinux.org/index.php/HAL
    I've created /etc/hal/policy/preferences.fdi
    <?xml version="1.0" encoding="UTF-8"?>
    <deviceinfo version="0.2">
    <device>
    <match key="storage.hotpluggable" bool="false">
    <match key="storage.removable" bool="false">
    <merge key="storage.automount_enabled_hint" type="bool">false</merge>
    </match>
    </match>
    </device>
    </deviceinfo>
    The article say "Policies" may be deprecated in hal 0.5.10. I doubt that, but i dont know what is deprecated though.
    I did check the documentation out, and everything i did still seems to be valid.
    http://people.freedesktop.org/~david/ha … ies-volume
    Does gnome-volume-manager honor this setting in gnome 2.20?
    Last edited by pelle.k (2008-02-04 20:12:51)

    It would seem i solved it myself.
    First of all, gnome-volume-manager need to be recompiled with a patch i found (ubuntu gutsy); http://patches.ubuntu.com/by-release/ex … hint.patch
    Why this isn't included by default in gnome-volume-manager is beyond me!? You bad, bad, gnome devs!
    Replace the PKGBUILD when building from ABS.
    # Contributor: Link Dupont <[email protected]>
    pkgname=gnome-volume-manager
    pkgver=2.17.0
    pkgrel=3
    pkgdesc="GNOME daemon to auto-mount and manage media devices"
    arch=(i686 x86_64)
    license=('GPL')
    url=http://www.gnome.org/
    depends=('libgnomeui>=2.20.0' 'libnotify>=0.4.4' 'gnome-mount>=0.6')
    makedepends=('nautilus>=2.20.0' 'perlxml' 'pkgconfig')
    install=gnome-volume-manager.install
    groups=('gnome-extra')
    source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/2.17/${pkgname}-${pkgver}.tar.bz2
    gvm-mount-async.patch
    gvm-check-local.patch
    http://patches.ubuntu.com/by-release/extracted/ubuntu/g/gnome-volume-manager/2.17.0-2ubuntu2/02_honour_automount_enabled_hint.patch)
    md5sums=('104cec26e721e0bba69debd392367195'
    '534b8b9633148bd975b2b9b518c41fb4'
    'cb45810b2adb95d39e1272470f10a21a'
    '7288a9dc57df321d6a379c9b6a7caaff')
    build() {
    cd ${startdir}/src/${pkgname}-${pkgver}
    patch -Np0 -i ${startdir}/src/gvm-mount-async.patch || return 1
    patch -Np0 -i ${startdir}/src/gvm-check-local.patch || return 1
    patch -Np1 -i ${startdir}/src/02_honour_automount_enabled_hint.patch || return 1
    ./configure --prefix=/usr --sysconfdir=/etc \
    --localstatedir=/var
    make || return 1
    make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=${startdir}/pkg install
    mkdir -p ${startdir}/pkg/usr/share/gconf/schemas
    gconf-merge-schema ${startdir}/pkg/usr/share/gconf/schemas/${pkgname}.schemas ${startdir}/pkg/etc/gconf/schemas/*.schemas
    rm -f ${startdir}/pkg/etc/gconf/schemas/*.schemas
    Also, this is my /etc/hal/fdi/policy/preferences.fdi
    <match key="storage.hotpluggable" bool="false">
    <match key="storage.removable" bool="false">
    <merge key="storage.automount_enabled_hint" type="bool">false</merge>
    </match>
    </match>
    If you compare that to my first version, you'll note that it is *not* enclosed in <deviceinfo> and <device> tags, simply because that wouldn't work. Don't ask me why. i'm by no means a HAL expert...
    Last edited by pelle.k (2008-02-04 20:12:00)

  • Suggestion for dbus, hal. new gnome-volume-manager-version.

    Heya,
    I just installed dbus, hall from cvs and gnome-volume-manager from tarball and have some suggestions:
    dbus:
    the default during configure seems to be to detect if you have the necessary things installed and based on that enable a component.
    To disbale qt-bindings add:
    --disable-qt
    to configure, else it will try to compile the qt-bindings and without a libGL.la it won't work ... (and this isn't in the Mesa package or wasn't anyway as far as I can tell).
    hal:
    could you add the option "--enable-fstab-sync" to configure in the new versions? It seems to be usefull . It can be it wasn't available earlier ...
    gnome-volume-manager:
    I just upgraded to 0.9.9 If anyone wants to have the binary just tell me where to upload.
    greetz,
    Michel

    Michel wrote:
    Heya,
    I just installed dbus, hall from cvs and gnome-volume-manager from tarball and have some suggestions:
    dbus:
    the default during configure seems to be to detect if you have the necessary things installed and based on that enable a component.
    To disbale qt-bindings add:
    --disable-qt
    to configure, else it will try to compile the qt-bindings and without a libGL.la it won't work ... (and this isn't in the Mesa package or wasn't anyway as far as I can tell).
    there are solutions on this forum to fix the libGL.la. this file will be included with future builds of xorg/xfree86. NVIDIA drivers should also provide this file. this file is only an issue for building.
    file a bug report feature report to add this build option to the package
    hal:
    could you add the option "--enable-fstab-sync" to configure in the new versions? It seems to be usefull . It can be it wasn't available earlier ...
    if this package is in one of the three official repos file a feature request.
    gnome-volume-manager:
    I just upgraded to 0.9.9 If anyone wants to have the binary just tell me where to upload.
    if a package has just fallen out of date up to about two week leave time for the maintainer to upgrade it .  you can flage the package out of date via the web page. this is way better than offering it to people or uploading it somewhere.
    the flag otu of date feature is always a better option to cluttering the list with update requests and the bug tracker is the best way to convey your wanted build changes. alot of the developers do not frequent this forum but all are member of the bug tracker notification system.

  • Gnome-volume-manager freezes xfce4 on logout

    Hi there,
    I configured gnome-volume-manager to automatically mount drives (esp. usbsticks and so on) and it is working quite smoothly.
    But one side effect is bothering me a little:
    As suggested in a gnome-volume-manager HowTo, the volume manager is loaded on startx in the following form
    <.xinitrc>
    exec startxfce4 & exec gnome-volume-manager
    </.xinitrc>
    as soon as I try to quit my Xfce session the session hangs and will not terminate properly, i.e. logfoff-screen appears but session is not ended.
    I waited for quite a while (about an hour  :shock: )...
    As I didn't change too much over the last few days, I quickly found out that the gnome-volume-manager is the culprit. As soon as the 'exec gnome-volume-manager' part is removed, Xfce will shut down normally.
    Has anyone else encountered this side effect? Is there a solution?
    Greez and Thx
    Bernhard

    JGC wrote:I wouldn't start gnome-volume-manager that way, I would configure xfce4 to add gnome-volume-manager to the session when it starts up. Putting it in your .xinitrc makes xfce4 unaware of gnome-volume-manager.
    Sounds logical.
    It was the way described in the HOwTo, though. That's why I started the volume-manager like this. I would have preferred a more general approach, starting the gnome-volume-manager someplace more general (and not separately for each user)
    I guess the correct place would be somewhere in ~/.config/xfce4??
    I would have thought maybe the xinitrc that resides there... (Maybe along with xftaskbar4...)
    Or is there a more suitable file??
    Greez
    bernhard

  • [SOLVED] gnome-volume-manager is lazy

    Until some update that I missed all was fine. I boot, my volumes are mounted, I can see them in ROX (my main file management program).
    I insert a CD/DVD/whatever, its mounted and its all in /media/.:D
    But now it just does nothing, until I start Nautilus, then everything gets mounted.
    I close Nautilus, and it doesnt mount anything again.
    gnome-volume-manager process is up and running after login before running nautilus and after closing it too.
    How can I make it behave nicely without the nuisance that Nautilus is?
    Oh and Im running Openbox as the window manager in Gnome, Nautilus desktop handling disabled.
    Last edited by Hohoho (2008-05-28 20:21:12)

    i had the same problem.
    i looked in the changelog and it appears that from now on the automount function is disabled upstream because that function is to be handled by the nautilus ( http://ftp.gnome.org/pub/GNOME/sources/ … .3.changes ). For me it is a problem because i use openbox and thunar, so you just have to recompile the package with the option: "--enable-automount" .
    info from:
    ~/Desktop/gnome-volume-manager-2.22.3  $  ./configure --help
    then start it ( after recompiling with abs, for example ), but look that the path changed, now in my autostart file for openbox i have:
    /usr/lib/gnome-volume-manager/gnome-volume-manager --sm-disable --daemon=yes &
    hope it helps you, because this annoyed me for a long time and this is the only easy way to mount my partitions easily
    Last edited by Diaz (2008-05-28 20:04:56)

  • Firewire and gnome-volume-manager

    I have a firewire scanner, when hotplugged, nothing happens in gnome. I have 'run when scanner is plugged' checked, but I get nothing.
    Does gnome-volume-manager work with firewire devices? or is it just my scanner? (Canon 2540 photo)

    I don't know about scanners, but my firefire external HD is recognised perfectly by gnome-volume-manager. So it does listen for firewire devices. Maybe you'll need to add something to udev to make gnome-volume-manager know it's a scanner?
    I have a scsi scanner, so I won't try hotplugging it

  • Gnome-volume-manager doesn't work, nor another automounter

    Hi there,
    I have installed gnome-volume-manager but it apparentely does not work. I've followed the instructions from the FAQ - Arch Linux, and I have tried also recompiling it with --enable-automounting. I have tried also having Nautilus opened at the same time but it didn't work. My WM is IceWM.
    //ivman works for the cdrom but not for usb devices. And I don't like AutoFS.
    Last edited by jmcejuela (2009-04-10 15:06:34)

    I had this problem and it was related to ConsoleKit not being initialized properly. I was using SLIM as login manager and had to add ck-launch-session to my .xinitrc when starting the gnome session.
    Last edited by iBertus (2009-04-10 17:21:33)

  • Gnome-volume-manager and plugdev

    I'm trying to work out some kinks in gnome-volume-manager0--namely, that I cannot unmount disks as a regular user.  Everything I have found says that a user must be a member of the plugdev group for such things to work, so I looked around and found that I should be able to add myself to the plugdev groups like so:
    usermod -G plugdev isez2001
    But upon giving this command, I receive an error saying that the plugdev group is unknown.
    Do I have to create the plugdev group myself?  If so, why?  It really seems like something that should be made to just work.

    Alright, I'm a member of the storage group already.
    Upon further investigation, I find that my USB flash drive is autmounted in /media under the group "root," and my DVD drive automounts under the group "-1".
    I am unable to unmount either of these as a normal user.
    Is there something I should do that will make disks mount under the storage group?

  • Udev and gnome-power-manager

    Hi,
    Recently I upgrade the udev from 141-5-i686 to 145-1-i686 in my MSI wind. Then the following problem begins:
    When the system boots this characters can be seen in the screen just before udev is finished: ^@^@
    I can add more characters during the whole boot process if I press Fn+F5 (the brightness hotkey).
    When gnome is running, in few minutes the screen change the brightness very fast, like blinking. This problem only happens if the gnome-power-manager is enabled.
    Downgrading udev fix the problem.
    Does anyone know if this is something related with this particular version of udev, or can I do something to fix it?
    I don't know if the following messages will help, because them can be seen with the current and with the old udev version. But they are the only ones that I think are related with hotkeys amb modules loading. So I post them just in case.
    messages.log:
    Aug 29 14:57:02 peremsi load-modules.sh: 'acpi:LNXSYSTM:' is not a valid module or alias name
    Aug 29 14:57:02 peremsi load-modules.sh: 'dmi:bvnAmericanMegatrendsInc.:bvr4.6.3:bd06/26/2008:svnMICRO-STARINTERNATIONALCO.,LTD
    :pnU-100:pvrVer.001:rvnMICRO-STARINTERNATIONALCO.,LTD:rnU-100:rvrVer.001:cvnMICRO-STARINTERNATIONALCO.,LTD:ct3:cvrVer.001:' is
    not a valid module or alias name
    Aug 29 14:57:02 peremsi load-modules.sh: 'pci:v00008086d000027A6sv00001462sd00000110bc03sc80i00' is not a valid module or alias
    name
    Aug 29 14:57:02 peremsi load-modules.sh: 'platform:vesafb' is not a valid module or alias name
    Aug 29 14:57:02 peremsi load-modules.sh: 'pci:v00008086d00002448sv00000000sd00000000bc06sc04i01' is not a valid module or alias
    name
    Aug 29 14:57:02 peremsi load-modules.sh: 'acpi:PNP0C01:' is not a valid module or alias name
    Aug 29 14:57:02 peremsi load-modules.sh: 'acpi:PNP0800:' is not a valid module or alias name
    Aug 29 14:57:02 peremsi load-modules.sh: 'acpi:PNP0000:' is not a valid module or alias name
    Aug 29 14:57:02 peremsi load-modules.sh: 'acpi:PNP0C01:' is not a valid module or alias name
    Aug 29 14:57:03 peremsi load-modules.sh: 'acpi:PNP0C02:' is not a valid module or alias name
    Aug 29 14:57:03 peremsi load-modules.sh: 'acpi:PNP0103:' is not a valid module or alias name
    Aug 29 14:57:03 peremsi load-modules.sh: 'acpi:PNP0C01:' is not a valid module or alias name
    Aug 29 14:57:03 peremsi load-modules.sh: 'acpi:PNP0100:' is not a valid module or alias name
    Aug 29 14:57:03 peremsi load-modules.sh: 'acpi:PNP0C04:' is not a valid module or alias name
    Aug 29 14:57:03 peremsi load-modules.sh: 'acpi:PNP0200:' is not a valid module or alias name
    Aug 29 14:57:03 peremsi load-modules.sh: 'acpi:PNP0303:PNP030B:' is not a valid module or alias name
    Aug 29 14:57:03 peremsi load-modules.sh: 'acpi:PNP0C02:' is not a valid module or alias name
    Aug 29 14:57:03 peremsi load-modules.sh: 'acpi:PNP0F03:PNP0F13:' is not a valid module or alias name
    Aug 29 14:57:03 peremsi load-modules.sh: 'usb:v0C45p62C0d0100dcEFdsc02dp01ic0Eisc02ip00' is not a valid module or alias name
    Aug 29 14:57:08 peremsi ntfs-3g[2611]: Version 2009.4.4 integrated FUSE 27
    (so many times) This message is because the kernel do not map some hotkeys. Gnome do it.
    atkbd.c: Unknown key released (translated set 2, code 0xf7 on isa0060/serio0).
    atkbd.c: Use 'setkeycodes e077 <keycode>' to make it known.
    atkbd.c: Unknown key pressed (translated set 2, code 0xf8 on isa0060/serio0).
    atkbd.c: Use 'setkeycodes e078 <keycode>' to make it known.

    recently, I updated system, and now I have same problem like you had. I was not sure, what could cause this brightness fast changing. I thought about hal, dbus, udev. Never tried to downgrade udev. Now, I have udev 146. I am not sure what version I had before system upgrading.
    Now, I have kernel 2.6.31, and I am not sure if udev 141 will work with this kernel...
    I have MSI WIND, also...
    Last edited by kunalagon (2010-01-08 11:15:54)

  • Hal gnome-power-manager hibernate scripts

    Hi All,
    I'm having issues hibernating to disk using gnome-power-manager. My user is in the "power" group and I can suspend from a terminal using "sudo hibernate". However, when I attempt to hibernate with gnome-power-manager, i recive an error "Hal failed to hibernate - please see FAQ". When I run g-p-m with no-daemon, it gives an "unspecified error: failed to hibernate". I have the necessary hibernate scripts in /usr/share/hal/scripts (is this the default dir?) and the hal-system-power-hibernate looks as follows:
    #!/bin/bash
    POWERSAVED_SUSPEND2DISK="dbus-send --system --dest=com.novell.powersave \
    --print-reply /com/novell/powersave \
    com.novell.powersave.action.SuspendToDisk"
    unsupported() {
    echo org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported >&2
    echo No hibernate script found >&2
    exit 1
    if [ -x "/usr/sbin/hibernate" ] ; then
    echo "wtf"
    hibernate
    RET=$?
    else
    unsupported
    fi
    #Refresh devices as a resume can do funny things
    for type in button battery ac_adapter
    do
    devices=`hal-find-by-capability --capability $type`
    for device in $devices
    do
    dbus-send --system --print-reply --dest=org.freedesktop.Hal \
    $device org.freedesktop.Hal.Device.Rescan
    done
    done
    exit $RET
    Please let me know what I'm missing or what necessary config files need to be tweaked.

    Does suspend to RAM work with gnome-power-manager? On my system I installed powersave from unstable, which is the daemon used by SuSE to do suspend to RAM and suspend to disk.

  • Gnome-volume-manager can't automount removable media any more

    Strange,  I don't know why, it worked perfectly, but now it lost functionability. Anyone with any suggestion? Thanks in advance.

    Strange,  I don't know why, it worked perfectly, but now it lost functionability. Anyone with any suggestion? Thanks in advance.

  • 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.

  • How to remove a mounted drive at startup in a mobile account, using netinfo

    How does one remove an mounted drive at startup in a mobile account, using netinfo?
    One of the user automatically mounts a network drive on her new intel Macbook in her portable account. Trouble is that the network drive is only available on the intranet. So when she is on the road, it take the Macbook very long 3-4 minutes before it let's her log in.
    Simply I thought to remove the drive on her macbook through the system preferences -> account -> login items. However the "login Item" GUI is very slow to respond and if it respond it does not let me remove the network drive. I tried this both on the intranet and off the network.
    I tried to remove the mounted drive at start up through the workgroup manager, but it does not show up there.
    So I thought that I try to use netinfo on the local machine. But I can't find where mounting info is stored in a mobile account. I thought it would be in the local @ localhost or should I connect to an other DB?

    The login items are not stored in Netinfo, they are stored in loginwindow.plist in the users Library/Preferences. You can either remove the entries for the server or simply trash that file and let a default one get recreated.

Maybe you are looking for