Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
if i install Linux and windows then there will be two bootloaders in the MBR. tell me how does it works. the bootloader which shows us about selecting OS is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User bilal_jan's Avatar
    Join Date
    Mar 2008
    Location
    Pakistan
    Posts
    281

    Linux & windows boot loaders


    if i install Linux and windows then there will be two bootloaders in the MBR.
    tell me how does it works.
    the bootloader which shows us about selecting OS is of Linux i wanna know where does Windows boot loader goes????

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Windows Boot Loaders work differently than Linux. Windows OS installs Boot Loader in Boot Sector of Root Partition ( C: Drive ) by default and a chainloading code in MBR.
    When you install Linux, installer installs GRUB/Lilo in MBR overwriting Windows Chainload code. Installer of most of Linux distros detect Windows OS and add chainloading code :
    Code:
    title Windows OS
    rootnoverify (hdx,y)
    chainloader +1
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux User bilal_jan's Avatar
    Join Date
    Mar 2008
    Location
    Pakistan
    Posts
    281
    u mean to say if we have two OS one is windows and second is Linux then Linux Boot Loader is present in MBR,there is no windows Boot loader.
    Also please do write me few lines about ChainLoad.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User geese's Avatar
    Join Date
    Jan 2005
    Location
    Florida / Trinidad W.I.
    Posts
    290
    Quote Originally Posted by bilal_jan View Post
    u mean to say if we have two OS one is windows and second is Linux then Linux Boot Loader is present in MBR,there is no windows Boot loader.
    Also please do write me few lines about ChainLoad.
    I do not quite understand what you are asking but -

    If you had windows installed on the HDD first then the windows boot loader will be present in the MBR. Then if you install Linux the MBR will be overwritten with the linux boot loader.
    Please note: GRUB and LILO will usually detect Windows and will give you the option to choose the OS to boot.


    Geese.

  6. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    u mean to say if we have two OS one is windows and second is Linux then Linux Boot Loader is present in MBR, there is no windows Boot loader.
    Yes and No. When you install Linux after Windows OS, Linux boot loader removes chainloading code of Windows OS and install itself in MBR but Windows Boot Loader resides in Boot Sector of Windows main partition ( C: Drive ). Linux Boot Loader do not touch boot sector of Windows partition.

    You can use chainloading to boot Linux OSes too. Let say you are dual booting Linux OSes.
    * Installer of first Linux distro will install GRUB in MBR (its default).
    * Install GRUB of second Linux distro in Boot Sector of / partition.
    * Add chainloading code in first distros GRUB.

    First distro's GRUB will invoke second distro's GRUB.
    Last edited by devils casper; 04-07-2008 at 05:26 PM. Reason: typo
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #6
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,045
    Quote Originally Posted by bilal_jan View Post
    u mean to say if we have two OS one is windows and second is Linux then Linux Boot Loader is present in MBR,there is no windows Boot loader.
    Also please do write me few lines about ChainLoad.
    Grub can not boot Windows directly ... have a look at the grub manual ... chainloading.

  8. #7
    Linux User bilal_jan's Avatar
    Join Date
    Mar 2008
    Location
    Pakistan
    Posts
    281
    it means that if we have two OS(windows and linux) then in MBR only on boot loader is there and that is of Linux.

  9. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    MBR can't store more than one Boot Loader but Boot Loader selection depends on user only. You can use Windows Boot Loader for dual boot setup too.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #9
    Linux User bilal_jan's Avatar
    Join Date
    Mar 2008
    Location
    Pakistan
    Posts
    281
    so where does Windows Boot Loader is if MBR has Linux boot Loader

  11. #10
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Its in Boot Sector of Windows Main Partition ( C: Drive ). Please read all posts again.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •