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

Possible Duplicate:
How to make Ubuntu ask for password when mounting partitions?

I've installed Ubuntu on a PC with Windows 7. Now since I want to make that PC a VPN server under Ubuntu I've made the login require no password (Windows still has a password). This makes it easy for anyone to see my Windows files. Can I make them inaccessible (and not visible) from Ubuntu. Sort of like making Ubuntu and Windows two separate systems with their own files on the same hard drive. Thank you! :)

share|improve this question

marked as duplicate by Raja, Ringtail, Web-E, gertvdijk, Javier Rivera Jan 2 '13 at 17:07

This question was marked as an exact duplicate of an existing question.

I am sure that gonna help you, you lock that specific windows drive and nobody else can get to see those partitions except you. – Raja Jan 2 '13 at 15:08
Yes. That will work. Thank you :) – dukenukem Jan 2 '13 at 15:21
you are welcome. – Raja Jan 2 '13 at 16:17

I would mount them with umask=0077 so only root can read/write them. Then they also stop showing up on the launcher for other users.

The Windows partition will always be visible to someone with root privileges, so this is as close to having them as separate systems as you'll be able to get.

For instance, I have the following line in my /etc/fstab to protect my Recovery partition:

/dev/sda8 /mnt/Restore ntfs defaults,ro,umask=0077 0 0
share|improve this answer

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