LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub.lst, .conf locations (https://www.linuxquestions.org/questions/linux-newbie-8/grub-lst-conf-locations-217873/)

0perat0r 08-15-2004 10:11 AM

grub.lst, .conf locations
 
Would someone please tell me where these files are typically located? I did a search of my system, but came up blank:

grub.lst
grub.conf

Thanks in advance

arno 08-15-2004 10:23 AM

grub.conf can be found in

/boot/grub

look in /etc/fstab where to mount it

masand 08-15-2004 10:35 AM

have u installed grub package
and if u have done so then u should in the above location

regards
gaurav

0perat0r 08-15-2004 10:50 AM

changing grub
 
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.

thanks

arno 08-15-2004 11:50 AM

You only have to modify the grub.conf, menu.lst is a symbolic link to grub.conf.

By comment the rest out you are always able to restore them.

But have a look at

default=x

The default could point to the wrong selection

0perat0r 08-15-2004 03:19 PM

thanks...what does that line default=x do?

0perat0r 08-15-2004 03:58 PM

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



thanks

arno 08-15-2004 05:01 PM

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

0perat0r 08-15-2004 06:20 PM

thanks, Win XP is the default, but should I assume the default entry applies to the Linux only?

0perat0r 08-15-2004 09:29 PM

I manged to change this file with no problems. The entries are numbered 0-x from the top down. therefore, default=1 is now my Windows OS.

thanks again

Vikhyath 04-22-2011 06:53 PM

Grub.lst not found
 
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.

TobiSGD 04-22-2011 07:05 PM

Quote:

Originally Posted by Vikhyath (Post 4333107)
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.


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