View previous topic :: View next topic |
Author |
Message |
haarp Guru
Joined: 31 Oct 2007 Posts: 535
|
Posted: Thu Dec 18, 2008 6:34 pm Post subject: Sick and tired of Gnome automount issues |
|
|
Greetings.
This has been going on for a year or so now and started after a major Gnome update session. Others had similiar problems, but nothing really ever fixed it.
What is it? It's Gnome's automount that is COMPLETELY f*cked up.
Plugging in an USB stick:
- It gets mounted, and with any luck you will be greeted by a new Nautilus windows showing the contents. It will never be visible on the Desktop. With a bit of luck, it will appear under "Places" in a few hours or so.
- Nautilus offers you NO options to unmount it. Not in the file menu, not when right-clicking on the mounted-in folder. Try to unmount manually with umount /mnt/disk-1 ? Sucks for you: "/sbin/umount.hal: disk-1 is not recognized by hal"
[s]Well, use the proper umount then: /bin/umount /mnt/disk-1. That actually works and HAL notices it. GOD FORBID you unmount it from the root account! HAL does not notice that, .hal-mtab will get screwed up and it fails to remove the folder it created.[/s]
edit: looks like both are the same replaced umount commands. It takes a while until HAL "recognizes" your device. Probably the same while it takes to get it to show up under 'Places'
Having bind-mounts somewhere on your filesystem:
- Yeh, of course, you see THOSE on the Desktop. That's just what I needed! Useless clutter with no way to remove it! But under no circumstances will it show any actually useful icon for the USB stick.
Leaving the USB stick plugged in after unmountig it:
- After a few hours it will decide to mount it again. Just like that.
Internal drives show up under 'Places':
- Clicking on them will mount them and put them under .hal-mtab, but fails to register them with HAL
The are a number of threads about this already in the Gentoo Forums with a plethora of hints at how to fix this, none working. That's why I'm trying to address the whole problem in this thread here right now.
The following bugs should be fixed (by upstream):
- Integrate unmount command into Nautilus
- Fix the useless umount.hal command that takes over the old umount
- Make HAL notice when root unmounts something and update .hal-mtab accordingly and remove the old empty dir under /mnt or /media
- Show mounted devices on the Desktop
- Instantly show them under 'Places' aswell
- Do NOT show bind-mounts on the Desktop
- Don't mount previously-unmounted devices
- Fix HAL in the case of manually mounting the drive
Last edited by haarp on Fri Dec 19, 2008 5:24 pm; edited 5 times in total |
|
Back to top |
|
|
Clad in Sky l33t
Joined: 04 May 2007 Posts: 888 Location: Germany
|
Posted: Fri Dec 19, 2008 2:47 pm Post subject: |
|
|
That sounds _really_ annoyed.
I can understand that, I was, too.
But somehow I got it fixed.
Maybe you should consider changing to xfce. Looks gnomey but seems to work without issues. _________________ Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest |
|
Back to top |
|
|
jonnevers Veteran
Joined: 02 Jan 2003 Posts: 1594 Location: Gentoo64 land
|
Posted: Fri Dec 19, 2008 3:06 pm Post subject: |
|
|
i haven't really experienced much of what you're saying but since i reinstalled i haven't really done much with removable media. i should see whats up with various types of media on a fresh ~amd64 gnome (2.24).
the one thing that gets me and i think you're mention this as two issues, i want removable media (usb drivers, cd/dvds) to show up on the desktop but i don't want ssh mounts to have icons on the desktop.
to me, these are two different types of things but nautilus treats them the same and exposes just a single option to display on desktop or not display on desktop that acts on both. |
|
Back to top |
|
|
haarp Guru
Joined: 31 Oct 2007 Posts: 535
|
Posted: Mon Dec 22, 2008 9:32 pm Post subject: |
|
|
Yup, that's probably true. I am quite pissed at Gnome. And no, I'm not going to use xfce because of this
It works for you guys? What are your useflags on the gnome-packages? What hardware/gnome related daemons and services are you running? |
|
Back to top |
|
|
haarp Guru
Joined: 31 Oct 2007 Posts: 535
|
Posted: Sat Jan 03, 2009 8:26 pm Post subject: |
|
|
bump |
|
Back to top |
|
|
Abraxas l33t
Joined: 25 May 2003 Posts: 814
|
Posted: Sat Jan 03, 2009 10:01 pm Post subject: |
|
|
haarp wrote: | Yup, that's probably true. I am quite pissed at Gnome. And no, I'm not going to use xfce because of this
It works for you guys? What are your useflags on the gnome-packages? What hardware/gnome related daemons and services are you running? |
Automounting removable media is foobarred for me too. You're not the only one. |
|
Back to top |
|
|
Clad in Sky l33t
Joined: 04 May 2007 Posts: 888 Location: Germany
|
Posted: Sun Jan 04, 2009 9:38 am Post subject: |
|
|
USE Flags (for your reading enjoyment):
Code: |
[ebuild R ] sys-auth/pambase-20080318 USE="cracklib -consolekit -debug -gnome-keyring -mktemp -passwdqc (-selinux)" 0 kB [0]
[ebuild R ] gnome-base/gnome-common-2.20.0 USE="-debug" 0 kB [0]
[ebuild R ] gnome-base/orbit-2.14.13 USE="-debug -doc" 0 kB [0]
[ebuild R ] gnome-base/gail-1.22.3 USE="-debug -doc" 0 kB [0]
[ebuild R ] gnome-base/libgtop-2.22.3 USE="-debug" 0 kB [0]
[ebuild R ] gnome-base/gnome-mime-data-2.18.0 USE="-debug" 0 kB [0]
[ebuild R ] x11-themes/gnome-backgrounds-2.22.0 USE="-debug" 0 kB [0]
[ebuild R ] gnome-base/gconf-2.22.0 USE="ldap -debug -doc" 0 kB [0]
[ebuild R ] gnome-base/libbonobo-2.24.0 USE="-debug -doc" 0 kB [0]
[ebuild R ] gnome-base/libglade-2.6.3 USE="-debug -doc" 0 kB [0]
[ebuild R ] x11-themes/gnome-icon-theme-2.22.0 USE="-debug" 0 kB [0]
[ebuild R ] gnome-base/libgnomeui-2.22.1 USE="jpeg -debug -doc" 0 kB [0]
[ebuild R ] app-text/gnome-doc-utils-0.12.2-r1 USE="-debug" 0 kB [0]
[ebuild R ] net-analyzer/gnome-nettool-2.22.0 USE="-debug" 0 kB [0]
[ebuild R ] gnome-extra/gnome-user-docs-2.22.1 USE="-debug" 0 kB [0]
[ebuild R ] gnome-extra/gcalctool-5.22.3 USE="-debug" 0 kB [0]
[ebuild R ] gnome-base/libgnome-2.22.0 USE="esd -debug -doc" 0 kB [0]
[ebuild R ] gnome-base/libgnomekbd-2.22.0 USE="-debug" 0 kB [0]
[ebuild R ] gnome-extra/gconf-editor-2.22.0 USE="-debug" 0 kB [0]
[ebuild R ] gnome-base/gnome-vfs-2.22.0 USE="acl avahi fam hal ssl -debug -doc -gnutls -ipv6 -kerberos* -samba" 0 kB [0]
[ebuild R ] gnome-extra/gnome-media-2.22.0 USE="esd -debug -gnomecd -ipv6" 0 kB [0]
[ebuild R ] media-plugins/gst-plugins-gnomevfs-0.10.20 0 kB [0]
[ebuild R ] gnome-extra/gucharmap-2.22.3 USE="gnome -cjk -debug" 0 kB [0]
[ebuild R ] gnome-base/gnome-menus-2.22.2 USE="python -debug" 0 kB [0]
[ebuild R ] gnome-extra/evolution-data-server-2.22.3-r1 USE="ldap ssl -debug -doc -gnome-keyring -ipv6 -kerberos -krb4" 0 kB [0]
[ebuild R ] gnome-extra/evolution-webcal-2.21.92 USE="-debug" 0 kB [0]
[ebuild R ] gnome-extra/gnome-screensaver-2.22.2 USE="libnotify opengl pam -debug -doc -xinerama" 0 kB [0]
[ebuild R ] net-libs/xulrunner-1.8.1.19 USE="gnome java -debug -ipv6 -xinerama -xprint" 0 kB [0]
[ebuild R ] x11-terms/gnome-terminal-2.22.3-r1 USE="-debug" 0 kB [0]
[ebuild R ] gnome-extra/yelp-2.22.1-r2 USE="xulrunner* -beagle -debug -lzma" 0 kB [0]
[ebuild R ] gnome-extra/swfdec-gnome-2.22.2 USE="-debug" 0 kB [0]
[ebuild R ] gnome-base/libgnomecanvas-2.20.1.1 USE="X -debug -doc" 0 kB [0]
[ebuild R ] gnome-base/libbonoboui-2.22.0 USE="X -debug -doc" 0 kB [0]
[ebuild R ] x11-themes/gnome-themes-2.22.2 USE="-accessibility -debug" 0 kB [0]
[ebuild R ] gnome-extra/zenity-2.22.1 USE="libnotify -debug" 0 kB [0]
[ebuild R ] dev-python/gnome-python-2.22.0 USE="-debug -doc -examples" 0 kB [0]
[ebuild R ] gnome-extra/gtkhtml-3.18.3 USE="-debug -static" 0 kB [0]
[ebuild R ] gnome-base/gnome-desktop-2.22.3 USE="-debug -doc" 0 kB [0]
[ebuild R ] gnome-base/eel-2.22.2 USE="X -debug" 0 kB [0]
[ebuild R ] gnome-base/gnome-settings-daemon-2.22.2.1 USE="alsa esd gstreamer -debug" 0 kB [0]
[ebuild R ] gnome-base/gnome-keyring-2.22.3 USE="hal pam -debug -doc -test" 0 kB [0]
[ebuild R ] gnome-base/gnome-session-2.22.3 USE="branding tcpd -debug -ipv6" 0 kB [0]
[ebuild R ] gnome-extra/bug-buddy-2.22.0 USE="eds -debug" 0 kB [0]
[ebuild R ] app-text/gnome-spell-1.0.8 USE="-debug" 0 kB [0]
[ebuild R ] gnome-extra/libgsf-1.14.7 USE="bzip2 gnome python -debug -doc" 0 kB [0]
[ebuild R ] gnome-base/librsvg-2.22.2 USE="zlib -debug -doc" 0 kB [0]
[ebuild R ] gnome-base/gnome-panel-2.22.2 USE="eds -debug -doc -networkmanager" 0 kB [0]
[ebuild R ] gnome-extra/gnome-system-monitor-2.22.3 USE="-debug" 0 kB [0]
[ebuild R ] gnome-base/gnome-applets-2.22.3 USE="acpi gnome gstreamer hal -apm -debug -doc -ipv6 (-test%)" 0 kB [0]
[ebuild R ] net-analyzer/gnome-netstatus-2.12.1 USE="-debug" 0 kB [0]
[ebuild R ] gnome-extra/gnome-power-manager-2.22.1 USE="X -debug -doc -test" 0 kB [0]
[ebuild R ] gnome-base/nautilus-2.22.5.1 USE="X gnome -beagle -debug" 0 kB [0]
[ebuild R ] x11-libs/gksu-2.0.0 USE="gnome -debug -doc" 0 kB [0]
[ebuild R ] gnome-base/gnome-mount-0.6 USE="gnome -debug" 0 kB [0]
[ebuild R ] media-video/totem-2.22.2-r1 USE="bluetooth gnome nautilus python xulrunner -debug -galago -lirc -nsplugin -nvtv -seamonkey -tracker" 0 kB [0]
[ebuild R ] gnome-base/gnome-control-center-2.22.2.1 USE="eds esd hal -debug" 0 kB [0]
[ebuild R ] gnome-extra/nautilus-cd-burner-2.22.1 USE="cdr dvdr -debug" 0 kB [0]
[ebuild R ] gnome-base/gdm-2.20.7 USE="branding pam tcpd -accessibility -afs -debug -dmx -gnome-keyring -ipv6 -remote (-selinux) -xinerama" 0 kB [0]
[ebuild R ] gnome-base/gnome-volume-manager-2.24.0-r1 USE="-automount -consolekit -debug" 0 kB [0]
[ebuild R ] gnome-extra/fast-user-switch-applet-2.22.0 USE="-debug" 0 kB [0]
[ebuild R ] gnome-base/gvfs-0.2.5-r3 USE="avahi cdda gnome hal -bash-completion -debug -doc -fuse -gnome-keyring -gphoto2 -samba" 0 kB [0]
[ebuild R ] net-misc/vino-2.22.2 USE="avahi crypt jpeg libnotify zlib -debug -gnome-keyring -gnutls -ipv6" 0 kB [0]
[ebuild R ] net-im/ekiga-2.0.12 USE="avahi dbus gnome sdl -debug -doc" 0 kB [0]
[ebuild R ] net-print/libgnomecups-0.2.3 USE="-debug" 0 kB [0]
[ebuild R ] gnome-base/libgnomeprint-2.18.4 USE="cups -debug -doc" 0 kB [0]
[ebuild R ] net-print/gnome-cups-manager-0.33 USE="-debug" 0 kB [0]
[ebuild R ] gnome-base/libgnomeprintui-2.18.2 USE="-debug -doc" 0 kB [0]
[ebuild R ] app-text/evince-2.22.2-r1 USE="dbus gnome tiff -debug -djvu -doc -dvi -gnome-keyring -t1lib" 0 kB [0]
[ebuild R ] dev-python/gnome-python-desktop-2.22.0 USE="X eds -debug -doc" 0 kB [0]
[ebuild R ] gnome-extra/gnome-utils-2.20.0.1 USE="hal -debug -ipv6" 0 kB [0]
[ebuild R ] gnome-extra/deskbar-applet-2.22.3.1 USE="eds spell -debug -test" 0 kB [0]
[ebuild R ] app-crypt/seahorse-2.22.3 USE="avahi dbus ldap libnotify nautilus* xulrunner* -applet -debug -epiphany -gedit -gnome-keyring" 0 kB [0]
[ebuild R ] gnome-extra/gnome-games-2.22.3 USE="X opengl -artworkextra -debug -guile" 0 kB [0]
[ebuild R ] gnome-base/gnome-2.22.3 USE="cdr cups dvdr esd ldap -accessibility -mono" 0 kB [0] |
As for the netmounts: I don't know WHAT to do exactly, but there are the files
/usr/share/hal/fdi/preprobe/10osvendor/10-ide-drives.fdi
/root/99-redhat-storage-policy-fixed-drives.fdi
in which you're supposed to change that behaviour. I found that somewhere here on this forum because I didn't want a mount to show up on the desktop, but I do not remember what to change in the files. _________________ Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest |
|
Back to top |
|
|
straightlineapple n00b
Joined: 17 Apr 2006 Posts: 43
|
Posted: Tue Jan 06, 2009 5:43 pm Post subject: |
|
|
Hi,
I am having the same kind of problem here with gnome 2.22 on amd64. Some of the issues:
[*] DVDs won't mount automatically
[*] USB won't mount automatically
[*] If something is on the cd drive when the computer starts, it won't get mounted either
[*] Mounting things with the Disk Mounter doesn't make them appear on the desktop
[*] Nautilus can't mount anything when one clicks over its icon on "Computer"
It would be nice if someone posted here all the partial solutions that have been proposed so far on other topics, it would really help a lot!
Thanks |
|
Back to top |
|
|
gemini91 Guru
Joined: 27 Nov 2003 Posts: 317 Location: Naples, Fl
|
Posted: Wed Jan 07, 2009 2:04 pm Post subject: |
|
|
usb memory sticks mount fine, and umount OK. dvd's and cd's also mount
and unmount with out any problems. I run ~amd64, Gnome-2.24.2 and
hal is :
Calculating dependencies... done!
[ebuild R ] sys-apps/hal-0.5.11-r6 USE="X acpi laptop -apm -crypt -debug -dell -disk-partition -doc (-selinux)" 0 kB
The only thing I know that is different is that I prefer to have the other partitions on my machine mount
automatically, and apparently that is not how hal works. So I delete the following file to make that happen.
/usr/share/hal/fdi/policy/10osvendor/99-storage-policy-fixed-drives.fdi
Apparently that does not work for everyone, but after every hal update I delete it and my partitions mount. |
|
Back to top |
|
|
haarp Guru
Joined: 31 Oct 2007 Posts: 535
|
Posted: Mon Jan 12, 2009 3:09 am Post subject: |
|
|
Heh. Tried updating Gnome to no avail.
Automount even interferes with Gparted. Everytime it does something, the drives get reinitialized and the automounter starts mounting all the internal and external things he can get his ugly hands on... It is impossible to use gparted in this state, except when disabling HAL completely (which gparted depends upon or it won't start!) |
|
Back to top |
|
|
haarp Guru
Joined: 31 Oct 2007 Posts: 535
|
Posted: Mon Jan 12, 2009 4:09 am Post subject: |
|
|
Major breakthrough!
No fancy hal-rule-editing was necessary. I have gnome-volume-manager -with- the automount useflag installed.
I long had a symlink from /media pointing to /mnt, cause I didn't accept the fact that someone was to decide where I mount my stuff. I finally gave up on that and made /media an extra folder. The results are impressive:
- Nautilus recognizes drives instantly and correctly
- Nautilus offers an 'unmount' option
- The drive shows up on the desktop
- hal.mtab gets updated properly and the folder gets removed when it is no longer needed
As for removable drives like floppies or cdroms: Remove their /etc/fstab entries. Then they will integrate with Nautilus and HAL and work properly, show unmount buttons, etc.
So I guess the whole thing was my fault all along.
These problems remain:
- bind/ssh-mounts and a few others remain on the Desktop, although unneeded and they can't be removed individually. -> Get rid of them
- Don't mount EVERYthing you can get your hands on and that is not in the fstab!
- I would like persistent mounts in the fstab to be recognized and more nicely integrated into Gnome
I haven't tested how HAL/Gnome handles manual unmounting by root yet. |
|
Back to top |
|
|
Clad in Sky l33t
Joined: 04 May 2007 Posts: 888 Location: Germany
|
Posted: Mon Jan 12, 2009 6:39 am Post subject: |
|
|
Congratulations!
haarp wrote: | So I guess the whole thing was my fault all along.
|
No! It all worked fine (I assume) before you upgraded Gnome. So they screwed up, not you. It's that tedious tendency of the Gnome devs to reinvent the wheel or make things "easier".
For your those unneeded things on the desktop you should have a look around the fora. I vaguely remember a post that dealt with this. You had to edit one of these fdi-policy thingies.
Take a look: https://forums.gentoo.org/viewtopic-t-699723-highlight-.html _________________ Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest |
|
Back to top |
|
|
timeBandit Bodhisattva
Joined: 31 Dec 2004 Posts: 2719 Location: here, there or in transit
|
Posted: Wed Jan 21, 2009 4:53 pm Post subject: |
|
|
Before following any recommendations to edit FDI policy files under /usr/share/hal, read this. _________________ Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others. |
|
Back to top |
|
|
letrec_ n00b
Joined: 06 Jul 2009 Posts: 2
|
Posted: Mon Jul 06, 2009 12:41 am Post subject: |
|
|
Is there a solution for the Gnome hal automount issue? I am experiencing similar problems on amd64 after an upgrade to GNOME 2.24.3 with hal-0.5.11 |
|
Back to top |
|
|
|