LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-05-2007, 04:24 PM   #1
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 490Reputation: 490Reputation: 490Reputation: 490Reputation: 490
Question 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
 
Old 05-06-2007, 10:31 AM   #2
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Blog Entries: 1

Rep: Reputation: 34
Smile

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.

Last edited by deepclutch; 05-06-2007 at 10:32 AM.
 
Old 05-06-2007, 01:24 PM   #3
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Original Poster
Rep: Reputation: 490Reputation: 490Reputation: 490Reputation: 490Reputation: 490
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
 
Old 05-06-2007, 08:14 PM   #4
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Original Poster
Rep: Reputation: 490Reputation: 490Reputation: 490Reputation: 490Reputation: 490
-- 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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't add Disk Mounter applet to panel (FC5 + GNOME) as987 Linux - Newbie 3 07-28-2006 09:57 AM
/proc/partitions showing wrong partitions netstv Linux - General 1 07-10-2006 02:11 PM
allowing non-root access to gnome's disk mounter hypermegachi Linux - General 4 05-09-2006 04:18 PM
disk partitions not showing up balvinder Linux - Hardware 1 05-05-2006 12:33 AM
More icons for gnome disk mounter applet pwalden Linux - Software 0 01-11-2005 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration