You are not logged in.

#1 2008-04-09 14:08:54

SkyValley
Member
Registered: 2008-04-09
Posts: 20

[SOLVED]Hiding disk partitions on Gnome desktop

Since upgrading to Gnome 2.22.0, all of my partitions have been showing on the desktop and in the sidebar in nautilus. I don't really want this this to happen, as it gets kind of cluttered.

This has been a problem before, but after some googling, I managed to solve it by putting a '10ignore-disks.fdi' in /etc/hal/fdi/preprobe/. Since the update though, this no longer works. I've tried playing with /etc/hal/fdi/policy/preferences.fdi (after some more googling) but to no avail. I'm not really sure what to try next. Does anyone have any ideas?

Also, note that I've read about going to gconf-editor and turning off the 'volumes_visible' option in apps/nautilus/desktop, but this isn't really what I want either, as I'd prefer if removable media was automounted and displayed on the desktop.

Thanks in advance for your help.

Last edited by SkyValley (2008-04-10 14:55:26)

Offline

#2 2008-04-09 21:07:15

kezar
Member
Registered: 2007-08-14
Posts: 61

Re: [SOLVED]Hiding disk partitions on Gnome desktop

Try this in /etc/hal/fdi/policy/90-user-methods.fdi

<?xml version="1.0" encoding="UTF-8"?> 
<deviceinfo version="0.2">
  <device>
    <match key="volume.fsusage" string="filesystem">
      <merge key="volume.ignore" type="bool">true</merge>
      <match key="@block.storage_device:storage.removable" bool="true">
        <merge key="volume.ignore" type="bool">false</merge>
        <merge key="storage.policy.should_mount" type="bool">true</merge>
      </match>
    </match>
  </device>
</deviceinfo>

Offline

#3 2008-04-10 05:52:02

SkyValley
Member
Registered: 2008-04-09
Posts: 20

Re: [SOLVED]Hiding disk partitions on Gnome desktop

I tried it, but they're still there.

Offline

#4 2008-04-10 13:41:47

biloky
Member
Registered: 2008-03-02
Posts: 61

Re: [SOLVED]Hiding disk partitions on Gnome desktop

I have mine in /usr/share/hal/fdi/preprobe/95userpolicy/10-ignore-disks.fdi instead, and it looks something like this:

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
    <match key="block.device" string="/dev/sdb1">
      <merge key="info.ignore" type="bool">true</merge>
    </match>
  </device>
</deviceinfo>

I don't have an entry in /etc/fstab for /dev/sdb1 and mounting it will be via terminal as root.

If I am not mistaken, in Gnome 2.22, if you want your partitions to be mounted on boot (without the desktop icons), just place corresponding entries to your /etc/fstab mounting each partitions under /mnt.  Without those /etc/fstab entries, Gnome will mount them under /media and will create desktop icons for each.

Last edited by biloky (2008-04-10 21:57:04)

Offline

#5 2008-04-10 13:44:51

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED]Hiding disk partitions on Gnome desktop

Can also use udev, e.g. in /etc/udev/rules.d/10-local.rules

SUBSYSTEMS=="usb", ATTRS{serial}=="07740A991CBB", ATTR{size}=="2880", OPTIONS="ignore_device"

This ignores a small partition on a USB drive, whilst gnome (via hal) will mount its other partition.

Offline

#6 2008-04-10 14:54:00

SkyValley
Member
Registered: 2008-04-09
Posts: 20

Re: [SOLVED]Hiding disk partitions on Gnome desktop

Got it! Mounting them under /mnt in fstab did it. Thanks again for your help, people.

Offline

Board footer

Powered by FluxBB