LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Too Many Partitions Showing in Nautilus and Disk Mounter (https://www.linuxquestions.org/questions/debian-26/too-many-partitions-showing-in-nautilus-and-disk-mounter-551569/)

vtel57 05-05-2007 03:24 PM

Too Many Partitions Showing in Nautilus and Disk Mounter
 
OK, here's my problem...

I only seem to be experiencing this problem in Debian. I cannot duplicate it in any of my other Gnome distros (Ubuntu, Fedora, SuSE). In Nautilus, in computer:///, all my partitions (even SDA RAID) are being displayed. I've checked the Disk Manager. None have mount points, yet they're still being displayed. They're also displayed in my Disk Mounter applet, which makes it pretty much useless to me. Is there some way to make Nautilus not display these partitions. They are not in my fstab either. All I want displayed in Nautilus and the Disk Mounter are floppy, Zip drive, CD/DVD, /, /home, and /media/archive (a vfat storage partition).

Anyone have any ideas? This may be more of a Gnome issue than a Debian issue.

Thanks,

~Eric

deepclutch 05-06-2007 09:31 AM

there is a handy tool called gconf-editor.hope u got it installed.through it u can show or hide this behaviour.but sometimes even ur pendrive if mounted will not be shown.what i did was i searched from gconf-editor and got this results.
/apps/nautilus/desktop/volumes_visible,untick it.
just check below link:
http://ubuntuforums.org/showthread.php?t=393861

err,I got it all wrong.but again ur problem of seeing these files mounted as diff partn can be solved via gconf.hope someone more knowledgeable arrives.

vtel57 05-06-2007 12:24 PM

Thanks for that tip, but I'm very familiar with gconf-editor. There isn't any function in that app that controls the view of the computer:/// in nautilus, unfortunately. Believe me, I've tried. *shrugging* Maybe I missed something in there that someone else knows about, though. I'll wait and see if anyone else has any ideas.

Thanks! :)

~Eric

vtel57 05-06-2007 07:14 PM

-- RESOLVED --

I fixed it! :) Here's how:

1) In terminal:

Code:

# mkdir /usr/share/hal/fdi/preprobe/95userpolicy
*use sudo in Ubuntu

2) In terminal:

Code:

# gksudo gedit /usr/share/hal/fdi/preprobe/95userpolicy/10ignore-disks.fdi
*use sudo in Ubuntu

3) In gedit:

Create an a script that forces hal to ignore certain drives/partitions on your system at startup. Here's an example of mine:

Quote:

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="block.device" string="/dev/hda1">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/hda2">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/hda7">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/hda8">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/hda9">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/hda10">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/hda11">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/hda12">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/hda13">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/hda14">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/hda15">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/hda16">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/sda1">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/sda5">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/sda6">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/sda7">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/sdb1">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/sdb5">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/sdb6">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
<device>
<match key="block.device" string="/dev/sdb7">
<merge key="info.ignore" type="bool">true</merge>
</match>
</device>
</deviceinfo>
Wherever you see "/dev/...", this is the partition that I'm forcing hal to ignore. Just use my script and add your own partitions. Delete all the entries that you don't need, but be sure to leave the </deviceinfo> tag at the very end.

4) Save your gedit file... just click "Save". It's already set to save in the proper location.

5) Reboot.

Your unwanted icons on the desktop and in Nautilus --> Computer should now be gone.

Enjoy!

~Eric

PS: Credit for this goes to the following:

http://www.g-loaded.eu/2005/09/19/a-...-approach-hal/

http://bbs.archlinux.org/viewtopic.php?pid=203817

http://gnomesupport.org/forums/viewtopic.php?t=11831


All times are GMT -5. The time now is 01:36 PM.