I have a 20 GB NTFS volume that I was planning on using for a variety of purposes, including being readable by windows with little effort.
Unfortunately, for some reason, I cannot execute any files on the drive, even after following the answer here (I was able to mount the volume just fine, but the error persists).
How can I fix this?
Output from mount:
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
none on /sys/fs/pstore type pstore (rw)
systemd on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,none,name=systemd)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=daniel)
The default umask for mounting NTFS does not allow execute, so I would add umask=0222 to your mount options
so based on the example in the link you followed:
would become:
You can configure it with a GUI, install:
And then run it from the launcher (search for ntfs).
It will add your ntfs partitions to /etc/fstab so they're mounted on startup. You can choos having read/write access too.
Effectively, from the automatically mounted nfts partition I cannot run any executable. In this case the system mount it as:
I copied a executable in it and it did not work --- permission denied and it is impossible to add the "x" permission to the file.
One solution is manually mount the disk like this:
(this mount the filesystem owned by root, you can use
uid=<your uid>
to mount it as you, and you can add it to/etc/fstab
to automatically mount it). Now it works:The bad thing is that now all files are executable. Probably this is impossible to solve, given that NTFS does not have the "executable bit" concept. If you do
chmod -x /mnt/trova
nothing happens.Notice that the
exec
option in themount
command should be the last in the list, because a lot of options (user
for example) has a defaultnoexec
embedded.