LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2005, 12:03 PM   #1
cyno777
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
Lilo Vs Grub


I have both Lilo and GRUB installed on the same redhat linux system. What is the command to check which one the system is using. If GRUB is default for Redhat is there any command you guys are aware of to check the same??? I can't see the BIOS or the system start-up messages as the server is at remote location.

Thanks in advance
 
Old 10-25-2005, 01:23 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Hello!

In /boot here is a folder /grub.
But I donīt know wheter the folder is removed if grub is uninstalled.

Greetings
 
Old 10-25-2005, 01:26 PM   #3
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,986

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
My guess is it's probably grub. Check /etc/lilo.conf and see if this lilo config file is there and if it makes any sense. If not, it must be grub. After the bootloader does it's job at bootup, it's done for the day so I don't know how to tell afterwards which bootloader did the booting of the system.
 
Old 10-25-2005, 01:42 PM   #4
cyno777
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
First of all - Thanks for the reply..

I have both Lilo and GRUB files.. /boot/grub/grub.conf and /etc/lilo.conf. Both these files have start-up configuration.
but when I do a lilo -v -v - i get the following information..


LILO version 21.4-4, Copyright (C) 1992-1998 Werner Almesberger
'lba32' extensions Copyright (C) 1999,2000 John Coffman

Reading boot sector from /dev/sda
Merging with /boot/boot.b
Secondary loader: 11 sectors.
Mapping message file /boot/message
Message: 1 sector.
Boot image: /boot/vmlinuz-2.4.21-27.0.4.EL

DOES THAT MEAN LILO IS USING AS A BOOT LOADER??
 
Old 10-25-2005, 06:15 PM   #5
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
Make a copy of the boot sector (as root):

dd < /dev/sda > bootsector.dat bs=512 count=1

(assuming you are booting from /dev/sda). Look at the resulting 512 byte file in a hex editor. Here is the first 16 bytes for this system, booting LILO

00000000: faeb 2101 b501 4c49 4c4f 1606 346b 2d43 ..!...LILO..4k-C

PS Simplified version:

# dd < /dev/sda bs=1 skip=6 count=4

and check the beginning of the output

Last edited by maroonbaboon; 10-25-2005 at 06:22 PM.
 
Old 10-26-2005, 03:15 PM   #6
cyno777
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the reply. It worked for me...
 
  


Reply



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
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 09:37 PM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
Lilo vs Grub - PROBLEM with lilo nelsonnery Linux - Software 2 09-09-2004 11:09 AM
grub or lilo anemone Linux - Newbie 2 07-20-2004 07:50 PM
GRUB or LILO (please help) Curucao Linux - Hardware 3 05-15-2003 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:16 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
Open Source Consulting | Domain Registration