You are not logged in.

#1 2008-02-09 11:01:45

Susu
Member
From: Germany
Registered: 2005-11-11
Posts: 191
Website

kde(mod): icon external usb hard drive

I have an external usb hard drive that is permanently connected. My line in fstab looks like this:

/dev/usbdisk /mnt/usbdisk ext3 defaults 0 0

I'm using hal and for this hdd there is an icon on my desktop, and I'm desperately trying to remove that icon. I want to show icons for removable usb storage devices like my iriver h300, usbsticks and others but NOT for this hdd. Any ideas how to fix that?


Album reviews (in german): http://schallwelle.filzo.de

Offline

#2 2008-02-09 15:45:10

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: kde(mod): icon external usb hard drive

Is that icon different from the Usb-Stick one? In that case you could fix it with right-clicking the desktop, "Setup..." ...bla... "Gerätesymbole" ;-)
If it isn't -- no idea. Overriding HAL stuff is beyond me.


1000

Offline

#3 2008-02-09 17:28:02

pelle.k
Member
From: Åre, Sweden (EU)
Registered: 2006-04-30
Posts: 667

Re: kde(mod): icon external usb hard drive

Sure thing. Add this to /etc/hal/fdi/policy/preferences.fdi

     <!-- Ignore fixed partitions which are not mounted in /media -->
     <match key="@block.storage_device:storage.hotpluggable" bool="false">
       <match key="@block.storage_device:storage.removable" bool="false">
         <match key="volume.is_mounted" bool="true">
           <merge key="volume.ignore" type="bool">true</merge>
           <!-- Show /media/ drives -->
           <match key="volume.mount_point" compare_gt="/media">
             <match key="volume.mount_point" compare_lt="/media0">
               <merge key="volume.ignore" type="bool">false</merge>
             </match>
           </match>
         </match>
       </match>
     </match>

This is taken from ubuntu btw.
edit / you might have to tweak it a bit. i'll be happy to help if it doesn't work for you.

Last edited by pelle.k (2008-02-09 17:30:54)


"Your beliefs can be like fences that surround you.
You must first see them or you will not even realize that you are not free, simply because you will not see beyond the fences.
They will represent the boundaries of your experience."

SETH / Jane Roberts

Offline

Board footer

Powered by FluxBB