LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   # kopt in grub's menu.lst (https://www.linuxquestions.org/questions/ubuntu-63/kopt-in-grubs-menu-lst-520401/)

MacHamster 01-18-2007 02:01 AM

# kopt in grub's menu.lst
 
Hello,

I've just moved from Debian to Kubuntu. The transition has gone flawlessly except for this one issue with the way the # kopt line is treated in /boot/grub/menu.lst

I have machines with several different kernels installed. I need to pass the same kernel boot parameters to each kernel version.

Under Debian, I used to do this by editing menu.lst and adding the parameters to the line starting # kopt. I would then run update-grub and each kernel line would then contain my additions.

This doesn't work under Ubuntu though, my changes to the # kopt line are completely ignored. According to the comments in menu.lst, update-grub ignores the default kernel options, so this appears to be correct behaviour for Ubuntu.

My question is thus: Under Ubuntu, how do I replicate the behaviour of the # kopt line as it works under Debian? How do I get my additions to be added to the kernel line of *every* kernel in my menu.lst?

Thanks!

H.

m_yates 01-18-2007 07:50 AM

In my case, the changes are made in the line starting with "# kopt_2_6". I just tried it. The kopt lines in grub initially were:
Code:

# kopt=root=UUID=e5e0a193-08a6-44fe-b937-8680e042b982 ro
# kopt_2_6=root=/dev/hda1 ro

If I change it to:
Code:

# kopt=root=UUID=e5e0a193-08a6-44fe-b937-8680e042b982 ro
# kopt_2_6=root=/dev/hda1 ro vga=791

Then run "update-grub", all the kernel lines now have the "vga=791" option.

MacHamster 01-19-2007 10:15 AM

Thank you very much for that, you solved the problem!!!

Much appreciated.

H.


All times are GMT -5. The time now is 08:37 PM.