You are not logged in.
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
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
I tried it, but they're still there.
Offline
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
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
Got it! Mounting them under /mnt in fstab did it. Thanks again for your help, people.
Offline