LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-14-2005, 07:30 PM   #1
sumguy231
Member
 
Registered: Apr 2004
Location: North America
Distribution: Kubuntu 7.04 - Feisty Fawn
Posts: 296

Rep: Reputation: 30
Stupid dual boot question


I know this is a pretty stupid question, and even though I have been using Linux for a little while, I haven't had to deal with this before.
I have on my primary hard drive Windows at hda1, and Linux at hda2. I've installed GRUB, and read a few tutorials on dual booting. The official documentation states that since Windows is an unsupported OS, it uses the 'chainloader' command to pass the booting over to the Windows bootloader. What I'm wondering about is, with my current setup is this possible? I thought that when one bootloader(GRUB) was written to the MBR, then the other bootloader(NTLDR?) was overwritten. I'm embarrased and clueless about this. Can anybody answer this for me?
 
Old 03-14-2005, 09:17 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Terminolgy problem.
The boot record is overlaid - in this case by grub, which is capable of multi loading.
Consider the code in the boot record (usually called the MBR) as phase 1 of the boot loader. Because of the restricted real estate available (446 bytes maximum), there's only a limited amount it can do.
The real work is done by code in a partiton - ntldr for XP, and the stage files for grub.
That is the real "boot-loader" code.

"Unsupported" in this case probably means "not multiboot capable". Grub provides all that functionality, and "chainloads" the XP partition boot sector record, and transfers control. At that point, the XP boot-loader in not even aware that it wasn't directly loaded by it's own (brain-dead) boot record in the MBR.
 
Old 03-15-2005, 05:45 PM   #3
sumguy231
Member
 
Registered: Apr 2004
Location: North America
Distribution: Kubuntu 7.04 - Feisty Fawn
Posts: 296

Original Poster
Rep: Reputation: 30
Sorry about this, just checking, would this be correct in most cases?

Code:
title Windows
unhide (hd0,0)
rootnoverify (hd0,0)
makeactive
chainloader +1
boot
 
Old 03-15-2005, 07:51 PM   #4
soulstace
Member
 
Registered: Mar 2005
Location: USA
Distribution: Knoppix
Posts: 64

Rep: Reputation: 15
here is grub.conf code to boot windows. very simple.

Code:
title Windows
        rootnoverify (hd0,0)
        chainloader +1

Last edited by soulstace; 03-15-2005 at 07:54 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stupid, stupid question; I lost Klaptop. :( Surfrider Slackware 2 08-31-2005 09:12 PM
Changing the boot style? Stupid question... pkgtool Slackware 3 07-23-2005 04:53 PM
Stupid Dumb Stupid Question... drigz Linux - Software 3 09-23-2004 03:09 PM
Stupid Automatic Recovery After Dual Boot of XP Home and RH/Linux 9 on Pavilion 784 michel.subs Linux - Newbie 1 09-25-2003 02:58 PM
stupid question, boot.log bit7 Linux - Software 1 03-13-2003 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:07 PM.

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
Open Source Consulting | Domain Registration