LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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



Reply
 
Search this Thread
Old 08-15-2004, 11:11 AM   #1
0perat0r
Member
 
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126

Rep: Reputation: 15
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
 
Old 08-15-2004, 11:23 AM   #2
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
grub.conf can be found in

/boot/grub

look in /etc/fstab where to mount it
 
Old 08-15-2004, 11:35 AM   #3
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
have u installed grub package
and if u have done so then u should in the above location

regards
gaurav
 
Old 08-15-2004, 11:50 AM   #4
0perat0r
Member
 
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126

Original Poster
Rep: Reputation: 15
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
 
Old 08-15-2004, 12:50 PM   #5
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
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
 
Old 08-15-2004, 04:19 PM   #6
0perat0r
Member
 
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126

Original Poster
Rep: Reputation: 15
thanks...what does that line default=x do?
 
Old 08-15-2004, 04:58 PM   #7
0perat0r
Member
 
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126

Original Poster
Rep: Reputation: 15
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
 
Old 08-15-2004, 06:01 PM   #8
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
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
 
Old 08-15-2004, 07:20 PM   #9
0perat0r
Member
 
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126

Original Poster
Rep: Reputation: 15
thanks, Win XP is the default, but should I assume the default entry applies to the Linux only?
 
Old 08-15-2004, 10:29 PM   #10
0perat0r
Member
 
Registered: Jul 2004
Location: New Jersey, US
Distribution: Red Hat Linux WS version 3
Posts: 126

Original Poster
Rep: Reputation: 15
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
 
Old 04-22-2011, 07:53 PM   #11
Vikhyath
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Exclamation 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.
 
Old 04-22-2011, 08:05 PM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,650
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Quote:
Originally Posted by Vikhyath View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
need grub menu.lst example pk108 Mandriva 4 12-11-2004 07:45 PM
grub.conf vs. menu.lst netstv Linux - General 3 11-24-2004 07:19 PM
Grub, can someone posts their Menu.lst please webwolf70 cAos 6 10-21-2004 01:37 AM
grub.conf vs menu.lst linmix Linux - Software 2 08-26-2004 04:17 PM
grub.conf is menu.lst??? zombyLINUX Linux - General 4 03-31-2004 09:12 PM


All times are GMT -5. The time now is 04:26 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration