LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-21-2011, 05:16 PM   #1
timmybobo
LQ Newbie
 
Registered: Nov 2011
Posts: 13

Rep: Reputation: Disabled
Dual booting Windows XP and Kubuntu where should I put boot loader?


Ok, so on my hard drive I have the following:
/dev/sda1 NTFS SYSTEM RESERVED
/dev/sda2 NTFS C:\
/dev/sda3 ext3 /
/dev/sda4 swap
Where should I put the boot loader? Here are my options:
/dev/sda
/dev/sda1
/dev/sda2
/dev/sda3
Im guessing I put it on /dev/sda but I want to make sure.
 
Old 11-21-2011, 05:25 PM   #2
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
The usual approach is to put the first part of the Grub boot loader in the MBR, which is the start of sda.

Then grub's config files should cause it to offer you a choice that makes it chainload to the Windows loader on sda2.

An alternative is to put the first part of the Grub boot loader at the beginning of sda3. You would leave the Microsoft mbr code in the beginning of sda, which unconditionally chain loads the primary partition selected for booting, which should still be sda2. That starts ntloader. I forget the details, but there is a file you can set up that will cause ntloader to offer you the choice to chainload. I think it chainloads to a file, not a partition, and I think to set that up you must also copy the first sector of boot code from sda3 to a file on C: (which is easy to do with dd in Linux).

Since you didn't say what boot loader you were considering placing on sda, I wasn't sure I should simply say "Yes it goes on sda".

Last edited by johnsfine; 11-21-2011 at 05:33 PM.
 
Old 11-21-2011, 05:27 PM   #3
timmybobo
LQ Newbie
 
Registered: Nov 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by johnsfine View Post
The usual approach is to put the first part of the Grub boot loader in the MBR, which is the start of sda.

Then grub's config files should cause it to offer you a choice that makes it chainload to the Windows loader on sda2.
Forgive me if you facepalm on this question, but I want to be sure on EVERYTHING.
is the start of sda /dev/sda or /dev/sda1?
 
Old 11-21-2011, 05:35 PM   #4
timmybobo
LQ Newbie
 
Registered: Nov 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Its whichever one comes with Kubuntu 11.10 (Grub 2?)
Im new to Linux and dont understand "chainloading". Is there an easier to do this?
Actually, I dont think I explained what I am trying to do actually.
When i boot up my computer, I want GRUB to give me the choice of Windows XP or Kubuntu 11.10. Thats it. Just a dual boot with GRUB as the boot loader.
 
Old 11-21-2011, 05:36 PM   #5
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Quote:
Originally Posted by timmybobo View Post
Forgive me if you facepalm on this question, but I want to be sure on EVERYTHING.
is the start of sda /dev/sda or /dev/sda1?
Sorry. I meant /dev/sda and certainly not /dev/sd1

I tried to be clearer that this action uses only the very beginning of sda not all of sda. But I ended up being less clear.

sda is the whole disk including at least a whole track before the beginning of sda1. The initial boot code goes into most of (not even all of) the first sector of that track that is in sda before the beginning of sda1.

Last edited by johnsfine; 11-21-2011 at 05:38 PM.
 
Old 11-21-2011, 05:43 PM   #6
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190Reputation: 1190
Quote:
Originally Posted by timmybobo View Post
Its whichever one comes with Kubuntu 11.10 (Grub 2?)
Im new to Linux and dont understand "chainloading". Is there an easier to do this?
Actually, I dont think I explained what I am trying to do actually.
When i boot up my computer, I want GRUB to give me the choice of Windows XP or Kubuntu 11.10. Thats it. Just a dual boot with GRUB as the boot loader.
Right. Selecting /dev/sda during the Grub2 install is the usual way and the Kubuntu installer should set up all the rest automatically.

It is the nature of open source (and sometimes corresponding answers at LQ) to offer you more choices than you really need or want.

There are more ways to set up XP and Kubuntu dual boot than you would like to hear about. But the common default way is fine.

I have heard of the installer sometimes failing to set up the config file needed for the choice to boot XP. If that happens to you, you will need to learn a bit more about chainloading than you may like. But most of the time the automatic installer gets it all correct and you never need to know the details.

Last edited by johnsfine; 11-21-2011 at 05:46 PM.
 
Old 11-21-2011, 05:46 PM   #7
timmybobo
LQ Newbie
 
Registered: Nov 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Ok, its installing now. Thanks for clearing things up for me. You were a great help.
 
  


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
Dual Booting Linux Distros With Windows 7 Pro Boot Loader harley51 General 0 12-09-2009 08:57 AM
Your opinion on LILO, Dual booting, NT Boot loader....etc. Whitehat Slackware 8 10-16-2003 03:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:07 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