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 in my /etc/fstab file this line in order to mount my Windows ntfs partition:

/dev/sdb1 /media/sdb1  ntfs rw,noauto,users,permissions 0 2

I've changed the owner using chown and set the permissions to 777 using chmod.

If I make an ls -lt it shows the owner and the permissions properly changed.

However I still don't have permissions for writing there, if I execute mkdir test it says:

mkdir: cannot create directory `test': Permission denied

Any suggestions?


I found the solution, these are the steps I followed:

  1. Type sudo blkid
  2. Get the UUID related to your ntfs partition.
  3. Change the /etc/fstab file adding this line:

    UUID="your UUID" /media/"any name" ntfs users,defaults 0 0

share|improve this question
Have you tried chown -R username:username /media/sdb1? That'll give it read write acess. – drN Oct 27 '12 at 15:18
Yes, I've tried that, the ownership is properly set – rfc1484 Oct 27 '12 at 16:38
that is rather strange because I didn't need to cchange anything in my fstab. However, I'll take a look and post my fstab here. – drN Oct 27 '12 at 17:06
When I connected my external hard drive and checked my /etc/fstab I didn't see any entry for my external hard drive. Did you use this HDD in a mac previously? If so, you'll have to turn off journaling. If not, despite the fact that you might get a little frustrated by this answer, check to see if you made any sytanx error in chown -R username:username /media/sdb1. – drN Oct 27 '12 at 17:08
Do these work? Seems to be a similar problem to what you describe in these 3 links: 1 2 3 – drN Oct 27 '12 at 17:13
up vote 6 down vote accepted

You can specify owner of the partition using uid and gid options:

/dev/sdb1 /media/sdb1  ntfs rw,noauto,users,uid=1000,gid=1000,permissions 0 2

Note that uid and gid values are numeric. If you are not the only user of the box you can discover those values by id command.

share|improve this answer
Is this necessary? I didn't have to add these options to my fstab. All I had to do was to chown the contents of /media/myNTFShardrive – drN Oct 27 '12 at 20:15
@drN That is an option, but not a very good one. – Marcel May 16 at 1:50

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.