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 Ubuntu and Windows Vista installed on the same disk, different partitions.

I can access the Windows data, but each (first) time I access the NTFS partition, the system asks me for root password.

Can I somehow allow my user to mount/access those partitions automatically?

share|improve this question
Can you provide an example of your /etc/fstab? This may be as simple as providing the "user" option in your NTFS entry. – Scaine Jan 1 '11 at 11:20
up vote 8 down vote accepted
  • If you feel that you dont want to enter password on mounting and unmounting then one way is to edit sudoers file.

    sudo visudo

  • And you should add the following two lines at the end of your file.

    %username ALL=(ALL)NOPASSWD:/bin/mount
    %username ALL=(ALL)NOPASSWD:/bin/umount

    alt text

  • If you want to automount your drives at startup then install pysdm Install pysdm

    alt text

share|improve this answer
%username does not mean the user named username, it means the group named username; the % means treat the following word as a group. If you omit the %, it will be treated as a username. – geirha Apr 17 '11 at 9:15

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.