How to Add “nomodeset” to Grub2 in Fedora and Ubuntu

I need to add nomodeset to make my GPU card work on Linux. Latest Fedora and Ubuntu and their derives use grub2.

How to add nomodeset permanently to grub2 on Fedora and Ubuntu?

The parameters grub2 will use are stored in its grub.cfg file. The grub.cfg file is generated from grub’s default settings file /etc/default/grub.

To update the kernel parameter in grub2, edit the /etc/default/grub file first. For adding nomodeset, add it to the line for GRUB_CMDLINE_LINUX_DEFAULT like

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

The regenerate the grub2 config file following this tutorial: and you will have the parameter added in grub2 for the kernel.

Eric Ma

Eric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

Leave a Reply

Your email address will not be published. Required fields are marked *