LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-04-2005, 08:54 PM   #1
geekgyrrrl
LQ Newbie
 
Registered: Jun 2005
Distribution: SuSE 9.1 / KDE
Posts: 2

Rep: Reputation: 0
GRUB - How to add Windows to boot menu?


Hi there,

I'm sure people have asked this before, but I haven't found any answers as of yet on this. My computer has two harddrives, C and D. Windows is installed to D drive, and SuSE is installed on C drive. During SuSE 9.1 install, the option was offered to do my own partitioning, so I chose to utilize the whole C drive for Linux.

Once I chose this, the configuration for BOOT changed to allow only Linux, Floppy and Safe. (makes sense) Prior to my changing Linux's own partition choice, the selections for BOOT were Linux, Windows, Floppy and Safe.

It seems like it would be fairly simple to just edit GRUB's conf file and add Windows to boot from the D drive, but once I got the conf file opened, I could not figure out exactly what it was I needed to type in for the instructions for GRUB to be able to add the Windows option on the selection menu.

Does anyone have any idea how I might be able to edit GRUB to be able to include my Windows OS. Not that I want to, mind you, but I'm a windows network admin and I am sorta stuck with running Windows for that part of my job, and for someone who wants to go all Linux, it's misery...anyway... :-/

Any help would be greatly appreciated!

GG
 
Old 06-04-2005, 09:14 PM   #2
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
Hi!

Add those lines at the end of the grub.conf:

title=Windows XP
rootnoverify (hd0,5)
makeactive
chainloader +1


I'm not sure what you said about C and D. Are those different partitions or different harddrives?. Linux uses /dev/hda1,2,3,4,etc for the first HD and /dev/hdb1,2,3,4,etc for a second HD, where the numbers are the partitions.

The above line "rootnoverify (hd0,5)" assumes that Windows is at /dev/hda6.

Good luck and don't forget to make backups
 
Old 06-04-2005, 09:48 PM   #3
geekgyrrrl
LQ Newbie
 
Registered: Jun 2005
Distribution: SuSE 9.1 / KDE
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Megaman X
Hi!

Add those lines at the end of the grub.conf:

title=Windows XP
rootnoverify (hd0,5)
makeactive
chainloader +1


I'm not sure what you said about C and D. Are those different partitions or different harddrives?. Linux uses /dev/hda1,2,3,4,etc for the first HD and /dev/hdb1,2,3,4,etc for a second HD, where the numbers are the partitions.

The above line "rootnoverify (hd0,5)" assumes that Windows is at /dev/hda6.

Good luck and don't forget to make backups
Hi Megaman X :-)

Thank you for your response - I'll work on that conf file using what you posted. And yes, I have two separate harddives. Windows lives on the second harddrive, so should be hdb1, but I'll know more after I give this a try. Linux needed and deserved its own harddrive, IMHO it is a much more worthy tenant on my system than Windows, the arrogant neighbor. LOL... Thanks again, and yes, I'll back it all up beforehand...No sense taking chances, eh?

Thank you again...

GG
 
Old 06-04-2005, 10:01 PM   #4
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
Thumbs up

Good luck geekgyrrrl mate .

Well, just a quick tip. If your Windows is on the second harddrive and on the first partition, I think the line rootnoverify should be:

rootnoverify (hd1,0)

Windows usually don't like being on the second harddrive, so be ready for surprises. I'm not saying it won't work, but we never know. I never installed Windows on the second HD myself .

Regards!

Last edited by Mega Man X; 06-04-2005 at 10:02 PM.
 
Old 06-04-2005, 10:02 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,130

Rep: Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986
Quote:
Originally posted by geekgyrrrl
And yes, I have two separate harddives. Windows lives on the second harddrive, so should be hdb1, but I'll know more after I give this a try.
In which case you'll need;
Code:
title=Windows XP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1
 
  


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
How do I add Windows XP to Grub boot loader? LUB997 Linux - Software 29 10-17-2009 11:11 AM
add windows install to GRUB menu sall Linux - Hardware 4 07-29-2005 05:41 PM
Add "Boot CD" to GRUB menu Napalm Llama Linux - General 7 06-10-2005 08:56 AM
GRUB Boot menu with SuSE9.0 and Windows 2000 Advanced Server SteveK1979 Linux - Newbie 4 02-19-2004 04:05 AM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration