You are not logged in.

#1 2017-12-16 15:03:47

readdeo
Member
Registered: 2017-12-16
Posts: 21

[SOLVED] Cant get exec permission on mounted ntfs from fstab

Hi!

I'm trying to mount an ntfs partition from fstab with execute permissions. My research showed that it should look like below, and i should put the exec to the end of the mount options to make sure it work. I cant find any answer to make it have the executable permission. Can you please point me to the right direction?

/dev/sda4 /mainData ntfs-3g defaults,rw,exec 0 0

Last edited by readdeo (2017-12-16 21:01:09)

Offline

#2 2017-12-16 15:16:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [SOLVED] Cant get exec permission on mounted ntfs from fstab

Everything has execute permissions on  ntfs-3g mounted drives for me, without explicitly mentioning exec. What's your actual issue? What is your end goal? Outputs of

mount
ls -l /mainData

Offline

#3 2017-12-16 15:31:08

readdeo
Member
Registered: 2017-12-16
Posts: 21

Re: [SOLVED] Cant get exec permission on mounted ntfs from fstab

MY problem is that i want to add a steam library folder on that partition and steam says, that the partition doesnt have execute permissions.

Output:

[readdeo@readdeo-arch ~]$ ls -l /mainData
total 1001020
drwxrwxrwx 1 root root      4096 Dec  8 19:05 '$RECYCLE.BIN'
-rwxrwxrwx 1 root root    784355 Sep 19 19:12  1505841154831.jpg
-rwxrwxrwx 1 root root   3278078 Nov  4 15:44  Arduino.zip
drwxrwxrwx 1 root root         0 Nov  1 19:20  Backup
drwxrwxrwx 1 root root      8192 Dec  8 16:45  Games
drwxrwxrwx 1 root root         0 Aug 26 10:40 'Imperium Galactica 2'
drwxrwxrwx 1 root root      8192 Dec 10 22:51  Programok
drwxrwxrwx 1 root root         0 Sep 20 14:31  Shared
drwxrwxrwx 1 root root      8192 Dec 12 05:44 'System Volume Information'
[readdeo@readdeo-arch ~]$

Last edited by readdeo (2017-12-16 15:31:25)

Offline

#4 2017-12-16 15:46:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [SOLVED] Cant get exec permission on mounted ntfs from fstab

Can you create files as your normal user? You might want to mount with your UID/GID explicitly mentioned. That said if we are talking Steam on Linux I'm fairly certain that they have quite a few issues with having a library on non POSIX attribute filesystems, an NTFS filesystem doesn't have the notion of a executable bit, and Steam tries to create explicitly executable files with chmod, which fails. A workaround is to create your steam library on a ext4 partition, then moving that to your NTFS drive and then leaving a symlink on the original ext4 partition, see e.g. here as well: https://github.com/ValveSoftware/steam- … issues/596

Offline

#5 2017-12-16 16:39:42

readdeo
Member
Registered: 2017-12-16
Posts: 21

Re: [SOLVED] Cant get exec permission on mounted ntfs from fstab

Looks like the mounted partition is read only. Tried this and no luck.

 UUID=01D3573ABD295A80 /mainData ntfs-3g uid=readdeo,gid=users,fmask=0000,dmask=0000,rw,exec 0 0

mount Output:

 /dev/sda4 on /mainData type fuseblk (ro,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096) 

Offline

#6 2017-12-16 18:36:12

readdeo
Member
Registered: 2017-12-16
Posts: 21

Re: [SOLVED] Cant get exec permission on mounted ntfs from fstab

[readdeo@readdeo-arch ~]$ sudo mount /dev/sda4 /mainData/
The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
Falling back to read-only mount because the NTFS partition is in an
unsafe state. Please resume and shutdown Windows fully (no hibernation
or fast restarting.)

This was the problem.
I just went to win 10, shut down properly and its working now. Thank you for everything!

Offline

#7 2017-12-16 18:59:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [SOLVED] Cant get exec permission on mounted ntfs from fstab

Yeah that is one you'll always have to be weary of on a dual boot system. Please mark as [SOLVED] by editing the title of your initial post.

Offline

Board footer

Powered by FluxBB