LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How does GRUB/GRUB2 move the Windows bootloader? (https://www.linuxquestions.org/questions/linux-newbie-8/how-does-grub-grub2-move-the-windows-bootloader-942310/)

ulkoma 04-28-2012 02:28 PM

How does GRUB/GRUB2 move the Windows bootloader?
 
I find it very interesting that GRUB knows where Windows bootloader resides, How does it moves the code to an other area of the hard disk?

yancek 04-28-2012 05:42 PM

Boot code is at a specific location on any hard disk so the scripts check the locations.

Quote:

How does it moves the code to an other area of the hard disk?
Not sure what you mean here? Grub doesn't move the windows code, it locates it and chainloads it so the windows bootloader can boot the system. Someone else with a little more knowledge will probably come along and give you more details.

273 04-28-2012 05:50 PM

As I understand it when you install Linux it writes to the Master Boot Record, where the BIOS loads code from, and replaces Windows's record with a jump to wherever GRUB is installed. GRUB install searches for operating systems and adds them to a list so you can choose which to boot.


All times are GMT -5. The time now is 02:58 PM.