[Date Prev][Date Next][Date Index]
[linux] Are u using Lilo or Grub??
I found the following post on some newsgroup and found out that i am using
grub instead of lilo..
*************************************************************************
Possibility 1: If you reboot and the bootloader has a light blue screen
that says "GRUB version ..." at the top of the screen, you're using GRUB.
LILO usually has a dark blue background with the Red Hat "Shadow Man" logo
prominently displayed on the left.
If you're ever in a position where watching the screen isn't an option (for
example, I've got two server boxes that don't normally have monitors hooked
up), there's a couple of other approaches:
Possibility 2: On a default RH install where you've selected GRUB for the
bootloader, you won't have an /etc/lilo.conf file, but *will* have an
/etc/lilo.conf.anaconda file. If you don't have an /etc/lilo.conf file,
then it's a good bet that you're using GRUB, because LILO *needs* that
/etc/lilo.conf file. (Okay, okay, you can always use a command-line option
to feed lilo a different config file, but let's assume for the moment that
Dr. Evil isn't running the system.)
Possibility 3: Assuming you installed the bootloader to the MBR, you could
run (as root):
dd if=/dev/hda bs=512 count=1 2>&1 | grep GRUB
If this returns:
Binary file (standard input) matches
then you're using GRUB. (Basically you're just searching the MBR to see if
the word 'GRUB' shows up inside.) If it doesn't say anything, then you're
not using GRUB. In that case, if you want to confirm that you're using
LILO (as opposed to, say, a Win2K bootloader), you could try:
dd if=/dev/hda bs=512 count=1 2>&1 | grep LILO
and see if you get a match. Note that a GRUB bootloader will *also*
contain the word 'LILO', so if you use this "search the bootloader" method
you want to check for the word 'GRUB' first. So to tell for sure if you've
got LILO, you first have test that the bootloader *doesn't* contain the
word 'GRUB', then test to see if it contains the word 'LILO'.
If the bootloader's been installed somewhere other than the MBR, you can
substitute the partition's device name. Ex: if /boot were /dev/hda2 and
the bootloader had been installed there instead of the MBR, you could check
for GRUB using:
dd if=/dev/hda2 bs=512 count=1 2>&1 | grep GRUB