How do I hide CIFS volumes in the Places menu?

  • You can hide the volumes in Places Menu.Type the following in terminal to create a new file hide-partitions.rules under /etc/udev/rules.d

    sudo gedit /etc/udev/rules.d/hide-partitions.rules

  • Now copy/paste the following to hide-partitions.rules

    ACTION!="add|change", GOTO="hide_partition_end"
    SUBSYSTEM!="block", GOTO="hide_partition_end"
    KERNEL=="loop*|ram*", GOTO="hide_partition_end"
    KERNEL=="sda5", ENV{UDISKS_PRESENTATION_HIDE}="1"
    LABEL="hide_partition_end"

  • Save the file and close it.

  • Now we are going to hide the partition sda6(Stuffs) from Places Menu. alt text

  • Edit the fstab file

    sudo gedit /etc/fstab

  • Put a # in front of the line

    UUID=B630D52430D4EC7D /media/sda6 ntfs-3g defaults,locale=en_IN 0 0

  • So it becomes

    #UUID=B630D52430D4EC7D /media/sda6 ntfs-3g defaults,locale=en_IN 0 0

  • Save the file.

  • Reboot the sytem.

  • Now the volume Stuffs will be removed from the Places Menu.
    alt text


@fluteflute: The answer in the question you linked helped guide me to a workable solution. What I ended up doing was changing the mount points from my /home folder to the /mnt folder in the /etc/fstab file and then replacing the folders in my home directory with symbolic links to the mounted locations.

ln -s /mnt/documents/ /home/ramon/Documents

It's all good now! My Documents, Video, Music, and Pictures folders no longer have duplicate entries in the places menu and are still mapped to the remote file system on my server. Thanks for the help guys.