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 an NTFS drive mounted in a folder /Tejas i have created a new project using it in a folder in this drive but i am unable to save the changes, i get the following error message

Couldn't save project /Tejas/Project/codeblock/ciphers/ciphers.cbp
(Maybe the file is write-protected?)

i get similar message even when i try to save the c source file

i am able to edit and save files using gedit editor... why am i getting this problem?
i have modified my fstab and added this line

/dev/sda5/Tejas ntfs uid=1000,gid=1000,defaults,umask=000 0 0

but it still doesn't seem to work not working

share|improve this question
up vote 1 down vote accepted

I found this thread and perhaps can save you from all this.

It is marked as SOLVED So it will surely solve your problem.

Q. Why I just put link here?
A. It doesn't worth copy and paste things.

Edit 1 : it should be like this,

/dev/sda5 /media/Tejas ntfs defaults,uid=YYYY,gid=XXXX,umask=007 0 0

YYYY your user id, XXXXyour group id.

create folder Tejas if it's not there in /media/ by issuing

sudo mkdir /media/Tejas

Edit 2 : you can try

/dev/sda5 /media/Tejas ntfs-3g defaults,umask=000 0 0


/dev/sda5 /media/Tejas ntfs-3g defaults,uid=YYYY,gid=XXXX,umask=007 0 0
share|improve this answer
is this correct /dev/sda5/Tejas ntfs uid=1000,gid=1000,defaults,umask=000 0 0 – ths Jun 2 '12 at 17:43
/dev/sda5 /media/Tejas ntfs defaults,uid=1000,gid=46,umask=007 0 0 – virpara Jun 2 '12 at 17:48
uid= your user id, gid= your group id – virpara Jun 2 '12 at 17:49
create folder Tejas if it's not there in /media/ by issuing sudo mkdir /media/Tejas – virpara Jun 2 '12 at 17:50
all the mounting stuff is working i can access files even create and delete files documents etc... but code blocks says that it cant save files. i have put uid and gid from the command "id username" – ths Jun 2 '12 at 18:20

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.