Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


Search this Thread
Old 01-30-2005, 11:26 AM   #1
LQ Newbie
Registered: Jan 2005
Posts: 2

Rep: Reputation: 0
Which is installed? Lilo or Grub?

How can I tell which bootloader, lilo or grub, is _really_ installed
on a system? I need to do this without booting the system, so I
can't just look at the initial bootloader screen that appears at
boot time.

The specific systems I'm dealing with are Red Hat from 7.2 to
Enterprise 3, but I'm hoping there is a distro-independent

On all the systems I'm dealing with, both the lilo and grub
RPMs have been installed, so you see /etc/lilo.conf and
/boot/grub/ on all of them.

Thanks for any help.

Stowe Davison
Old 01-30-2005, 11:46 AM   #2
Registered: Aug 2002
Posts: 11,985

Rep: Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753
Sounds like a homework problem.....
Are these computers operating and have not been modified since the original install?
Old 01-30-2005, 12:03 PM   #3
Registered: Jan 2005
Distribution: Gentoo
Posts: 111

Rep: Reputation: 16
You probably need the "grubby" program:
# grubby --bootloader-probe
Don't ask me if it comes with your distro or not...I have no clue. But if you have it, it'll tell you what bootloader you have

-- the dudeman
Old 01-30-2005, 12:18 PM   #4
LQ Newbie
Registered: Jan 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Many thanks, Dudeman! It looks as if grubby is exactly what I need!

Michael -
Not a homework problem. I could write up a data file from the
original installation specs if that's what you were suggesting.
Old 01-30-2005, 12:31 PM   #5
Senior Member
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 53
You could also get the MBR to a file with: dd if=/dev/hda of=/home/username/bootsect bs=512 count=1
If you then do "cat bootsect" it should say LILO somewhere on the first line if lilo is in use.

If it's a dual boot and lilo (or grub) resides on the linux partition, say hdb1, and is called by NTLDR you can do:
dd if=/dev/hdb1 of=/home/username/bootsect bs=512 count=1
Old 01-30-2005, 03:47 PM   #6
Registered: Aug 2002
Posts: 11,985

Rep: Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753Reputation: 753
If you have not changed the bootloader from the original install there should be a cfg file in /root to show what applications were installed. If it still exists.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installed lilo can't get rid of grub jon_k Linux - Software 2 10-25-2004 03:30 AM
installed GRUB over winxp slack and mandrake and LILO insyte Member Success Stories 0 08-12-2004 01:04 PM
Installed Grub/lilo to A:, cannot boot into linux. MadSkillzMan Linux - Newbie 3 07-21-2004 02:24 AM
lilo and openmosix was just installed and was added to lilo boot menu but.. kublador Linux - Software 0 06-18-2003 01:59 AM
Had RH9 installed with Grub, after Mandrake 9 install, lilo took over marinkog Linux - Software 1 04-05-2003 11:59 PM

All times are GMT -5. The time now is 01:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration