LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2012, 03:28 PM   #1
ulkoma
Member
 
Registered: Feb 2012
Distribution: CentOS
Posts: 69

Rep: Reputation: Disabled
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?
 
Old 04-28-2012, 06:42 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
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.
 
Old 04-28-2012, 06:50 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,004

Rep: Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to start Grub2-bootloader from extlinux-bootloader? floppy_stuttgart Linux - Newbie 13 11-13-2011 07:43 PM
"Move" from Grub loader to WIN NT bootloader? wombat53 Linux - Software 13 08-11-2008 04:56 PM
Grub Bootloader Doesn't Run Before Windows TechSonic Fedora 2 01-27-2006 11:38 PM
Restoring Windows with a GRUB bootloader Lee Barker Linux - Newbie 11 11-18-2005 11:33 PM
help booting windows on Suse 8.2 Grub bootloader intenseprod Linux - Newbie 1 07-27-2003 11:35 PM


All times are GMT -5. The time now is 06:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration