2

Without rebooting, is it possible to tell if the boot loader currently present was LILO. GRUB 0.97 or GRUB 1.9X?

I was thinking about reading MBR, but not sure about it. Just by checking the files on system, i.e /etc/lilo.conf doesn't testify anything

Any ideas?

3
  • And if it's not in the MBR then that won't work anyways. Commented Dec 16, 2012 at 3:43
  • What distribution?
    – jippie
    Commented Dec 16, 2012 at 9:09
  • 1
    @jippie Arch, and I think it doesn't matter ...
    – daisy
    Commented Dec 16, 2012 at 12:12

1 Answer 1

5

You can use grep on your MBR to figure out:

sudo dd if=/dev/sda bs=512 count=1 2>&1 | grep GRUB
sudo dd if=/dev/sda bs=512 count=1 2>&1 | grep LILO

Only one of those should return a match.

For more information and other ways to figure out, check this answer in askubuntu.

1
  • 1
    I wasn't expecting strings in the MBR, that was awesome!
    – daisy
    Commented Dec 16, 2012 at 12:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .