You are not logged in.

#1 2006-08-12 19:42:49

inf
Member
From: Vantaa, Finland
Registered: 2006-07-18
Posts: 102
Website

How to make Gnome show device icons automatically

How can I get Gnome to put the plugged in devices icons to the Desktop automatically.

Example:

If I plug my USB-HD to my computer, gnome does automount it using dbus/hal but the device icon doesn't show up in the Desktop area. After i go to Nautilus and click the device shown there, the icon comes to the Desktop.

Example Ubuntu shows that icon by default, so it must be just a config issue, but where?

Offline

#2 2006-08-12 22:24:27

CavalierBob
Member
From: San Francisco Bay Area
Registered: 2006-07-20
Posts: 110

Re: How to make Gnome show device icons automatically

Hope you get an answer to this one inf. I'm seeing a somewhat similar problem with my USB stick. No icon appears on the desktop, the stick IS seen in Natutilus, but my stick is NOT mounted. As soon as I mount the USB stick in Nautilus the USB sticks icon appears on the desktop.

As you say, seems like a simple config problem....I've poked around with gconf-editor but have yet to find a setting that seems appropriate.

Bob

p.s. any CD I put into the drive is mounted fine and displays an icon on the desktop without any problems. Maybe USB is the issue???

Offline

#3 2006-08-17 09:19:37

inf
Member
From: Vantaa, Finland
Registered: 2006-07-18
Posts: 102
Website

Re: How to make Gnome show device icons automatically

Anybody have any idea what to fix?

It must be a config issue, but where? In Ubuntu this works like a dream, but I'm not very interested to use Ubuntu because it's so "heavy" for my oldish laptop.

Offline

#4 2006-08-17 11:04:35

dojo
Member
Registered: 2005-11-02
Posts: 97

Re: How to make Gnome show device icons automatically

Hi,

I recognized the same few weeks ago. I tried the hal-config-file from ubuntu without success. USB mass storage work. CDRoms don't work. I think it's a hal / udev / kernel bug.

Edit: Does someone knows if cdrom icons a created successfull using kde?

Greets

dojo

Offline

#5 2006-08-17 15:26:49

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: How to make Gnome show device icons automatically

I think KDE shows device icons all the time, not automaticly, at least by default...

Offline

#6 2006-08-17 15:31:17

dojo
Member
Registered: 2005-11-02
Posts: 97

Re: How to make Gnome show device icons automatically

So it seems to be a gnome related problem.

Greets

dojo

Offline

#7 2006-08-17 16:57:45

murkus
Member
From: Europe/Helsinki
Registered: 2004-03-19
Posts: 254

Re: How to make Gnome show device icons automatically

go to Applications -> System tools -> configuration editor

there select: Apps, Nautilus, Desktop : volumes_visible

Now you will have all mounted volumes visible on your desktop

Unfortunately it includes your hds, which I don't want.

greets,
murkus

Offline

#8 2006-08-17 17:47:46

dojo
Member
Registered: 2005-11-02
Posts: 97

Re: How to make Gnome show device icons automatically

volumes_visible is still enabled.

To achieve that only removable Media is shown on the desktop you have to modify the default hal configuration. I tried to post it here, but the forum software was not able to display the xml code correct.

Any suggestions?

Greets

dojo

Offline

#9 2006-08-17 18:11:37

murkus
Member
From: Europe/Helsinki
Registered: 2004-03-19
Posts: 254

Re: How to make Gnome show device icons automatically

Could you tell what file to modify? Just omit the brackets and stuff from the code?

Offline

#10 2006-08-17 23:58:00

ks1
Member
From: Atlanta, Georgia
Registered: 2006-03-26
Posts: 62
Website

Re: How to make Gnome show device icons automatically

Is your user in the storage group?
if not add,

gpasswd -a username storage

Everything works fine for me.

Also, what is in your daemons list in /etc/rc.conf?

Here is mine

DAEMONS=(syslog-ng network netfs crond alsa portmap fam dbus hal)

Offline

#11 2006-08-18 09:21:04

dojo
Member
Registered: 2005-11-02
Posts: 97

Re: How to make Gnome show device icons automatically

Ok. I think i found the solution. After removing the lines for my optical devices in /etc/fstab it worked perfectly.

I will post the modifaction to show only removable devices in the wiki next few days. I hope the wiki can display xml-code correct.

Greets

dojo

Offline

#12 2006-08-18 14:42:39

ks1
Member
From: Atlanta, Georgia
Registered: 2006-03-26
Posts: 62
Website

Re: How to make Gnome show device icons automatically

My cdrom, windows partition, and FAT32 share are all in /etc/fstab and are automounted fine. USB isn't in /etc/fstab and it automounts/auto unmounts fine for me.

Since the windows partition and FAT32 share are in /etc/fstab
they show the name /mnt/windows, and /mnt/share on the desktop instead of disk, disk-1, disk-2, disk-X.

Offline

#13 2006-08-18 16:09:54

dojo
Member
Registered: 2005-11-02
Posts: 97

Re: How to make Gnome show device icons automatically

My cdrom, windows partition, and FAT32 share are all in /etc/fstab and are automounted fine. USB isn't in /etc/fstab and it automounts/auto unmounts fine for me.

Since the windows partition and FAT32 share are in /etc/fstab
they show the name /mnt/windows, and /mnt/share on the desktop instead of disk, disk-1, disk-2, disk-X.

Can you post your /etc/fstab here?

As I promised: http://wiki.archlinux.org/index.php/HAL

Greets

dojo

Offline

#14 2006-08-18 16:47:17

ks1
Member
From: Atlanta, Georgia
Registered: 2006-03-26
Posts: 62
Website

Re: How to make Gnome show device icons automatically

Sure

# 
# /etc/fstab: static file system information
#
# <file>        <dir>         <type>    <options>              <dump> <pass>
none                   /dev/pts      devpts    defaults                0      0
none                   /dev/shm      tmpfs     defaults                0      0

/dev/cdrom         /mnt/cdrom    iso9660   ro,user,noauto,unhide   0      0
/dev/dvd             /mnt/dvd      udf       ro,user,noauto,unhide   0      0
/dev/fd0              /mnt/floppy   vfat      user,noauto             0      0
/dev/hda1         /mnt/windows  ntfs      user,ro,umask=0222      0      0
/dev/hdb1         swap         swap      defaults            0      0
/dev/hdb2           /                    ext3      defaults                0      1
/dev/hdd1        /mnt/share    vfat      user,defaults           0      0


Also, I read your HAL wiki topic and you talk about CD/DVD not being automounted.
I do not beleive It is not a good idea to remove the lines from /etc/fstab.
You should also make sure  your user is in the "optical" group, as with the "storage" group. All devices automount properly for me.

gpasswd -a username storage
gpasswd -a username optical

Offline

#15 2006-08-18 17:09:06

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: How to make Gnome show device icons automatically

I just tested to remove USB mass storage and CD/DVD from fstab, and suddenly automounting was working here too. It automaticly creates a mountpoint in /media, mounts and after unmount it deletes the directory.

And yes, I was in the groups optical and storage.

Offline

#16 2006-08-18 20:12:55

ks1
Member
From: Atlanta, Georgia
Registered: 2006-03-26
Posts: 62
Website

Re: How to make Gnome show device icons automatically

Well atleast it works. Mine works either way. If anything its good reference for anyone trying to get it to work.

Offline

#17 2006-08-19 12:56:53

dojo
Member
Registered: 2005-11-02
Posts: 97

Re: How to make Gnome show device icons automatically

I tried it with lines for optical devices in /etc/fstab. In KDE it works. Using gnome the device is not shown and no automount.

Stopping  /etc/rc.d/hal and starting hald from command line

hald --verbose=yes --daemon=no

Some errors occurs:

14:55:08.152 [W] hald_dbus.c:87: No property info.callouts.add on device with id /org/freedesktop/Hal/devices/volume_label_WXPOEM_DE
14:55:08.154 [i] hald_dbus.c:3085: OK for method 'Mount' with signature 'ssas' on interface 'org.freedesktop.Hal.Device.Volume' for UDI '/org/freedesktop/Hal/devices/volume_label_WXPOEM_DE' and execpath 'hal-system-storage-mount'
14:55:08.166 [i] hald_dbus.c:2613: no need to enqueue
Run started hal-system-storage-mount (0) (1)
!  full path is '/usr/share/hal/scripts/hal-system-storage-mount', program_dir is '/usr/share/hal/scripts'
/usr/share/hal/scripts/hal-system-storage-mount exited
14:55:08.192 [i] hald_dbus.c:2635: No more methods in queue
14:55:08.192 [i] hald_dbus.c:2680: failed with 'org.freedesktop.Hal.Device.Volume.PermissionDenied' '/dev/hdc found in /etc/fstab'

Maybe someone who had similiar problems before removing /etc/fstab lines can confirm this error messages.

Greets

dojo

Offline

#18 2006-08-19 13:25:51

jaboua
Member
Registered: 2005-11-05
Posts: 634

Re: How to make Gnome show device icons automatically

Eh... It's a bit hard to find out as it writes out more 500 lines (in other words, more than I have history in gnome-terminal) and I can't pipe it to a file or pager...

Offline

#19 2006-08-19 13:29:04

dojo
Member
Registered: 2005-11-02
Posts: 97

Re: How to make Gnome show device icons automatically

Start hald and when it finished the start up output put a cd/dvd into you optical drive. Then hald writes some output again. The last few lines should contain the error. :-D

Greets

dojo

Offline

#20 2006-09-12 20:16:37

archuser
Member
From: Northamptonshire, UK
Registered: 2006-09-10
Posts: 122

Re: How to make Gnome show device icons automatically

autofs has gone completely bonkers.

Clicking on the cdrom icon in nautilus tells me I don't have permission to create "the directory" and pmount won't execute.

The thing only mounts when I enter the /media/cdrom directory in the terminal. When I try and eject the disk, it mounts it.

My usbstick doesn't even get seen.

My pc is starting to foam at the mouth. (ok that part was made up).

Oh and for some reason, to eject the disk I have to use sudo.

:shock:  :?  :shock:


Intel i7-920 (stock), ASUS P6TD-Deluxe, AMD R9 270X, RAM: 6GB

Offline

Board footer

Powered by FluxBB