LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-10-2005, 07:04 PM   #1
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Rep: Reputation: 30
Adding to Grub


I need help configuring grub to boot two other OS. As it is I can boot from grub to fedora3, or a MS bootloader that has XP and Vista on it. Although this works fine I would like to get all of the OSs on grub.

How do I add boot records to grub.conf? I was thinking that looking in each MS boot.ini. Those files give some indication of the location on the HD. Here is what my grub file looks like:

Code:
title Fedora Core 3
    root (hd0,2)
    kernel /.......
    initrd /.................whatever.....this part works

title win boot loader
    rootnoverify (hd0,0)
    chainloader +1
What I want is to get rid of the win boot loader and have direct access to all 3 OS.

Code:
title Fedora 3
....
title WinXP
.....
title WinVista
.....

Here is the info from my boot ini files:
Code:
[boot loader]
default=multi(0)disk(0)rdisk(0)partition(2)\windows
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\windows="microsoft windows longhorn"/NOEXECUTE=OPTIN /FASTDETECT /USENEWLOADER
multi(0)disk(0)rdisk(0)partition(1)\windows="microsoft XP" /FASTDETECT

I tried to translate the disk and partitions over to grub but it didn't work. Can someone help me with the syntax?

Also, what is the "chainloader +1" for? What is it indicating?



Thanks (and sorry for the long ass post)!
 
Old 08-11-2005, 12:26 PM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
No guarantees but this should work.

title Fedora Core 3
root (hd0,2)
kernel /.......
initrd /.................whatever.....this part works

title WinXP
rootnoverify (hd0,0)
chainloader +1

title WinVista
rootnoverify (hd0,1)
chainloader +2


Copy boot.ini to WinVista partition

WinXP boot.ini:
[boot loader]
default=multi(0)disk(0)rdisk(0)partition(1)\windows
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\windows="microsoft XP" /FASTDETECT

WinVista boot.ini
[boot loader]
default=multi(0)disk(0)rdisk(0)partition(2)\windows
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\windows="microsoft windows longhorn"/NOEXECUTE=OPTIN /FASTDETECT /USENEWLOADER
 
Old 08-14-2005, 05:50 PM   #3
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Original Poster
Rep: Reputation: 30
Thanks for the attempt but that's a no go. I actually tried that myself, but.......

Also it seems that vista doesn't have a boot.ini (I made a typo in the first post. I meant to say that it was the XP boot ini)

I guess I'll just deal with the boot loaders (all 3 of them!)

Thx anyways
 
Old 08-15-2005, 10:34 PM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
title WinVista
rootnoverify (hd0,1)
chainloader +2

That is from posting on a windows computer. It should be:

title WinVista
rootnoverify (hd0,1)
chainloader +1

This isn't WinVista but it works for me:

title Linux
kernel (hd0,4)/boot/vmlinuz-2.6.12.4 root=/dev/hda5 nomce quiet splash=verbose vga=791
initrd (hd0,4)/boot/initrd.splash

title Linux-2.6.12
kernel (hd0,4)/boot/vmlinuz-2.6.12 root=/dev/hda5 nomce quiet splash=verbose vga=791
initrd (hd0,4)/boot/initrd.splash

title WindowsXP
rootnoverify (hd0,0)
chainloader +1

title Windows98
rootnoverify (hd1,0)
chainloader +1

title MEMTEST
kernel /boot/memtest86.bin
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding to GRUB stolieman Linux - General 1 11-20-2004 12:42 AM
adding OS to Grub jturnbul Fedora 6 09-16-2004 08:29 PM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM
Help adding XP to Grub? superdigg Linux - Newbie 1 01-09-2003 04:13 PM
error 12: adding XP to grub j_developer Linux - General 3 08-22-2002 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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