LinuxQuestions.org
Register a domain and help support LQ
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 11-14-2004, 01:02 PM   #1
CodeFish
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake
Posts: 11

Rep: Reputation: 0
Whereis lilo.conf?


Hello,

I am trying to locate lilo.conf so that I can compile my kernel. In the readme file it states:
"If you boot Linux from the hard drive, chances are you use LILO which
uses the kernel image as specified in the file /etc/lilo.conf. "

but when I check the /etc/ directory using ls -al there is no lilo.conf file.

I have tried using whereis:

whereis lilo.conf

but all that comes back is

lilo.conf:

Any help would be appreciated.
Thanks,
CodeFish
 
Old 11-14-2004, 01:03 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
If you have no lilo.conf, your most likely using grub.. which I do believe is default now with Mandrake.
 
Old 11-14-2004, 01:07 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
lilo.conf is not required to compile your kernel. There are other programs that have the same function (called boot managers). Second most popular to LILO i GRUB. You usually choose between them during installation. I guess you have grub. To check it look at your package list. You can do it this way
rpm -qa|grep lilo
Will list you all lilo-related packages (or don't list anything if there's noting to show). For grub
rpm -qa|grep grub
One of the lists should not be empty. That's the program you have. Grub configuration file should be /etc/grub.conf (it has different syntax than lilo's).
 
Old 11-14-2004, 03:33 PM   #4
mikek
LQ Newbie
 
Registered: Feb 2004
Posts: 7

Rep: Reputation: 0
find

find / -name lilo.conf
 
Old 11-14-2004, 06:12 PM   #5
amfoster
Member
 
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 35
find / -name "lilo.conf " -o -name "grub.conf"
 
Old 11-14-2004, 08:30 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
locate lilo.conf

or

locate grub.conf

But I'm still guessing lilo isn't installed.. he'll need to look for grub.conf in /etc

And also, doing a search on the / drive is a bad way to search without narrowing it down.. locate will do a much better job and find the particular file faster and use less resources in the process.
 
Old 11-14-2004, 10:01 PM   #7
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
I use lilo with Mdk 10.1. You do have the choice. My brief experience with grub was both mystifying and terrifying. But I know many say grub is superior to lilo.
 
Old 11-15-2004, 10:12 PM   #8
CodeFish
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you all,
Your suggestions have been helpful.
I am using GRUB, I must have opted for it when I recently upgraded to Mandrake 10.
I am still having trouble locating the grub configuration file:

[root@CPE000795e5bf28-CM000e5cd9ccba linuxfish]# locate grub.conf
[root@CPE000795e5bf28-CM000e5cd9ccba linuxfish]# find / -name "grub.conf"
find: /proc/2262/task: No such file or directory
[root@CPE000795e5bf28-CM000e5cd9ccba linuxfish]# find / -name "grub*"
find: /proc/2262/task: No such file or directory
/usr/share/man/man8/grub-md5-crypt.8.bz2
/usr/share/man/man8/grub-install.8.bz2
/usr/share/man/man8/grub-terminfo.8.bz2
/usr/share/man/man8/grub.8.bz2
/usr/share/doc/grub-doc-0.93
/usr/share/info/grub.info-1.bz2
/usr/share/info/grub.info-2.bz2
/usr/share/info/grub.info-3.bz2
/usr/share/info/grub.info.bz2
/usr/share/loader/grub
/usr/share/vim/syntax/grub.vim
/usr/sbin/grub-install
/usr/sbin/grub
/usr/sbin/grub-md5-crypt
/usr/sbin/grub-terminfo
/boot/grub
 
Old 11-15-2004, 10:16 PM   #9
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,161
Blog Entries: 4

Rep: Reputation: 135Reputation: 135
Grub configuration file shoud be present in

/etc/grub.conf

Just try opening that file directly without searching for it.
 
Old 11-15-2004, 10:18 PM   #10
XsuX
Member
 
Registered: Oct 2004
Location: US
Distribution: Fedora Core 1
Posts: 43

Rep: Reputation: 15
On my system, it's under /boot/grub/grub.conf, but I don't know if that's a standard or not
 
Old 11-15-2004, 10:20 PM   #11
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Quote:
Originally posted by CodeFish
Thank you all,
Your suggestions have been helpful.
I am using GRUB, I must have opted for it when I recently upgraded to Mandrake 10.
I am still having trouble locating the grub configuration file...
Don't know if this will help or not, but here's a section from "man 8 grub":

Code:
GRUB(8)                               FSF                              GRUB(8)

NAME
       grub - the grub shell

SYNOPSIS
       grub [OPTION]...

DESCRIPTION
       Enter the GRand Unified Bootloader command shell.

       --batch
              turn on batch mode for non-interactive use

       --boot-drive=DRIVE
              specify stage2 boot_drive [default=0x0]

       --config-file=FILE
              specify stage2 config_file [default=/boot/grub/menu.lst]
For reasons too tedious and depressing to go into, I happen to have grub as well as lilo
on my setup. A "locate grub | less" turned up no grub.conf on mine either.
 
Old 11-16-2004, 07:46 PM   #12
CodeFish
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks again, especially to trickykid and jonr.

From what I understand, there is generallly no grub.conf file(XsuX you maybe unique). Instead, the grub config file is typically located in /boot/grub/menu.lst. This is noted in the man file (thanks jonr) and it is reflective of my system.
 
Old 11-16-2004, 07:59 PM   #13
CodeFish
LQ Newbie
 
Registered: Apr 2004
Distribution: Mandrake
Posts: 11

Original Poster
Rep: Reputation: 0
Found this, incase anyone is interested:

"The file your looking for is actually /boot/grub/menu.lst and not grub.conf. There are a few distros like Redhat that uses /etc/grub.conf file. In this case the menu.lst is a link that points to grub.conf. " -michaelk

from the following thread:
http://www.linuxquestions.org/questi...hreadid=255569
 
  


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
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 02:15 PM
lilo.conf and lilo.conf.anaconda difference blackzone Linux - General 1 07-06-2004 04:15 AM
lilo.conf.anaconda v. lilo.conf rbaird2001 Red Hat 1 04-01-2004 01:16 PM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 09:22 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 04:53 PM


All times are GMT -5. The time now is 10:59 AM.

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