Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gnome-volume-manager/hal not mounting USB-disks
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
MalleRIM
Guru
Guru


Joined: 23 Jul 2007
Posts: 563
Location: China

PostPosted: Mon Jan 28, 2008 7:39 pm    Post subject: gnome-volume-manager/hal not mounting USB-disks Reply with quote

Hi,

My install is quite fresh (just a few months) and I can't remember automounting of USB-Sticks working. I'm using GNOME and afaik gnome-volume-manager and hal are mounting removable devices. Is this correct? On my laptop (x86), which has has gnome too this works fine
On my Desktop (amd64) the device isn't even shown in nautilus. I have to mount it using the command line. I compared some config files on my desktop and laptop but I can't find any difference. hald is set to be started in the "default" runlevel. gnome-volume-manager starts when logging into gnome (gnome-volume-manager --sm-disable. My user is in the "plugdev" group. I have USE="hal" in my make.conf

Malle
Back to top
View user's profile Send private message
piejagr
n00b
n00b


Joined: 28 Jan 2008
Posts: 35
Location: Oborniki, Poland

PostPosted: Mon Jan 28, 2008 10:51 pm    Post subject: Reply with quote

Did you add hal to the rc?? (rc-update add)
Back to top
View user's profile Send private message
machspeed2200
n00b
n00b


Joined: 01 Feb 2007
Posts: 44
Location: Adelaide, South Australia

PostPosted: Tue Jan 29, 2008 5:20 am    Post subject: Reply with quote

I think it may be more an /etc/fstab problem. Back when I used USB flash drives I had the same problem and solved it by adding a line into my fstab to tell it where to mount the flash drive to.
Code:

/dev/sda1               /mnt/flash      auto            users          0 0


Try that, adjusting the names as necessary, and let us know how you go. ;)

PS: piejagr, Malle did say it's started in the default runlevel, which is fine.
Back to top
View user's profile Send private message
segphault
n00b
n00b


Joined: 22 Sep 2007
Posts: 3

PostPosted: Tue Jan 29, 2008 5:40 am    Post subject: Reply with quote

If you have gParted installed, and it seg faulted, there could be a file somewhere that you need to delete.

A quick Google reveals you need to delete "/usr/share/hal/fdi/policy/gparted-disable-automount.fdi", but you should double check it isn't important.
Back to top
View user's profile Send private message
piejagr
n00b
n00b


Joined: 28 Jan 2008
Posts: 35
Location: Oborniki, Poland

PostPosted: Tue Jan 29, 2008 8:21 am    Post subject: Reply with quote

I have never added any line into fstab describing where to mount my usb storage devices like pendrives.

Just plug and kde mount it to media folder. I don't remember how it is working in gnome cause it was a long time ago when I had gnome installed. But it should work with just having hal and dbus.

Make sure that your user is added to storage group, if not then add him ( gpasswd -a <user> storage )
Back to top
View user's profile Send private message
absoluteflatness
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2007
Posts: 138
Location: Blacksburg or Falls Church, VA

PostPosted: Tue Jan 29, 2008 10:24 am    Post subject: Reply with quote

I was having a similar problem about a month or so ago, gnome didn't automount any removable devices.

As I remember, the problem boiled down to that gnome-volume-manager wasn't actually starting. I fixed the problem, but I've completely forgotten how. I think I did some futzing around in the gnome Sessions applet.

To see if it's a user config issue, you could log in as a new user to see if devices automount for them.

For the record, you definitely shouldn't need any fstab lines to use gnome or kde's automount features. Not having to manually add fstab lines is kind of the entire point of the automount scheme.
Back to top
View user's profile Send private message
machspeed2200
n00b
n00b


Joined: 01 Feb 2007
Posts: 44
Location: Adelaide, South Australia

PostPosted: Tue Jan 29, 2008 10:32 am    Post subject: Reply with quote

:oops: Hrmm, yeah, my bad. You guys were more on the right path. I've been doing some fluffing around myself in the Session manager since my post and Gnome runs through that.
The way I mentioned is only really useful if you don't use a wm, and I have done a few systems without a wm with this style of usb automount.

If you have a wm, like KDE or Gnome, your better off going through that.
Back to top
View user's profile Send private message
MixedSoul
Tux's lil' helper
Tux's lil' helper


Joined: 09 Feb 2006
Posts: 96

PostPosted: Wed Jan 30, 2008 2:24 pm    Post subject: Reply with quote

Renaming

Code:
/usr/share/hal/fdi/policy/gparted-disable-automount.fdi


did it for me :D

Thx segphault
Back to top
View user's profile Send private message
MalleRIM
Guru
Guru


Joined: 23 Jul 2007
Posts: 563
Location: China

PostPosted: Wed Jan 30, 2008 10:49 pm    Post subject: Reply with quote

segphault wrote:
If you have gParted installed, and it seg faulted, there could be a file somewhere that you need to delete.

A quick Google reveals you need to delete "/usr/share/hal/fdi/policy/gparted-disable-automount.fdi", but you should double check it isn't important.

yup, that solved it. Thanks a lot :)
can you edit the file to just prevent some drives (such as sda*, sdb*) from being mounted so you can still use gparted without these annoying automounts?
Back to top
View user's profile Send private message
drzap
n00b
n00b


Joined: 20 Sep 2004
Posts: 23

PostPosted: Fri Feb 01, 2008 11:17 am    Post subject: Reply with quote

segphault wrote:
If you have gParted installed, and it seg faulted, there could be a file somewhere that you need to delete.

A quick Google reveals you need to delete "/usr/share/hal/fdi/policy/gparted-disable-automount.fdi", but you should double check it isn't important.


Hey great, thanks! Who is responsible for this file.. breaking my system.. grr..

- gaute
Back to top
View user's profile Send private message
Rion
Guru
Guru


Joined: 12 Oct 2006
Posts: 383
Location: Minsk, Belarus

PostPosted: Fri Feb 01, 2008 11:27 am    Post subject: Reply with quote

gparted create this file on start and remove on exit.
but if you kill gparted, you must remove this file manually.
_________________
rion-overlay
Back to top
View user's profile Send private message
drzap
n00b
n00b


Joined: 20 Sep 2004
Posts: 23

PostPosted: Fri Feb 01, 2008 11:48 am    Post subject: Reply with quote

Rion wrote:
gparted create this file on start and remove on exit.
but if you kill gparted, you must remove this file manually.


Ah, that makes sense!

- gaute
Back to top
View user's profile Send private message
MalleRIM
Guru
Guru


Joined: 23 Jul 2007
Posts: 563
Location: China

PostPosted: Thu Feb 07, 2008 5:44 pm    Post subject: Reply with quote

gparted kills itself since some recent version after finishing an operation...
Back to top
View user's profile Send private message
clytle374
Apprentice
Apprentice


Joined: 01 Aug 2006
Posts: 221

PostPosted: Mon Mar 03, 2008 5:24 pm    Post subject: Reply with quote

Code:
/usr/share/hal/fdi/policy/gparted-disable-automount.fdi

Fixed mine, thanks
_________________
NooB since RedHat 6.1
Back to top
View user's profile Send private message
jomen
Guru
Guru


Joined: 04 Jan 2006
Posts: 536
Location: Leipzig, Germany

PostPosted: Tue Mar 04, 2008 2:39 pm    Post subject: Reply with quote

Thank you - fixed the thing for me too.

A few weeks ago I used gparted to change the sizes on an HD which was on USB.
It did the task o.k. but still did not exit cleanly after doing so.
I had never thougt that this might lead to this kind of weird problem afterwards.
_________________
Cheers
Back to top
View user's profile Send private message
Mythal
n00b
n00b


Joined: 30 Jul 2007
Posts: 26

PostPosted: Thu Mar 06, 2008 9:57 am    Post subject: Reply with quote

haha, this fix my gentoo, thanks alot!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum