View previous topic :: View next topic |
Author |
Message |
MalleRIM Guru
Joined: 23 Jul 2007 Posts: 563 Location: China
|
Posted: Mon Jan 28, 2008 7:39 pm Post subject: gnome-volume-manager/hal not mounting USB-disks |
|
|
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 |
|
|
piejagr n00b
Joined: 28 Jan 2008 Posts: 35 Location: Oborniki, Poland
|
Posted: Mon Jan 28, 2008 10:51 pm Post subject: |
|
|
Did you add hal to the rc?? (rc-update add) |
|
Back to top |
|
|
machspeed2200 n00b
Joined: 01 Feb 2007 Posts: 44 Location: Adelaide, South Australia
|
Posted: Tue Jan 29, 2008 5:20 am Post subject: |
|
|
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 |
|
|
segphault n00b
Joined: 22 Sep 2007 Posts: 3
|
Posted: Tue Jan 29, 2008 5:40 am Post subject: |
|
|
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 |
|
|
piejagr n00b
Joined: 28 Jan 2008 Posts: 35 Location: Oborniki, Poland
|
Posted: Tue Jan 29, 2008 8:21 am Post subject: |
|
|
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 |
|
|
absoluteflatness Tux's lil' helper
Joined: 21 Jan 2007 Posts: 138 Location: Blacksburg or Falls Church, VA
|
Posted: Tue Jan 29, 2008 10:24 am Post subject: |
|
|
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 |
|
|
machspeed2200 n00b
Joined: 01 Feb 2007 Posts: 44 Location: Adelaide, South Australia
|
Posted: Tue Jan 29, 2008 10:32 am Post subject: |
|
|
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 |
|
|
MixedSoul Tux's lil' helper
Joined: 09 Feb 2006 Posts: 96
|
Posted: Wed Jan 30, 2008 2:24 pm Post subject: |
|
|
Renaming
Code: | /usr/share/hal/fdi/policy/gparted-disable-automount.fdi |
did it for me
Thx segphault |
|
Back to top |
|
|
MalleRIM Guru
Joined: 23 Jul 2007 Posts: 563 Location: China
|
Posted: Wed Jan 30, 2008 10:49 pm Post subject: |
|
|
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 |
|
|
drzap n00b
Joined: 20 Sep 2004 Posts: 23
|
Posted: Fri Feb 01, 2008 11:17 am Post subject: |
|
|
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 |
|
|
Rion Guru
Joined: 12 Oct 2006 Posts: 383 Location: Minsk, Belarus
|
Posted: Fri Feb 01, 2008 11:27 am Post subject: |
|
|
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 |
|
|
drzap n00b
Joined: 20 Sep 2004 Posts: 23
|
Posted: Fri Feb 01, 2008 11:48 am Post subject: |
|
|
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 |
|
|
MalleRIM Guru
Joined: 23 Jul 2007 Posts: 563 Location: China
|
Posted: Thu Feb 07, 2008 5:44 pm Post subject: |
|
|
gparted kills itself since some recent version after finishing an operation... |
|
Back to top |
|
|
clytle374 Apprentice
Joined: 01 Aug 2006 Posts: 221
|
Posted: Mon Mar 03, 2008 5:24 pm Post subject: |
|
|
Code: | /usr/share/hal/fdi/policy/gparted-disable-automount.fdi |
Fixed mine, thanks _________________ NooB since RedHat 6.1 |
|
Back to top |
|
|
jomen Guru
Joined: 04 Jan 2006 Posts: 536 Location: Leipzig, Germany
|
Posted: Tue Mar 04, 2008 2:39 pm Post subject: |
|
|
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 |
|
|
Mythal n00b
Joined: 30 Jul 2007 Posts: 26
|
Posted: Thu Mar 06, 2008 9:57 am Post subject: |
|
|
haha, this fix my gentoo, thanks alot!!! |
|
Back to top |
|
|
|