Help - Search - Members - Calendar
Full Version: How-To: Finding which bootloader is used
The Planet Forums > Operating Systems > Red Hat Linux > Red Hat HOWTOs
Err0r
Some of the current images of Redhat (specifically RHEL) used by ev1 have both bootloaders installed on the system. This makes it somewhat annoying when you are doing kernel upgrades as you have to modify both loader config or take a gamble.

Therefore, if you wish to find out which bootloader is used on the system, you will need to su to root.

As root, you need to run either of these commands:
dd if=/dev/hda bs=512 count=1 2>&1 | grep GRUB
or
dd if=/dev/hda bs=512 count=1 2>&1 | grep LILO

If the bootloader is found then it will say: Binary file (standard input) matches and this indicates this is the bootloader your system will use on startup.

While I don't recommend removing the other, you shouldn't need to change the config of it anymore.
Manuel
Also below mentioned command will also give the same result:

QUOTE
# head -c 512 /dev/sda
# head -c 512 /dev/sda | grep GRUB
# head -c 512 /dev/sda | grep LILO


thx
jbyers
You can also use the command "grubby --bootloader-probe"
eth00
Even easier way if you are at ev1

If you have RHEL3 it is lilo
If you have RHEL4 it is grub

I have not seen a stock box yet that is different icon_smile.gif
Manuel
QUOTE (jbyers)
You can also use the command "grubby --bootloader-probe"



When I run this command I am receiving below mentinoed output, what could be wrong?

QUOTE
#  grubby --bootloader-probe
grubby: unable to open /boot/boot.b: No such file or directory


thx
jbyers
Do you have the /boot partition mounted? What are the contents of this directory?
Manuel
No, I have not /boot as partition it is a part of / root only. and it contains normal content as all boot directory have.

thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.