LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-29-2005, 08:28 AM   #1
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, Windows 7
Posts: 1,258

Rep: Reputation: 62
Flakey Drive Icons on desktop and "Computer"


I am using Ubuntu 5.04 (Hoary) with the latest updates applied.

First off, my main desktop of choice is slackware and I have Gnome 2.10 installed and functioning correctly with this distro (freerock) but with the 2.4.30 kernel. So I am fairly certain this is not a Gnome 2.10 "feature", but it may be the 2.6 kernel - I do not have much experience with 2.6 - or maybe udev or some combination of everything.

The problem is this: My drive icons, when mounted, do not show up on the desktop. This would not be such a big deal, but the drive icons, when listed in the "computer" browser from the "places" menu drop-down are not correctly labled with the mount-point names. They instead have a generic name with the drive size listed. This again would not be an issue, but I have 10 mountable partitions - all the same size - so I cannot tell which is which without mounting and looking at the contents of each one untill I find the one I want.

What is even stranger is that from time to time this issue corrects itself! Sometimes after an auto-upgrade/update. Most recently after compiling a program from source and running ldconfig, then rebooting. When the problem is "corrected", all the mounted drives show up on the desktop and are labled by their correct name from fstab. If I log out of X (not reboot) and log back in, the problem is back again, though occasionally a reboot is required to break things again. I have tried upgrading, or adding programs via synaptic to see if this "fix" is consistant, but it is not. I cannot reproduce it - it is, as far as I can tell, entirely random. The drive icons are "broken" 99% of the time.

Additionally, the mounting of a CD-ROM does create a desktop icon at all times and the CD-ROM, ZIP, and FLOPPY icons in the "Computer" browser are always labled correctly. I believe the Zip drive icon is also correctly appearing when a disk is inserted and mounted (I would check, but I am in slackware now)

I had a slightly similar problem (no icons on the desktop for mounted drives) in slackware and freerock's 2.10 Gnome, but changing options in my fstab corrected this. I attempted to change settings in the fstab file in Ubunto but this made no difference.

I am most intrigued by the infrequent and random "corrections" of this problem. Things must be set correctly overall, but are over-ridden by some other setting that occasionally fails.

Any ideas on what to look at would be appreciated. I am stumped.

Sorry this is so long, but Murphy dictates that the longer and more detailed the question, the shorted and simpler the fix is (and the stupider the poster feels when he sees the answer)

Thanks for reading.
 
Old 05-29-2005, 02:04 PM   #2
Franklin
Senior Member
 
Registered: Oct 2002
Distribution: Slackware, Windows 7
Posts: 1,258

Original Poster
Rep: Reputation: 62
In case anyone is interested, further investigation points to bug(s) in hald and/or gnome-vfs-daemon.
stopping and re-starting gnome-vfs-daemon brings back the icons.

ugly.
 
Old 06-14-2005, 07:38 AM   #3
cloudrain
LQ Newbie
 
Registered: Jun 2005
Location: turkey
Distribution: custom slackware
Posts: 1

Rep: Reputation: 0
I'm using slackware-10.1 (w/ latest 2.6 kernel) and freerock gnome. After adding udev/dbus/hal support (with fstab-sync) I think I am at the place where you are with ubuntu.

My problem is by adding hotswap disk drivers, usb disks etc. If I plug them, hal recognizes and notifies gnome-volume-manager which also mounts them as configured. After the mount, a nautilus window also pops up showing the mount point and drive content. But neither the computer:// is refreshed (not showing the hotplugged device/mount) nor the desktop icons.

Actually this new device is recognized by gnome-vfs-daemon. From command line, it is accessible by gnomevfs-ls command. (gnomevfs-ls "computer:///"). Somehow, gnome-vfs-daemon should notify nautilus of the new device to update desktop/computer:///.

If I insert a cd into one of the optical drives (configured to automount/auto play dvd/all of the fancy things), gnome-volume-manager mounts, notifies gnome-vfs-daemon and gnome-vfs-daemon notifies nautilus to update listing. At this point, if the listing is refreshed, my hotplugged device also appears (as it was already recognized by gnome-vfs-daemon, but nautilus did not refresh listing)

There are possibilities to force nautilus to refresh the listing (in computer:/// and also the desktop icons).. One is killing and restarting nautilus, killing and restarting gnome-vfs-daemon (which you also found)
and also automounting a cd etc.

For a temporary hack, I added the code to kill gnome-vfs-daemon into the gnome-volume-manager (for the devices for which notification doesn't work). This solves the visible problem (but I'm not confortable with killing gnome-vfs-daemon everytime I connect a drive)

I couldn't find anybody having the same problem till now. There should be a proper descriptive name for the problem but I don't know.

If I have time, I will probably invastigate it further and understand how the notification/signaling actually works. After then I can create a patch for this specific problem (without killing g.-vfs-daemon)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set the size of icons for "Starterbar" in "Gdekslets" Blue Jacket Linux - Software 4 11-23-2005 02:42 AM
How do I set up "single click" desktop icons in Mandriva LE? JerryP Mandriva 1 05-31-2005 10:16 PM
Lost DHCP Lease when putting computer in "Standby" mode for a "long" time pnellesen Linux - Networking 1 01-06-2005 11:44 PM
desktop icons for drives with option "user" fsbooks Linux - Software 0 01-08-2004 09:07 AM
Hiding the desktop and the "system tray" of KDE Desktop... alkebulan Programming 2 07-04-2003 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration