Red HatThis forum is for the discussion of Red Hat Linux.
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.
If my question has been answered there, I didn't see it. I have several kernal versions, 3, listed in the GRUB menu. There is one which operates in the most stable manner, but it isn't the default, it is the third in the list. Is there a way to change the order of the list or change the default item which will boot?
in the Similar Threads section.... So I've discovered the file "/boot/grub/grub.conf" and at the top it says "default=0" - Now I think I just need to know what the "0" represents, and how to find the int value for the kernal I wish to use...
Should I just edit the list, by moving things around... Cut the kernal item from the third position and paste it to the first position...Would that make it position "0"...
I think I'll wait for feedback before messing with this. I don't want to damage something...
So if 0 is the first entry, and I need to start from 0 for the first entry....
Should I change default=0 to default=3 or should I cut the kernel item from third to the first entry where it
will become '0'?
Thank you for taking the time to respond to my question. I really appreciate your willingness to help.
Respectfully, I'm worried when you say "try". Have you ever done it? Could I damage something which would prevent me from booting into Red Hat? That's a huge risk for me.
hi
yes i have tried out both in lilo as well as grub
why is this a risk for u ????
also you need to play off with grub if and only if u have a bootup floppy or
the 1st cd of the distro
in case something goes wrong u need that to recover
Originally posted by masand hi
yes i have tried out both in lilo as well as grub
why is this a risk for u ????
also you need to play off with grub if and only if u have a bootup floppy or
the 1st cd of the distro
in case something goes wrong u need that to recover
regards
gaurav
Hm. Thanks again, but I'd rather not need to "recover". It's not worth it.
Any second/third opinions or direct experiences are welcome.
Originally posted by lel800 Hm. Thanks again, but I'd rather not need to "recover". It's not worth it.
Any second/third opinions or direct experiences are welcome.
hi there
what i was saying is that u should be ready for all consequences
otherwise fidling with grub/lilo always do not land u in right place
i myself have not been so lucky!!!!
so take a wise decision
Yes I found that first link to have the information I needed.
I registered with the Red Hat website and then I could search for the proper question.
Here is a copy of what I found on the site.
-- Begin Copy ----
Solution:
Use the command grubby --bootloader-probe to find out which bootloader you have installed. Then, assuming it is GRUB, edit the file /etc/grub.conf as follows:
title Red Hat Enterprise Linux ES (kernel number zero)
<indented> root (hd0,0)
<indented> kernel /vmlinuz-zero ro root=/dev/hard_drive
<indented> initrd /initrd-zero.img
title Red Hat Enterprise Linux ES (kernel number one)
<indented> root (hd0,0)
<indented> kernel /vmlinuz-one ro root=/dev/hard_drive
<indented> initrd /initrd-one.img
title Red Hat Enterprise Linux ES (kernel number two)
<indented> root (hd0,0)
<indented> kernel /vmlinuz-two ro root=/dev/hard_drive
<indented> initrd /initrd-two.img
In this example file, notice the line at the top that reads default=0. The number 0 (zero) indicates which stanza to select by default. A stanza is the indented portion after the line starting with title. GRUB will then use this default stanza to boot, after a number of seconds has passed (specified in the line timeout=10). The 0 (zero) in this case is referring to the first stanza that starts with "title Red Hat Enterprise Linux ES (kernel number zero)". It includes all of the indented lines up to but not including the next "title" line.
For example, if you instead wanted the second stanza, "title Red Hat Enterprise Linux ES (kernel number one)", to be the default, then you would change the default line to:
default=1
Once you have made this change, save the grub.conf file and your done. You do not need to reload GRUB for the changes to take effect. The next time you boot, your changes will take effect, but once the file is saved, the changes are effective.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.