15

I have an ext4 partition that I mount using the following fstab line

UUID=41dec246-654d-4e35-9d4e-68150e40c5b0 /mnt/Data     ext4    defaults,user      0      2

But then I realized that I can't execute from that partition. I checked my mount options and they were: rw,noexec,nosuid,nodev

So I changed the mount options to be more explicit as follows:

UUID=41dec246-654d-4e35-9d4e-68150e40c5b0 /mnt/Data     ext4    rw,suid,dev,exec,auto,user,async      0      2

But the partition still mounts with the same options (rw,noexec,nosuid,nodev).

I'm running Ubuntu 14.04 and I'm using UEFI booting. I'm also dual-booting with Windows 8.1

1
  • 3
    user implies noexec and order count so auto,user,exec if you need dev or suid or rw add them
    – Panther
    Sep 27, 2015 at 3:03

1 Answer 1

32

Change that line to

UUID=41dec246-654d-4e35-9d4e-68150e40c5b0 /mnt/Data     ext4    rw,suid,dev,auto,user,async,exec      0      2

The position of exec is important, since user also applies noexec. By putting exec after user, you ensure that exec is set. The most important options should be listed last.

1
  • 3
    This was the key to solve my problem. I had exec first and all my problems went away after moving it to the end.
    – endyourif
    May 13, 2018 at 17:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.