LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Lilo Vs Grub (https://www.linuxquestions.org/questions/linux-software-2/lilo-vs-grub-376772/)

cyno777 10-25-2005 12:03 PM

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

Keruskerfuerst 10-25-2005 01:23 PM

Hello!

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

Greetings

kilgoretrout 10-25-2005 01:26 PM

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.

cyno777 10-25-2005 01:42 PM

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??

maroonbaboon 10-25-2005 06:15 PM

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 :)

cyno777 10-26-2005 03:15 PM

Thanks for the reply. It worked for me...


All times are GMT -5. The time now is 08:18 AM.