1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Automount in Gnome

Discussion in 'GNOME' started by Icher, Sep 12, 2010.

  1. Icher

    Icher New Member

    Messages:
    14
    Likes Received:
    0
    Hello,

    I did a fresh install of FreeBSD 8.1 with Gnome and KDE. In Gnome when I connect an USB drive I get the following 2 Errors:
    Code:
    [B]Cannot mount volume[/B]
    Unable to mount the volume 'RALLY2'.
    Details: mount_msdosfs: dev/msdosfs/RALLY2: Device busy
    
    Code:
    [B]Cannot mount volume[/B]
    Error org.freedesktop.Hal.Device.UnknownError.
    Details: An unknown error occured
    
    Well after the 2 errors the device is mounted. But for every new mount the is a new directory under /media

    Code:
    $ ls /media | grep RALLY
    RALLY2
    RALLY2_
    RALLY2__
    $ 
    
    Then I try to unmount the device and get the following error:

    Code:
    [B]Cannot unmount volume[/B]
    The volume 'RALLY2' was probably
    mounted manually on the command line
    Details Device to unmount is not in /media/.hal-mtab
    so it is not mounted by HAL
    So who did mount the device?

    Mounting other HDD devices from my computer works great automatically.

    My PolicyKit.conf taken from PC-BSD:

    Code:
    <config version="0.1"> 
            <define_admin_auth group="operator"/> 
            <match action="org.freedesktop.hal.storage.mount-removable"> 
                    <return result="yes"/> 
            </match> 
            <match action="org.freedesktop.hal.storage.mount-fixed"> 
                    <return result="yes"/> 
            </match> 
            <match action="org.freedesktop.hal.storage.eject"> 
                    <return result="yes"/> 
            </match> 
    </config>
    Has anyone a idea what is going wrong here?
     
  2. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,375
    Likes Received:
    3
    Make sure everything is unmounted and remove any stray directories from /media/.
     
  3. Yampress

    Yampress New Member

    Messages:
    36
    Likes Received:
    0
  4. Icher

    Icher New Member

    Messages:
    14
    Likes Received:
    0
    my /etc/rc.conf:

    Code:
    dbus_enable="YES"
    hald_enable="YES"
    polkitd_enable="YES"
    gnome_enable="YES"
    
    the /media directory is empty, without the hdd that are mounted automatically

    Code:
    # ls /media
    .hal-mtab	disk		disk-2		disk-4
    .hal-mtab-lock	disk-1		disk-3
    #
    
    But I figured out, that usb-sticks with ntfs file system can be mounted perfectly by hal. Only when hal call the mount_msdosfs the error occurs.
     
  5. EdGe

    EdGe New Member

    Messages:
    31
    Likes Received:
    0
    Greetings.

    It could be a badly formatted usb stick. Put a new file system on it and try again.
     
  6. Yampress

    Yampress New Member

    Messages:
    36
    Likes Received:
    0
    No,no no no

    try only

    Code:
    gnome_enable="YES"
    


    or correct is

    Code:
    dbus_enable="YES"
    hald_enable="YES"
    polkitd_enable="YES"
    gdm_enable="YES"
    
    Never those deamons with gnome_enable="YES"
     
  7. Icher

    Icher New Member

    Messages:
    14
    Likes Received:
    0

    I have change this

    Then I try this

    newfs_msdosfs /dev/da0s1

    Ok now the USB Stick is mounted automatically, but I can't unmout it. When I try it in nautilus or use this:

    umount /dev/da0s1

    the stick is direly mounted again by hal.
     
  8. Yampress

    Yampress New Member

    Messages:
    36
    Likes Received:
    0
    I can umount pendrive on gnome (right button of mouse and umount).
    When system writes something on pendrive you can't umount his. You have to wait, when done it.
     
  9. Icher

    Icher New Member

    Messages:
    14
    Likes Received:
    0
    I know how to unmount a pendrive. The problem is after it is removed. The icon has disappeared from the desktop. It is directly mounted again by hal. So I can't remove the pendrive because it is mounted again.
     
  10. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,180
    Likes Received:
    10
    You may have to disable automounting somewhere in the desktop environment. No idea where GNOME has that; in xfce4, it's Settings/File Manager/Advanced.