Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
There is a grub.conf and menu.lst file in the /boot/grub folder. OK, now that I've located them, I want to change these files so that I only see a choice for DOS and my latest kernel at the boot screen menu. Right now I see a choice for 3 different kernels. Do I need to change both of these? I think it requires commenting out the lines with of the older kernel listings.
What I mean is, I dont wnat to screw up this file, so that I cannot choose the desired OS. I need to know if default=x points to any particular choice, and what the consequences are of not geeting this configured correctly...
My grub.conf file is as follows:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdb2
# initrd /initrd-version.img
#boot=/dev/hda
default=3
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux WS (2.4.21-15.0.4.EL)
root (hd1,0)
kernel /vmlinuz-2.4.21-15.0.4.EL ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.21-15.0.4.EL.img
title Red Hat Enterprise Linux WS (2.4.21-15.0.3.EL)
root (hd1,0)
kernel /vmlinuz-2.4.21-15.0.3.EL ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.21-15.0.3.EL.img
title Red Hat Enterprise Linux WS (2.4.21-4.EL)
root (hd1,0)
kernel /vmlinuz-2.4.21-4.EL ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.21-4.EL.img
title DOS
rootnoverify (hd0,0)
chainloader +1
Every line with the entry title is boot environment.
and the line
default=3
makes
title Red Hat Enterprise Linux WS (2.4.21-4.EL)
the environment it will boot if you make no choice
Now if you "remove" boot environment 1 and 2 and don't change default=3 into default=1 you could have a problem
In my ubuntu Maverick meerkut, neither grub.lst nor menu.lst are found in the /boot/grub/ folder. I just see a grub.conf file.
Newer Ubuntu versions don't use Grub, they use Grub2. Grub2 use the grub.cfg file in /boot/grub, but this file is not intended to be modified by the user. Any change will get lost if grub or the kernel is updated. The configuration for Grub2 is done with files and scripts in /etc, mostly the /etc/default/grub file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.