[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Squeeze: How to hide certain partitions in Nautilus



On 30/06/11 14:36, Hoang Le wrote:
> Dear Scott,
> 
<snipped>

> 
> Best regards,
> Hoang Le
> 
<snipped>

Dear Hoang Le,
              please don't top-post. It limits the number of emails I
can read. See:- http://www.netmeister.org/news/learn2quote2.html#ss2.3

I don't have Nautilus to experiment with - and I'm speculating that you
are referring to the "places" part of Nautilus - which refers to
available file systems, not necessarily mounted. Further, your fstab
doesn't mention those two partitions you want hid - so either udev is
creating those entries, or something like NTFS utils is. I suspect the
former.

So I'm "assuming" there are at least two approaches to a solution:-
1. modify the udev rule (are you comfortable with editing udev rules?)

2. create mount points in /mnt, add entries to fstab with noauto that
mount those partitions beneath /mnt.

NOTE: I don't know what those partitions are formatted as, I "assume"
it's ntfs and/or FAT32 - so I can't advise what you should put instead
of "unknown_filesystem" and "unknown_options" in the example below. If
you don't know the file systems or the appropriate options - post the
output of:-
# fdisk -l
If one or more of /dev/sda1 /dev/sda2 are ntfs formatted - please also
post the output of:-
# dpkg --get-selections | grep -v deinstall | grep ntfs

Example for approach 2:-
# cp /etc/fstab /etc/fstab.bak
# mkdir /mnt/sda1 /mnt/sda2
# rm /etc/fstab; nano /etc/fstab
and paste following into the blank fstab, then save it.
=======================================================
proc  /proc proc defaults 0 0
UUID=73b82a95-b080-4088-9c3d-1ff8445b2f68 /  ext4    errors=remount-ro 0   1
UUID=54330dab-8d32-4c99-a068-3bcb04f01b61 none  swap    sw   0   0
/dev/sda1 /mnt/sda1 unknown_filesystem unknown_options,noauto 0 1
/dev/sda2 /mnt/sda2 unknown_filesystem unknown_options,noauto 0 1
=======================================================
# mount -a

Open Nautilus and see if those pesky drives are still showing.

Cheers

P.S. If you wish to be CCed - please note it in your post.
-- 
"This is where we are at right now, as a whole. No one is left out of
the loop.
We are experiencing a reality based on a thin veneer of lies and illusions.
A world where greed is our God and wisdom is sin, where division is key
and unity is fantasy, where the ego-driven cleverness of the mind is
praised, rather than the intelligence of the heart."
~ Bill Hicks


Reply to: