When ever I try to load ubuntu like using the command:
sudo sh ~/Downloads/crouton -t unity
I will get the error:
sh: 0: Refusing to exec /home/chronos/user/Downloads/crouton from noexec mount
if anyone can help or relate please please help I am stuck here
The disk partition you're trying to execute from has been mounted with the
noexec
option (seeman 8 mount
or https://linux.die.net/man/8/mount ), which forbids execution of binaries. Eithercp
the file to a directory on a partition mounted withexec
(withoutnoexec
), or fix the way it's mounted.You are not able to execute the script since that is "nonexec mount" which means no scripts can be executed from there. To solve this, give your downloads directory exec permissions with the above command.
The above line of code unmounts and remounts your downloads directory with exec and dev permissions so that scripts can be executed from your downloads directory.
The sudo at the beginning is for root permissions, then the remount statement gives it exec, suid and dev permissions and also disables nosymfollow(but that part is optional) and then I mention the name of the directory, which is your downloads.