How to edit a kernel parameter in fedora >=18 (f-18, f-19..etc) versions? Or in grub 2 ?

Hmmm.. grub2 looks really strange to me ! .. In earlier versions of ‘grub’ it was really easy to manage. for example if you we want to edit a kernel parameter, get into /boot/grub/grub.conf and change the entry.. thats it.. but I failed to do that in my fedora 19 system with grub2.

This article may be a silly one for grub2 experts.. how-ever nothing stopping me to share it for newbies like me 🙂

Lets examine important locations of grub2.

Those are ‘/etc.grub.d/’ and ”/etc/default/grub’..

Lets see what are inside it:

So, grub2 have its scripts in more modular format as shown above.. Lets..

So, second location is ‘/etc/default/grub’ file.

Whats inside it ?

I would like to add a kernel parameter to my kernel command line.. may be ‘edd=off’ :

For that, I edited it in GRUB_CMDLINE_LINUX value..

Once you do that, you have to generate the new configuration by using grub2-mkconfig command..

How-ever the above output have to be recorded inside ‘/boot/grub2/grub.cfg’.. for that you can use -o switch of grub2-mkconfig as shown below:

Lets cross verify whether it reflected in the configuration setting by:

Coooooooool, hope it helps..

Leave a Reply

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