LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-18-2007, 02:01 AM   #1
MacHamster
LQ Newbie
 
Registered: Sep 2006
Distribution: Kubuntu
Posts: 16

Rep: Reputation: 0
# 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.
 
Old 01-18-2007, 07:50 AM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
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.
 
Old 01-19-2007, 10:15 AM   #3
MacHamster
LQ Newbie
 
Registered: Sep 2006
Distribution: Kubuntu
Posts: 16

Original Poster
Rep: Reputation: 0
Thank you very much for that, you solved the problem!!!

Much appreciated.

H.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Explain my Menu.lst Johnny Faster Ubuntu 5 06-22-2006 10:29 AM
please post your menu.lst from fc3 kahn Fedora 12 08-25-2005 07:08 AM
need grub menu.lst example pk108 Mandriva 4 12-11-2004 06:45 PM
grub.conf vs. menu.lst netstv Linux - General 3 11-24-2004 06:19 PM
Need help adjusting my menu.lst file herkdrvr Linux - General 1 10-15-2004 07:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration