Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Beside Ubuntu i also have an Arch installation. I plan to maintain the grub-configuration from my Ubuntu. The whole update-grub - grub-mkconfig - os-prober-chain works just fine. I know I can set GRUB_CMDLINE_LINUX for options to be passed to the kernel in /etc/default/grub. But how would I possibly specify that per kernel / kernels on a specific partition?

Neat would be having a little text-file beside a kernel image that is evaluated by the tool-chain, but i guess that's some serious hacking through the chain.

share|improve this question

Copy the op-prober entry into 40_custom and edit to have the paramaters you want. Then turn off os-prober.

sudo cp -a /boot/grub/grub.cfg /boot/grub/grub.cfg.backup
gedit /boot/grub/grub.cfg

Copy them to and edit to have only entries you want:

gksudo gedit /etc/grub.d/40_custom

Then do:

sudo update-grub

If above works then turn off os-prober.

In /etc/default/grub I added this:

gksudo gedit /etc/default/grub


or turn off executeable bit

sudo chmod a-x /etc/grub.d/30_os-prober
sudo update-grub
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.