You could configure your /etc/lilo.conf with with your partitions or hard disks to boot and then (as root) make /sbin/lilo and your MBR will be overwrite with LiLo
Regards 

Bruno Negrao <[EMAIL PROTECTED]> wrote:
Hi all, i want to know if I'm using grub or lilo in a specific machine. I
cannot reboot it.
I know grub is installed and is configured properly for the new kernel (i
know this is a very strong clue).
But I know also that this machine was initially installed with lilo.

My question is: Is there a way to read the master boot record and gather
informations that prove wich boot loader is configured there?

I have found a little bash script on the internet who unsuccessfully tries
to do this:

#!/bin/bash
#Attention: this didn't work for me!!
dd if=/dev/hda bs=1024 count=1 | grep GRUB
if [ $? = 0 ]; then
echo "GRUB"
else
echo "not GRUB"
fi

I noticed it doesn't work since i ran it in a system wich I'm shure is
installed with grub and I ran it on the correct boot device, /dev/sda1 in my
case, and it didn't find an! y GRUB string.

If someone knows any trick, let me know.

Thank you,
-------------------------------------------------
-- Bruno Negrão -- Suporte
-- Plugway Acesso Internet Ltda.
-- (31)34812311
-- bnegrao at plugway dot com dot br


--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list


--

Manuel Aróstegui Linux user 200896


Yahoo! Messenger
Nueva versión: Super Webcam, voz, caritas animadas, y más ¡Gratis!

Reply via email to