LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-14-2007, 12:26 PM   #1
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Blog Entries: 1

Rep: Reputation: 47
boot manager


i have Ubuntu on one HDD, and WinXP on another, can i get a boot manager for Ubuntu to select which one i want?
 
Old 02-14-2007, 01:57 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by linuxuserwannabe
i have Ubuntu on one HDD, and WinXP on another, can i get a boot manager for Ubuntu to select which one i want?
Absolutely!! You can install GRUB from Ubuntu.

I assume you can boot into Ubuntu by setting the boot order in the BIOS. In Ubuntu, open a terminal, and enter "su" to become root. If you have not enabled the root account, you can do so by entering "sudo passwd root". You will be prompted for your user password, and then for the new root password.

Next, do fdisk -l to see what the partion numbers and types are. We need to know the partition numbers for Windows, and for the Linux drive which contains /boot. This is quite likely the same as the "/" partition.

If you can boot into Ubuntu, it means GRUB is already configured--and all we need to do is change the Windows entry so that it can boot from what is now drive 2.
Using an editor like nano, open the file: /boot/grub/menu.lst Find the entry for Windows and modify (or create a new one)as follows:
title: Windows
rootnoverify (hd1,0) assumes that Windows in on drive 2, partition 1--ie /dev/hdb1 in the fdisk output
map (hd0)(hd1)
map (hd1)(hd0)
chainloader +1
makeactive
boot

You can also install GRUB on the mbr of the Windows drive. In this cans the configuraiton file will need to be different.

GRUB manual here
 
Old 02-14-2007, 02:03 PM   #3
benerivo
LQ Newbie
 
Registered: Dec 2006
Posts: 27

Rep: Reputation: 15
All linux distros come with a boot manger when installed, and your Ubuntu drive will currently boot from a Grub boot manager. I'm guessing that at the moment, each hard drive can boot by itself - ie. one in to windows and the other in to ubuntu? If this is the case, you could attach both to the motherboard, with ubuntu as the master / default boot in the BIOS. Then when in Ubuntu, you should be able to alter the /boot/grub/menu.lst file to include windows os as a boot option. If this is what you want, then you could try adding these lines to the end of the menu.lst file...

title windows
root (hd1,0)
makeactive
chainloader +1

I would google for more info on alterations to Grub if this does not work.
EDIT - I was composing this while Pixellany came in with his better response. You may ignore mine!

Last edited by benerivo; 02-14-2007 at 02:06 PM.
 
Old 02-14-2007, 02:13 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by benerivo
All linux distros come with a boot manger when installed, and your Ubuntu drive will currently boot from a Grub boot manager. I'm guessing that at the moment, each hard drive can boot by itself - ie. one in to windows and the other in to ubuntu? If this is the case, you could attach both to the motherboard, with ubuntu as the master / default boot in the BIOS. Then when in Ubuntu, you should be able to alter the /boot/grub/menu.lst file to include windows os as a boot option. If this is what you want, then you could try adding these lines to the end of the menu.lst file...

title windows
root (hd1,0)
makeactive
chainloader +1

I would google for more info on alterations to Grub if this does not work.
EDIT - I was composing this while Pixellany came in with his better response. You may ignore mine!
If Windows is on the second drive, you have to do the "map" thing, as in my other post.
 
  


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
Smart Boot Manager wont boot dos on logical part. AlanL Linux - Software 5 09-01-2005 01:25 AM
cloning both partitions, dual boot system, master boot record, logical volume manager saranga2000 Linux - Hardware 3 01-10-2005 12:04 PM
windows2000 boot manager (boot.ini) Thomas_Delrue Linux - Newbie 6 08-31-2004 12:18 PM
Dual boot for Redhat 9 and Solaris 9 boot manager problems steve_2010 Red Hat 1 01-30-2004 10:14 PM
Boot manager to boot CD's from floppy Excalibur Slackware 2 07-05-2002 09:10 AM


All times are GMT -5. The time now is 01: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration