Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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'm having a problem with CodeBlocks.

I can't run any C++ code and every time i try, I get the following error in terminal

Process returned 126 (0x7E)`

I googled it and found this link:

sudo nano /etc/fstab
  • find the line which says NTFS somewhere on it.
  • find the part of this line which says "user"- it's under the header
  • change "user" to "user,exec"- remove any "noexec"s
  • Ctrl-X and save when asked

But when i followed the first steps, fstab didn't appear so I can't follow the next steps required to fix the problem.

How can I fix this problem in a simplest way? How should i open fstab that is required?


share|improve this question

since there's some time since you posted this question, you probably already found a solution, but since no one said anything about it, I'll leave this comment to help anyone who come across this problem. You should use gedit instead of nano (gedit is the default text editor for ubuntu), and this solution will only work if you use dual boot, and are trying to save/execute your code on the ntfs partition. I'm having the same problem, but I dont have dual boot, no NTFS, my fstab have nothing of the stated stuff. =/

share|improve this answer

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.