noexec argument returns automatically

  • I have manually edited my fstab file in a few different ways. Most of these changes are persistent, but it seems that one of my changes is automatically reverted (upon reboot, I assume). I have one non-system SSD and have chosen to remove the noexec argument, but I find that this option reasserts itself. Am I experiencing a bug, or is this working as intended? Either way, how do I prevent it?

  • You can't manually edit /etc/fstab within the [openmediavault] stanzas and have the changes stick if what you are setting is a non-default value.


    What you want to do is edit the /etc/default/openmediavault file and make the change in the appropriate OMV_FSTAB_MNTOPS environment variable, and then run:


    omv-mkconf fstab


    This will push the change into fstab and it will stick.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 5.x on Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 16GB ECC RAM.

  • Changing the environment variable helps with new filesystems but you will need to change the mntent section of config.xml and then do omv-mkconf fstab to change existing filesystems.

    omv 6.0.5-2 Shaitan | 64 bit | 5.13 proxmox kernel | omvextrasorg 6.0.4 | kvm plugin 6.0
    omv-extras.org plugins source code and issue tracker - github


    Please read this before posting a question.
    Please don't PM for support... Too many PMs!

  • To avoid messing with database (wrong closing tags or chars) use omv-confdbadm


    https://openmediavault.readthe…ml#omv-confdbadm-database


    If you changed several lines in between the tags of fstab, then all of those lines will get rewritten (not just one line) but not on reboot, only certain events using the webui: adding, removing fs and adding or removing NFS shares.
    In your case only one line gets reverted so i don't know what's going on, maybe you left a script there at boot for writing those changes

  • Thanks for the tips, gentlemen. @subzero79 - I actually don't have any scripts at the moment, this is a pretty fresh install of 4.x. The other changes I made were the ones for the flash memory plugin which have persisted. I wasn't even paying attention to what lines were within the tags. Thanks for your responses.

  • If your rootfs was mounted noexec OMV couldn't run at all. You have other problems.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 5.x on Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 16GB ECC RAM.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!