LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 03:24 PM   #1
vtel57
Member
 
Registered: Jul 2006
Location: Tampa, FL, USA
Distribution: Slackware64
Posts: 846

Rep: Reputation: 88
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, 09:31 AM   #2
deepclutch
Member
 
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 694
Blog Entries: 1

Rep: Reputation: 32
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 09:32 AM.
 
Old 05-06-2007, 12:24 PM   #3
vtel57
Member
 
Registered: Jul 2006
Location: Tampa, FL, USA
Distribution: Slackware64
Posts: 846

Original Poster
Rep: Reputation: 88
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, 07:14 PM   #4
vtel57
Member
 
Registered: Jul 2006
Location: Tampa, FL, USA
Distribution: Slackware64
Posts: 846

Original Poster
Rep: Reputation: 88
-- 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 08:57 AM
/proc/partitions showing wrong partitions netstv Linux - General 1 07-10-2006 01:11 PM
allowing non-root access to gnome's disk mounter hypermegachi Linux - General 4 05-09-2006 03:18 PM
disk partitions not showing up balvinder Linux - Hardware 1 05-04-2006 11:33 PM
More icons for gnome disk mounter applet pwalden Linux - Software 0 01-11-2005 03:58 PM


All times are GMT -5. The time now is 09:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration