Originally Posted by mannahazarika
GRUB and LILO can be installed in a computer running linux at the same time - isn't it? But how to find out which boot loader is actually active and comes into play when the computer boots? I need to write a shell script which will find that out automatically.
There's another confusion I am having. What is actually MBR? Is it the term used by DOS/Windows user to refer to the the boot sector of the harddisk?
And what is exactly boot sector? Does it exist for a harddisk or for each partitions?
as far as i know you could have only one boot loader for a linux at a time.......either grub or lilo.
check out in /etc that whether you have grub.conf or lilo.conf. Whichever u have, that is your bootloader.
moreover at the time of booting it tell u like...grub loading or lilo loading.
MBR : Master Boot Record.
its a general term......be it windows or linux or any other O/S.
MBR is the first 64 sectors ( 0-63 ) of your harddrive which is hidden and non accessible. And it exists for hard disk and not for each partitions.
The bootloader resides generally in MBR ( you could install them in /root as well ....yr wish )
plz. correct me if i'm wrong.