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

Reply via email to