Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've recently switched to Debian for home use after using CentOS almost exclusively over the past few years. To edit the startup menu entries in Grub, I usually just edited menu.lst directly.
In a new Debian 6 install, menu.lst does not exist, and grub.cfg is generated automatically by update-grub. I looked through /etc/default/grub and /etc/grub.d to see if the menu options were present, but didn't find any.
What I want to do is add a 'vga=###' option to the kernel parameters. How can I do this using update-grub?
Being honest I have never tried to edit the vga mode. Here is the tutorial I use when trying to install or alter grub. It is from ubuntu but the rules should apply here also except you will have to use su - inplace of sudo for root permission.
Me too - that's a good article.
Additions to /etc/default/grub should be the answer. GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT are standard (supported) entries.
Then update-grub && reboot and everything is perfect!
Edit: I jumped the gun, GRUB_GFXMODE is only for the boot menu itself. I'm trying to find a way to set the console resolution (the resolution used after the OS has loaded).
Last edited by willroberts; 09-26-2011 at 11:12 PM.
The safe way to test this is to install another grub to a separate partition and then chainload the version you want to run the test on with a direct boot to the distro. If set freezes or something bad goes wrong delete the added grub or correct it and you are back in business. I did not have the time last night to try this.
(Yes I have to use wife,s set at night and she did not work last night.)
Last edited by Larry Webb; 09-27-2011 at 06:08 AM.
According to Ubuntus Grub2 tutorial this is where in /etc/default/grub that kernel paramters are enter.
#
GRUB_CMDLINE_LINUX
* Entries on this line are added to the end of the 'linux' command line (GRUB legacy's "kernel" line) for both normal and recovery modes. It is used to pass options to the kernel.
or
you could create a custom entry and and enter the kernel paramter there.
I know Slackware uses lilo, but on my system at home I chainload Slackware from ubuntu as well as having lilo install on the Slackware partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.