Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-05-2007, 04:24 PM
|
#1
|
Senior Member
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631
|
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
|
|
|
05-06-2007, 10:31 AM
|
#2
|
Member
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Rep:
|
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.
|
|
|
05-06-2007, 01:24 PM
|
#3
|
Senior Member
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631
Original Poster
|
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
|
|
|
05-06-2007, 08:14 PM
|
#4
|
Senior Member
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631
Original Poster
|
-- 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 06:35 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|