Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Disable DEP/NX on Linux in Grub
Boot and interrupt the GRUB menu
Edit the boot configuration, changing the "linux" line by adding these two parameters to the end of the line:
noexec=off noexec32=off
Then boot by pressing Ctrl+x.
After booting, you can check to see if DEP/NX is turned off by running:
dmesg | grep NX
When DEP/NX is turned off you should see something similar to this output:
# dmesg | grep NX
[ 0.000000] NX (Execute Disable) protection: disabled by kernel command line option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment