Automount in Gnome

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?
 
Make sure everything is unmounted and remove any stray directories from /media/.
 
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.
 
Code:
dbus_enable="YES"
hald_enable="YES"
polkitd_enable="YES"
gnome_enable="YES"
No,no no no

try only

Code:
gnome_enable="YES"


This will enable services such as GDM, HAL, D-BUS, and Avahi on system startup. If you do not want to run all of these services, you should forget the gnome_enable property, and manually enable the services you want.


or correct is

Code:
dbus_enable="YES"
hald_enable="YES"
polkitd_enable="YES"
gdm_enable="YES"

Never those deamons with gnome_enable="YES"
 
Yampress said:
try only

Code:
gnome_enable="YES"


I have change this

EdGe said:
Greetings.

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

Then I try this

[cmd=]newfs_msdosfs /dev/da0s1[/cmd]

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

[cmd=]umount /dev/da0s1[/cmd]

the stick is direly mounted again by hal.
 
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.
 
Yampress said:
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.

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.
 
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.
 
Back
Top