Which is installed? Lilo or Grub?
How can I tell which bootloader, lilo or grub, is _really_ installed
on a system? I need to do this without booting the system, so I can't just look at the initial bootloader screen that appears at boot time. The specific systems I'm dealing with are Red Hat from 7.2 to Enterprise 3, but I'm hoping there is a distro-independent answer. On all the systems I'm dealing with, both the lilo and grub RPMs have been installed, so you see /etc/lilo.conf and /boot/grub/ on all of them. Thanks for any help. Stowe Davison |
Sounds like a homework problem.....
Are these computers operating and have not been modified since the original install? |
You probably need the "grubby" program:
Code:
# grubby --bootloader-probe -- the dudeman |
Many thanks, Dudeman! It looks as if grubby is exactly what I need!
Michael - Not a homework problem. I could write up a data file from the original installation specs if that's what you were suggesting. Stowe |
You could also get the MBR to a file with: dd if=/dev/hda of=/home/username/bootsect bs=512 count=1
If you then do "cat bootsect" it should say LILO somewhere on the first line if lilo is in use. If it's a dual boot and lilo (or grub) resides on the linux partition, say hdb1, and is called by NTLDR you can do: dd if=/dev/hdb1 of=/home/username/bootsect bs=512 count=1 |
If you have not changed the bootloader from the original install there should be a cfg file in /root to show what applications were installed. If it still exists.
|
All times are GMT -5. The time now is 11:32 AM. |