You are not logged in.

#1 2006-04-27 17:22:28

lessthanjake
Member
From: Norway
Registered: 2005-11-09
Posts: 319
Website

Permanently mounted partitions displayed on desktop.

I do want my removeable storage devices to be shown on my Gnome-desktop, but some of my entries form fstab(but not all) is also displayed. The problem, my fstab and output from mount is shown in this screenshot. It is /dev/hdc3, /dev/hdc4 and /dev/sda1 that is shown on the desktop. I only want it to bee sda1, how do I fix this problem?

Offline

#2 2006-04-27 19:10:40

rdoggsv
Member
From: /home
Registered: 2005-06-24
Posts: 79
Website

Re: Permanently mounted partitions displayed on desktop.

mount /dev/sda1 on console ?

Offline

#3 2006-04-27 19:44:17

paul2lv
Member
From: Vegas
Registered: 2005-11-09
Posts: 116

Re: Permanently mounted partitions displayed on desktop.

Open gconf-editor. Go to Apps -> nautilus -> desktop. Uncheck "volumes_visible". Now mounted harddisks will not show on the desktop, but stuff like USB keys will.

Offline

#4 2006-04-27 20:02:16

lessthanjake
Member
From: Norway
Registered: 2005-11-09
Posts: 319
Website

Re: Permanently mounted partitions displayed on desktop.

Unchecking "volumes_visible" results in no volumes visible at all. This is the right behaveior for this checkmark, but not what i desire. I think the two hdc's is detectet wrong by gnome-vfs. These partitions also show up in computer:/// and the open-file-dialog. Have not been abel to google any answer, but here is some other experiencing the same: http://lists.debian.org/debian-gtk-gnom … 00051.html

And just like this one, everything worked just fine in gnome 2.12.

Offline

#5 2006-04-27 20:35:42

sputnik
Member
From: Canada
Registered: 2005-06-24
Posts: 98

Re: Permanently mounted partitions displayed on desktop.

I also have the same problem. Dont know how to fix it though.

Offline

#6 2006-04-27 22:37:18

ibrahim
Member
Registered: 2006-02-18
Posts: 53

Re: Permanently mounted partitions displayed on desktop.

Apparently it's the new gnome policy to show all mounted partitions, I remember reading a bug report on it a while ago and the dev's only advice was to edit the fdi files. It's not that hard to do and unless you regularly parition you'll only need to do it once, it does seem a bit removed from gnomes reputation of overly simplified setup though that you need to edit an obscure (seemingly) sparesly documented file

Here's a few links on fdi I got bookmarked

http://www.raoul.shacknet.nu/2005/09/19 … roach-hal/
http://www.redhat.com/magazine/003jan05/features/hal/

Here's part of my custom fdi file that hides some of my partitions



 
 <match>
        <match>
            <match key="volume.uuid" string="59fab6af-6c89-4aac-8028-01d1552db9$        <merge>hdc1</merge>
                <merge>true</merge>

            </match>
        </match>
    </match>

Offline

#7 2006-04-27 23:54:52

lessthanjake
Member
From: Norway
Registered: 2005-11-09
Posts: 319
Website

Re: Permanently mounted partitions displayed on desktop.

Thanks for the answer, looks like you'r right, but i do not get it to work. Looking at lshal,  there is no significant differences between the hdc1 entry and the hdc3 entry, even that one of them is hidden and the other one is displayed? Which key do I have to change to hide the hdc{3,4}-icons?
hdc1:

udi = '/org/freedesktop/Hal/devices/volume_uuid_269a4aed_28f6_4ab7_98e4_3036c157fd43'
  volume.unmount.valid_options = {'lazy'} (string list)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'data='} (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-system-storage-mount', 'hal-system-storage-unmount', 'hal-system-storage-eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  volume.ignore = false  (bool)
  info.udi = '/org/freedesktop/Hal/devices/volume_uuid_269a4aed_28f6_4ab7_98e4_3036c157fd43'  (string)
  volume.partition.msdos_part_table_type = 131  (0x83)  (int)
  info.product = 'Volume (ext3)'  (string)
  volume.size = 7501423104  (0x1bf1ea200)  (uint64)
  volume.num_blocks = 14651217  (0xdf8f51)  (int)
  volume.block_size = 512  (0x200)  (int)
  volume.partition.number = 1  (0x1)  (int)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  volume.is_partition = true  (bool)
  volume.is_disc = false  (bool)
  volume.is_mounted = true  (bool)
  volume.mount_point = '/'  (string)
  volume.label = ''  (string)
  volume.uuid = '269a4aed-28f6-4ab7-98e4-3036c157fd43'  (string)
  volume.fsversion = '1.0'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fstype = 'ext3'  (string)
  storage.model = ''  (string)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_S00JJ30X807014'  (string)
  block.is_volume = true  (bool)
  block.minor = 1  (0x1)  (int)
  block.major = 22  (0x16)  (int)
  block.device = '/dev/hdc1'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent = '/org/freedesktop/Hal/devices/storage_serial_S00JJ30X807014'  (string)
  linux.sysfs_path_device = '/sys/block/hdc/hdc1'  (string)
  linux.sysfs_path = '/sys/block/hdc/hdc1'  (string)

hdc3:

udi = '/org/freedesktop/Hal/devices/volume_uuid_433ec074_d64c_4652_a091_26dd54e5ec03'
  volume.unmount.valid_options = {'lazy'} (string list)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'data='} (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-system-storage-mount', 'hal-system-storage-unmount', 'hal-system-storage-eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  volume.ignore = false  (bool)
  info.udi = '/org/freedesktop/Hal/devices/volume_uuid_433ec074_d64c_4652_a091_26dd54e5ec03'  (string)
  volume.partition.msdos_part_table_type = 131  (0x83)  (int)
  info.product = '/ubuntu/musikk'  (string)
  volume.size = 27949501440  (0x681eb8c00)  (uint64)
  volume.num_blocks = 54588870  (0x340f5c6)  (int)
  volume.block_size = 512  (0x200)  (int)
  volume.partition.number = 3  (0x3)  (int)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  volume.is_partition = true  (bool)
  volume.is_disc = false  (bool)
  volume.is_mounted = true  (bool)
  volume.mount_point = '/home/mathias/musikk'  (string)
  volume.label = '/ubuntu/musikk'  (string)
  volume.uuid = '433ec074-d64c-4652-a091-26dd54e5ec03'  (string)
  volume.fsversion = '1.0'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fstype = 'ext3'  (string)
  storage.model = ''  (string)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_S00JJ30X807014'  (string)
  block.is_volume = true  (bool)
  block.minor = 3  (0x3)  (int)
  block.major = 22  (0x16)  (int)
  block.device = '/dev/hdc3'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent = '/org/freedesktop/Hal/devices/storage_serial_S00JJ30X807014'  (string)
  linux.sysfs_path_device = '/sys/block/hdc/hdc3'  (string)
  linux.sysfs_path = '/sys/block/hdc/hdc3'  (string)

Offline

#8 2006-04-28 09:11:45

ibrahim
Member
Registered: 2006-02-18
Posts: 53

Re: Permanently mounted partitions displayed on desktop.

A lot of my post got stripped out, maybe because it's xml the board strips it as if it was html?

Looking at your output the best key to match with would be the uuid.

Your hdc uuid is volume.uuid = '433ec074-d64c-4652-a091-26dd54e5ec03'  (string)

As I understand it the uuid is a unique number generated whenever the partition is formated (I'm not sure what happens to it if the partition is just resized, I resize often enough that it could break things if it changes the uuid). For people that reformat a lot (maybe by trying different distros) then if a vendor string was available that might be a better string to match on.

How I have my fdi file setup is that all non removable partitions are set to ignore and then I match specific partitions that I want to show up in nautilus computer:// and set them to display.

When I get home I'll post the fdi file again, maybe if I change all the '<' to '&'  it'll display properly, if not if you post an email I could send 'em to you

Offline

#9 2006-04-28 10:14:05

lessthanjake
Member
From: Norway
Registered: 2005-11-09
Posts: 319
Website

Re: Permanently mounted partitions displayed on desktop.

The xml was stripped(!) that explains the odd code you posted.
pm'ed my e-mail to you, an other option is using http://pastebin.com

Offline

#10 2006-04-29 13:58:49

lessthanjake
Member
From: Norway
Registered: 2005-11-09
Posts: 319
Website

Re: Permanently mounted partitions displayed on desktop.

Thanks to ibrahim this is now solved, he mailed me his fdi-file. If someone else is bothered by unwanted icons on their desktop, you can take a look at this file(written by ibrahim): http://www.nedrebo.org/arch/20-storage-methods.fdi
You should modify it to fit your needs.

Offline

#11 2006-10-21 20:56:48

mdk
Member
From: Helsinki/Finland
Registered: 2005-04-04
Posts: 26
Website

Re: Permanently mounted partitions displayed on desktop.

lessthanjake, can you repost the fdi file? The link seems to be broken.


MDK
Open Source Software Operations/Nokia
michael.kostrzewa (at) nokia.com

Offline

#12 2006-10-24 18:03:18

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: Permanently mounted partitions displayed on desktop.

Where is lessthanjake ?

I would also like to see his fdi file.

Gary

Offline

#13 2006-10-24 22:48:52

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: Permanently mounted partitions displayed on desktop.

The random missing partitions is because they're mounted to FHS-compliant locations. Usually entries for /opt, /usr, /home and / aren't shown, but odd locations, like my /usr/src partition, are shown.

I think I'll remove visibility for non-removable drives in the next release of hal. this will be the default until PolicyKit gets a stable released tarball which we can use. Using policykit, it's possible to specify which users see fixed disks and which users don't.

Offline

#14 2006-10-25 03:45:55

lessthanjake
Member
From: Norway
Registered: 2005-11-09
Posts: 319
Website

Re: Permanently mounted partitions displayed on desktop.

Sorry, I have changed server, now its working again smile

Offline

#15 2006-10-25 18:42:43

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: Permanently mounted partitions displayed on desktop.

Thanks lessthanjake
Your instructions worked great for me.

Gary

Offline

#16 2008-03-24 15:33:16

lessthanjake
Member
From: Norway
Registered: 2005-11-09
Posts: 319
Website

Re: Permanently mounted partitions displayed on desktop.

This fix doesn't seem to work anymore. Any hal/gnome-wizards here, who know of an other fix.

Offline

#17 2008-03-24 16:56:53

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

Re: Permanently mounted partitions displayed on desktop.

This is from thread http://bbs.archlinux.org/viewtopic.php?id=43648

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>

"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