Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Summary:

How do I remove folders mounted via bind or bindfs in /etc/fstab from appearing as devices in nautilus left column, the "places" view?

detailed:

Hello,

I mount various directories from my data partition via bind in /etc/fstab in my home directory, eg like this:

 #using bind:
 /mnt/sda5/bazon/Musik   /home/Bazon/Musik   none   bind,user   0 0
#or using bindfs
bindfs#/mnt/sda5/tobi/Downloads /home/tobi/Downloads fuse user 0 0

(Background: /dev/sda5 mounted to /mnt/sda5 is my old home partition, but I do not want to mount it as a home partition, as I always have at least 2 Linuxes on the computer ...)

That works well, but since 12.10 every one of those items is listed in Nautilus in the left column under "Devices". (Where normally USB drives appear, etc.) This is a waste of space (as I have many of such mounts...) and so I would like to have these mounts hidden, just as it was before in 12.04. How can I do that?

Thanks!

share|improve this question
    
Are you using Nautilus 3.6 from the Gnome PPA? 12.10 uses the same Nautilus that is in 12.04, so you should not have this problem if you are using the right version of Nautilus. –  RolandiXor Sep 27 '12 at 15:38
    
It's nautilus 3.4.2 from the official ubuntu repositories, no other PPA is used. So maybe something else caused it? –  Bazon Sep 28 '12 at 16:24
add comment

2 Answers 2

up vote 5 down vote accepted

if you mount the partition somewhere other than /media or /home and symlink to it, the nautilus buttons would disappear

share|improve this answer
1  
Years ago, I tried that before and ran into some problems because some programs didn't recognize the symlinks as folders. Because of your answer, I tried it again and don't have problems so far... and I should add: mounting to /mnt isn't displayed in nautilus either. –  Bazon Sep 28 '12 at 16:25
    
i have the same problem now in quantal but not in precise. Why I have to mount my Music partition not in home? in precise there wasn't this problem! –  flux Sep 29 '12 at 13:56
    
if you read the question you will notice that this problem is related to quantal (12.10) when he said "That works well, but since 12.10 every one of those items is listed in Nautilus in the left column under "Devices"" –  user91632 Sep 29 '12 at 14:56
add comment

My workaround is to remove "read for all" attribute from /etc/fstab. Open a terminal (Ctrl+Alt+T) and type:

sudo chmod a-r /etc/fstab

Then you should restart.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.