How to run C ++ binaries on NTFS in Ubuntu 10.10?

Ubuntu 10.10 has just been installed. I used to have Ubuntu 10.04. I have a common partition between Ubuntu and Windows, which is NTFS. I store development files (Eclipse C ++ project files) in this section.

So, here is the problem: everything was fine from 10.04, but now I cannot run any of my programs that are in the NTFS partition. Eclipse says:

Error starting process. Exec_tty error:Cannot run program "/media/../Eclipse/Hello/Debug/Hello": Unknown reason 

When I try to execute it in the terminal, it says:

 bash: ./Hello: Permission denied 

I understand that this is a permissions issue, since the NTFS file system does not support Unix permissions, but how can it be that everything was okay on 10.04. Does this release include any restrictions on the NTFS file system?

Has anyone encountered a similar problem and knew how to fix this?

Thanks.

+6
linux eclipse-cdt file-permissions
source share
2 answers

The default mount options for ntfs file systems have probably been changed between versions of Ubuntu.

Locate the line in / etc / fstab that controls the mount point in question.

The first thing to try: Make sure the options bar does not contain noexec . If so, remove it, umount , unmount it and see if it fixes it for you.

If noexec was not there or you still cannot execute, then check if user or users one of the parameters. Since user implies noexec (usually), you may need to add (after user ) the exec option, so the result will look like this:

 user,exec 

If user present, try making this change, then umount and remount.

If at this point you still cannot complete, then add or set the following mount option in the options bar for the mount point:

 fmask=002 

This is probably overly permissive, but should be fine for a single user system. This tells mount that all files in the file system are considered executable by default by default. Now umount and install again and see if it works.

+8
source share

I agree, Ubuntu 10.10 has changed the default mount options for ntfs file systems.

Some people do this http://waystop.blogspot.com/2010/12/ubuntu-1010-maverick-meerkat.html

0
source share

All Articles