135b4 Automount in Gnome - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Desktop Usage > Window Managers > GNOME

GNOME The GNOME desktop environment

Reply
 
Thread Tools Display Modes
  #1  
Old September 12th, 2010, 14:31
Icher Icher is offline
Junior Member
 
Join Date: Dec 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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:
Cannot mount volume
Unable to mount the volume 'RALLY2'.
Details: mount_msdosfs: dev/msdosfs/RALLY2: Device busy
Code:
Cannot mount volume
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:
Cannot unmount volume
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?
Reply With Quote
  #2  
Old September 14th, 2010, 07:53
SirDice's Avatar
SirDice SirDice is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,721
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Make sure everything is unmounted and remove any stray directories from /media/.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old September 14th, 2010, 09:43
Yampress's Avatar
Yampress Yampress is offline
Junior Member
 
Join Date: Aug 2010
Location: PL
Posts: 36
Thanks: 0
Thanked 3 Times in 2 Posts
Default

hald and dbus are in /etc/rc.conf ?
Code:
dbus_enable="YES"
hald_enable="YES"
http://www.freebsd.org/gnome/docs/halfaq.html

and the directory /media is empty ?
Reply With Quote
  #4  
Old September 15th, 2010, 17:49
Icher Icher is offline
Junior Member
 
Join Date: Dec 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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.
Reply With Quote
  #5  
Old September 15th, 2010, 22:44
EdGe EdGe is offline
Junior Member
 
Join Date: Aug 2010
Posts: 31
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Greetings.

It could be a badly formatted usb stick. Put a new file system on it and try again.
Reply With Quote
  #6  
Old September 18th, 2010, 17:46
Yampress's Avatar
Yampress Yampress is offline
Junior Member
 
Join Date: Aug 2010
Location: PL
Posts: 36
Thanks: 0
Thanked 3 Times in 2 Posts
Default

Quote:
Code:
dbus_enable="YES"
hald_enable="YES"
polkitd_enable="YES"
gnome_enable="YES"
No,no no no

try only

Code:
gnome_enable="YES"

Quote:
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"

Last edited by DutchDaemon; September 18th, 2010 at 19:23.
Reply With Quote
  #7  
Old September 19th, 2010, 00:36
Icher Icher is offline
Junior Member
 
Join Date: Dec 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Yampress View Post
try only

Code:
gnome_enable="YES"

I have change this

Quote:
Originally Posted by EdGe View Post
Greetings.

It could be a badly formatted usb stick. Put a new file system on it and try again.
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.

Last edited by DutchDaemon; September 19th, 2010 at 03:31.
Reply With Quote
  #8  
Old September 19th, 2010, 09:24
Yampress's Avatar
Yampress Yampress is offline
Junior Member
 
Join Date: Aug 2010
Location: PL
Posts: 36
Thanks: 0
Thanked 3 Times in 2 Posts
Default

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.
Reply With Quote
  #9  
Old September 19th, 2010, 12:46
Icher Icher is offline
Junior Member
 
Join Date: Dec 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Yampress View Post
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.
Reply With Quote
  #10  
Old September 19th, 2010, 17:18
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,715
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] write on nfs server and automount daff Web & Network Services 6 July 8th, 2012 02:03
Automount pen drive nu2fbsd Peripheral Hardware 4 March 27th, 2010 00:42
hald(1) and nautilus(1) does not automount media vermaden Installation and Maintenance of FreeBSD Ports or Packages 15 November 29th, 2009 22:54
8.0-RC1 USB Automount Issue (Gnome) jcarver GNOME 7 October 26th, 2009 22:20
How to NOT automount in Gnome zeiz GNOME 5 August 20th, 2009 00:57


All times are GMT +1. The time now is 11:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0