Agnello George wrote:
On 3/14/08, jtd jtd@mtnl.net.in wrote:
On Friday 14 March 2008 07:15 pm, Agnello George wrote:
now suppose i have Two OS install -- debian Etch and the centos ...and grub is the default boot loader ( and grub file is located in /etc/grub.conf ..which has instruction / menu screen for booting the various OS ) but i don't seem to understand one thing - How is /etc/grub.conf made available to the boot loader even before a OS is selected ( explanation not very clear in the article )
Grub is almost an os with a shell and fs reader. once stage2 is loaded it can recognise partitions and most filesystems.
So let me guess when we install linux we have the follow in the partition table
in hd0 we have / /boot swap
and hd1 we have / /boot swap
and in hd0 we have the grub.conf file located in /boot/grub/grub.conf
and in hd1 we have the grub.conf file located in /boot/grub/grub.conf
so ultimately which conf file is read ??
There may be 10 different linux partitions with grub and conf files each. It is up to you to set which partition is the root for grub. This is done automatically by the last OS that is installed or manually by re-installing grub with custom preference.