edit grub file 1

edit grub file

#You should add this option to /etc/default/grub, firstly:

sudo nano /etc/default/grub
#and then add nomodeset to GRUB_CMDLINE_LINUX_DEFAULT:

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
GRUB_CMDLINE_LINUX=""
#And then save by hitting Ctrl+O, then exit nano with Ctrl+X, then simply run:

sudo update-grub

Here is what the above code is Doing:
1. We’re adding the nomodeset option to the GRUB_CMDLINE_LINUX_DEFAULT option in /etc/default/grub.
2. We’re then running update-grub to update the grub configuration.

Similar Posts