PDA

View Full Version : [SOLVED] Making Grub parameters permanent



Quixotic Hacker
August 9th, 2010, 02:52 AM
Each time I boot I have to do two things:
1. Remove the 'quiet splash' parameter;
2. and replace it with pci=nomsi

Is there a way to make Grub boot like this automatically each time I reboot? If so, how?

bodhi.zazen
August 9th, 2010, 02:57 AM
Each time I boot I have to do two things:
1. Remove the 'no splash' parameter;
2. and replace it with pci=nomsi

Is there a way to make Grub boot like this automatically each time I reboot? If so, how?

Add those options to the kernel line in /etc/default/grub

The default reads GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

See https://wiki.ubuntu.com/Grub2 for details

drs305
August 9th, 2010, 02:58 AM
You should be able to open /etc/default/grub and make those entries on the following line:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
Edit the file as root and make it look like this:

GRUB_CMDLINE_LINUX_DEFAULT="pci=nomsi"

I'm not familiar with the specific setting you want to add, but if you make that change and then run "sudo update-grub" it should incorporate it into the grub menu parameters.

bodhi.zazen
August 9th, 2010, 03:03 AM
You should be able to open /etc/default/grub and make those entries on the following line:

Edit the file as root and make it look like this:


I'm not familiar with the specific setting you want to add, but if you make that change and then run "sudo update-grub" it should incorporate it into the grub menu parameters.

I would use
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=nomsi"

If you remove the quiet you will get more messages from the kernel as you boot (more messages flashing on the screen) and if you remove splash you will not get a boot splash (I think, although I am not positive with plymouth).

As far as kernel boot options:

http://www.kernel.org/doc/Documentation/kernel-parameters.txt


nomsi [MSI] If the PCI_MSI kernel config parameter is
enabled, this kernel boot option can be used to
disable the use of MSI interrupts system-wide.

although that is probably Greek to most :twisted:

http://www.linuxtopia.org/online_books/linux_kernel/kernel_configuration/ch10.html

Quixotic Hacker
August 9th, 2010, 03:04 AM
Thanks for the suggestions, all. I will let you know if I get it to work.

Quixotic Hacker
August 9th, 2010, 03:27 AM
Reboot went smooth. Thanks for the help.

scott8035
April 27th, 2011, 04:12 PM
We're using 10.10-server. We had the same desire to make grub boot changes permanent. We updated /etc/default/grub, and update-grub propagates those changes into /boot/grub/grub.cfg, but not into menu.lst. It appears to use menu.lst as the source, so our change doesn't show up as a linux parm when booting. Any ideas?

drs305
April 27th, 2011, 10:08 PM
...but not into menu.lst. It appears to use menu.lst as the source, so our change doesn't show up as a linux parm when booting. Any ideas?

You can edit /boot/grub/menu.lst in the same manner. Add the options to the end of the kernel line in the menu item you wish to change and save the file.

IIRC you can also add it to the "# kopt" in the upper part of menu.lst so it is added if updates actually update grub legacy and grub 2. Do not remove the # at the start of the "# kopt", it's not a comment symbol.