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.

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

1 Answer 1

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

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.