Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a luks setup with encrypted partition. And I don't want everyone on my computer to see that I have such partition. Unfortunately it shows up in the nautilus "devices" panel as "Encrypted partition".

Is there a way to prevent it from showing there? I managed to setup authentication with usb key and I don't want the encrypted partition show in the panel.

share|improve this question

You can just add it to /etc/fstab (this will cause it to be mounted automatically at startup). If you specify a mount point outside /media you don't see it in Nautilus anymore.

For those who don't know how to do this here's an example:

If you had a logical volume /dev/sda2 of the filesystem-type ext3 that you want to mount to a directory Music, because it contains your Music, you have to add the following new line to /etc/fstab:

/dev/sda2 /mnt/Music ext3 defaults 0 0

For other filesystems or names you just edit this line. Then, you save the file, make the mount point with sudo mkdir /mnt/Music, or whatever you want to name the mount point. If you don't want to reboot to see the change, just once execute sudo mount -a.

share|improve this answer
if you have bound-mounts in fstab, like /home/username/some/path /home/username/some/other/path auto auto,uid=username,gid=users,bind 0 0, they still appear in Nautilus. – sastanin Sep 27 '12 at 8:58

To avoid command line, you can open Applications > Disks.

Select the partition you want to hide, click on the gear icon ("additional partition option") > Edit Mount Options and unchecked "Show in user interface". Reboot, the partition is now hidden.

Tested on Ubuntu 16.04 LTS

share|improve this answer

Your Answer


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.