Whenever I insert a removable (cdrom or usb-stick) the removable will get auto-mounted if I say so in Gnome-volume-manager, but Nautilus, FileChooser and the Diskmounter Applet will not display a icon for a mounted device. The components detect when there is a new device, by showing a icon, but it is always the unmounted icon. When I switch off automount in Gnome-volume-manager, I can mount the device by clicking the icon, then the device gets mounted, but the icon stays unmounted. In both cases when I click a icon and the device is allready mounted, it will give an error staring that the device is allready mounted. It doesn't matter if the device is in the /etc/fstab file or not. Both options don't work, but if the device is not known in /etc/fstab it will get mounted with device names like "/media/sda1 or /media/hdc" The user is known in the plugdev group. >whoami mgee >grep mgee /etc/passwd mgee:x:1000:100:,,,:/home/mgee:/bin/bash >grep plugdev /etc/group plugdev:x:410:mgee Installed related compenenents: * gnome-base/gnome-vfs Latest version available: 2.12.0 Latest version installed: 2.12.0 Size of downloaded files: 1,687 kB Homepage: http://www.gnome.org/ Description: Gnome Virtual Filesystem License: GPL-2 LGPL-2 * sys-apps/hal Latest version available: 0.5.4 Latest version installed: 0.5.4 Size of downloaded files: 1,441 kB Homepage: http://www.freedesktop.org/Software/hal Description: Hardware Abstraction Layer License: || ( GPL-2 AFL-2.0 ) * sys-apps/dbus Latest version available: 0.36.2 Latest version installed: 0.36.2 Size of downloaded files: 1,563 kB Homepage: http://dbus.freedesktop.org/ Description: A message bus system, a simple way for applications to talk to eachother License: || ( GPL-2 AFL-2.1 ) * sys-fs/udev Latest version available: 070 Latest version installed: 070 Size of downloaded files: 429 kB Homepage: http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html Description: Linux dynamic and persistent device naming support (aka userspace devfs) License: GPL-2 * gnome-base/nautilus Latest version available: 2.12.0 Latest version installed: 2.12.0 Size of downloaded files: 3,978 kB Homepage: http://www.gnome.org/projects/nautilus/ Description: A file manager for the GNOME desktop License: GPL-2 LGPL-2 FDL-1.1 * gnome-base/gnome-volume-manager Latest version available: 1.5.1 Latest version installed: 1.5.1 Size of downloaded files: 315 kB Homepage: http://www.gnome.org/ Description: Daemon that enforces volume-related policies License: GPL-2 * sys-apps/pmount Latest version available: 0.9.3-r3 Latest version installed: 0.9.3-r3 Size of downloaded files: 47 kB Homepage: http://www.piware.de/projects.shtml Description: Policy based mounter that gives the ability to mount removable devices as a user License: GPL-2 * x11-libs/gtk+ Latest version available: 2.8.3-r1 Latest version installed: 2.8.3-r1 Size of downloaded files: 11,492 kB Homepage: http://www.gtk.org/ Description: Gimp ToolKit + License: LGPL-2 Reproducible: Always Steps to Reproduce: 1. Insert removable Actual Results: If there is no icon for the device, a icon appears for it. But the icon will allways be the unmounted icon. When the device is automounted then clicking the icon and choosing mount the device wil generate a error: The device is allready mounted. The icon will stay in the unmounted state. When the device is not automounted, clicking the icon and choosing mount the device will mount it, but the icon stays in unmounted state. Clicking it again and choosing mount the device will generate a error: The device is allready mounted. Expected Results: Display the actual state of a device (mounted/unmounted) and according it. Portage 2.0.52-r1 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo-r1 x86_64) ================================================================= System uname: 2.6.13-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.12.0_pre8 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US.UTF-8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/usr/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X accessibility acpi alsa amd64 avi berkdb bindist bitmap-fonts bonobo browserplugin cairo cdparanoia cdr crypt cups curl dbus dga dvd dvdr eds emboss encode esd evo faad fam foomaticdb fortran gb gif gimpprint glitz glx gnome gnutls gpm gstreamer gtk2 gtkhtml guile hal howl imagemagick imap imlib ipv6 java jikes joystick jpeg junit kerberos lzw lzw-tiff mad mikmod mime motif mozilla mp3 mpeg musicbrainz ncurses network nls nomalloccheck nptl nptlonly ogg opengl oss pam pdflib perl pic plotutils png print python quicktime readline samba sasl scanner sdl sox spell ssl svg tag tcpd theora tiff truetype truetype-fonts type1-fonts usb userlocales videos vorbis wmf wxwindows xml xml2 xosd xpm xprint xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Had the same problem, but since the upgrade to some of the 2.12.1 packages today things are working again for me.
gnome-2.12.1 packages don't help, all the patches under the sun from everywhere didn't help either. http://bugs.gentoo.org/show_bug.cgi?id=108260
Due to a fault of my own (deleting the /etc directory), I had to do a complete fresh installation on my laptop (~amd64). The problem still is there (even with the new gnome 2.12.1 packages.)
After gnome 2.12 got in the ~x86 group my desktop did a upgrade to it. Now my desktop has the same problem, when gnome 2.10.x was working perfectly.. I futher notice that when I switch off the hald daemon, I can manually mount and umount the cdrom and the icon is changing from mount to unmounted and visa versa. In the computer folder, in the menu and the diskmount applet.
A short summaries: When hald is running, automounting removable storage devices functions but the gnome components handling removable storage (Nautilus, Filechooser and Diskmount applet) are not picking up change in removable storage state. they detect if there is a new device (USB stick) connected by showing a unmounted disk icon, but the icon is not showing the current state of that device, only the unmounted state. If you mount the device by interact with the icon it will mount the device if it isn allready mounted, but the icon state wil not change. If it is allready mounted there will be a error window stating that the device is allready mounted. The state of the icon will remain unmounted. Turning of hald will let the icons show the current state of storage devices, but automounting and autodetecting devices will not work. Manual mounting and unmounting devices work and show the actual state of the device. My gues is a conflict between HAL and a common gnome component (gnome-vfs?) This error occures both on my x86 desktop and my amd64 laptop, my amd 64 laptop had a fresh install last weekend and before and after this install the error was there.
same problem... no solution
Another vote for this problem. It semms as if nautilus or gnome-vfs does not recognize changes in /etc/mtab.
Same problem here, but only on my laptop (pentium-m 730) ... My old Athlon 800Mhz detects the device and puts an icon on the desktop [The Athlon got another prob... the icon disapear only if I force the unmount, not if I took the usb stick away...] Main difference is Hal lauch the property change handler of g-v-m (and result after the pmount-hal execution to an output of "Mounted: blabla" on the old box... but this never happend on the Pentium M... Fyi: The version of dbus/hal/gnome are exactly the same between the 2 machines... and both were working fine with gnome 2.10
In my experience, this problem happens only when my kernel was builed with preemptible mode.
I confirm this, without preempt, it fixes the problem CONFIG_PREEMPT_NONE=y # CONFIG_PREEMPT_VOLUNTARY is not set # CONFIG_PREEMPT is not set
Another confirmation! Setting CONFIG_PREEMPT_NONE=y # CONFIG_PREEMPT_VOLUNTARY is not set # CONFIG_PREEMPT is not set fixes the problem for me, too.
This seems to be a "yet another revived HAL bug" in connection with the preemptive setting: https://bugs.freedesktop.org/show_bug.cgi?id=1165 I can confirm that "is_mounted" stays false, even if mounted via pmount (and the gnome-applets drive-mounter function). " ------- Additional comment #4 from Johannes Schaub on 2004-08-23 10:02 ------- I found the error: if you start hald with "--daemon=no", the mentioned properties are updated correctly and gnome-volume-manager works too. But if you start hald as a daemon, the properties aren't updated." This isn't true for our problem. is_mounted stays always false. But I think it isn't a GNOME bug at all. Does anyone have another solution than deactivating preemptive?
I can confirm that switching off preempt solves the problem on amd64 and x86 for me.
A little bit off topic: But now my Trash on the Desktop remains empty even if there are files in ~/.Trash. If I stop hald, the Trash icon behaves as exspected.
# CONFIG_PREEMPT_NONE is not set # CONFIG_PREEMPT_VOLUNTARY is not set CONFIG_PREEMPT=y CONFIG_PREEMPT_BKL=y CONFIG_DEBUG_PREEMPT=y Works fine here. So preempt can't be the only gater. I run both amd64 and x86.
Additional information: When I turn off preempt in the kernel several gnome components are showing processor activity in top in rest state. together they use about 10% of the processor power. On both the x86 and amd64.
comment #12's link to https://bugs.freedesktop.org/show_bug.cgi?id=1165 seems to solve the problem and fixed in the cvs.
well.. i don't think that this problem is caused from hal. actually, gvm works fine, so the external drive was mounted automatically. The problem is just if nautilus (or other gtk components) shows the mounted drive. For the test, anyway, i rebuild the kernel with turning on preemtible support, and then I installed the cvs version of hal. But nothing changed. Still, the external drives such as usb stick and/or ieee1394 hard drive mount without problem. But i cannot find the icon of mounted drive on the nautilus and gnome-panel.
After the update to udev-071 everything seems to work, except that now and the gamin seems to stop detecting filesystem changes, but Iguess this is another problem and not in the scope of this bug
I still have the issue, even after updating to udev-071 so I don't believe anything is fixed.
Could those of you having problems take a look at this page: http://dev.gentoo.org/~dang/gnome-device-plugging.txt If none of that helps, could one of you post the debug info linked there?
As I said before my problems have disappeared after udev-0.71, but now gamin is giving troubles, crashing and so. But again this is probably not related to this bug. I remembered a blog of the developer of gaminwhere he points out that gamin 1.6 is crashing due to a fix: [quote] gam_server segfaults on inotify Apparently my patch to fix the memory leak in 0.1.6 can lead to a double free, the poor souls (rlove, fcrozat, etc...) who package it in their respective distro may want to have a look at my fix for RH #168744 commited in CVS and double-check. Rawhide users should bet the beta version for free (my revenge for being sick). [/quote]
That's a different bug 109642
Hal cvs version seems to have a workaround of this problem. refer following changelog. http://cvs.freedesktop.org/hal/hal/ChangeLog?view=markup
(In reply to comment #24) > Hal cvs version seems to have a workaround of this problem. > refer following changelog. > > http://cvs.freedesktop.org/hal/hal/ChangeLog?view=markup well.. the cvs version fixed this problem, but it's not perfect. gvm still does not mount external drives automatically. In spite of the trivial problem, when i clicked the icon of the unmounted drive, nautilus shows a mounted icon normally.
a new gamin and gnome-volume-manager have been committed to the tree lately, can anyone still reproduce the problems? If you can, please follow comment #21 and provide us with some debugging info. Thanks!
Problems still present using a preempt kernel (no preempt=no problems) -- # CONFIG_PREEMPT_NONE is not set CONFIG_PREEMPT_VOLUNTARY=y # CONFIG_PREEMPT is not set -- All points from gnome-device-plugging.txt looks fine. Posting of the https://wiki.ubuntu.com/DebuggingRemovableDevices comes asap
Created attachment 72313 [details] gnome-volume-manager log
Created attachment 72314 [details] lshal results
Created attachment 72315 [details] dmesg results
Created attachment 72316 [details] ls -l /dev/sd*
Last steps: muaddib@vaio ~ $ id uid=1000(muaddib) gid=100(users) groups=4(adm),6(disk),10(wheel),11(floppy),18(audio),19(cdrom),20(dialout),26(tape),27(video),35(games),80(cdrw),85(usb),100(users),418(plugdev) muaddib@vaio ~ $ uname -a Linux vaio 2.6.13-gentoo-r3 #1 Fri Oct 7 11:17:33 CEST 2005 i686 Intel(R) Pentium(R) M processor 1.60GHz GenuineIntel GNU/Linux Hope this helps ;)
Created attachment 72318 [details] Result of hal in debugmode I gzip it, since the file is around 350kb.... (contains full load, gnome-volume-manager load and plugin+plugout usb stick) Last but not least: version of main components: [ebuild R ] gnome-base/gnome-volume-manager-1.5.4 +crypt -debug -doc 0 kB [ebuild R ] sys-fs/udev-071 (-selinux) -static 0 kB [ebuild R ] sys-apps/dbus-0.36.2 +X -debug -doc +gtk -mono +python +qt +xml2 1,563 kB [ebuild R ] sys-apps/hal-0.5.4 -debug -doc -pam_console -pcmcia 1,441 kB [ebuild R ] sys-fs/sysfsutils-1.3.0 272 kB
@Pierre: is your system/lang utf8 ? if so, I've been able to reproduce your issue. I have a patch locally to "fix" this issue, but I want to review it before attaching it and having you test.
yep, I use UTF8 Will test your patch as soon as you want ;)
do you have utf8 compiled in your kernel? you can check by doing: zcat /proc/config.gz | grep NLS look for: CONFIG_NLS=y CONFIG_NLS_DEFAULT="utf8" CONFIG_NLS_UTF8=y Is that what you have? If not, please recompile your kernel and try again. File systems -> Native Language Support -> they are in here Thanks!
Hi, I didn't have utf8 as default, but was compiled in kernel. Anyway, I recompiled kernel with utf8 as default but still same problem. FYI: (if i can have any links) I use a few other NLS in kernel (Europe, Big5 and some others) as well...
For info, the NLS config of my current kernel (2.6.13-gentoo-r4) ---- muaddib@vaio ~ $ zcat /proc/config.gz| grep NLS | grep -v "^#" CONFIG_UDF_NLS=y CONFIG_NLS=y CONFIG_NLS_DEFAULT="utf8" CONFIG_NLS_CODEPAGE_437=y CONFIG_NLS_CODEPAGE_850=y CONFIG_NLS_CODEPAGE_936=y CONFIG_NLS_CODEPAGE_950=y CONFIG_NLS_ASCII=y CONFIG_NLS_ISO8859_1=y CONFIG_NLS_ISO8859_15=y CONFIG_NLS_UTF8=y
*** This bug has been marked as a duplicate of 107784 ***