<div dir="ltr"><br><br><div class="gmail_quote">On Tue, Sep 2, 2008 at 4:14 AM, Al Sparks <span dir="ltr"><<a href="mailto:data345@yahoo.com">data345@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
--- On Mon, 9/1/08, Lanny Marcus <<a href="mailto:lmmailinglists@gmail.com">lmmailinglists@gmail.com</a>> wrote:<br>
<br>
> From: Lanny Marcus <<a href="mailto:lmmailinglists@gmail.com">lmmailinglists@gmail.com</a>><br>
> Subject: Re: [CentOS] I need help with GRUB<br>
> To: "CentOS mailing list" <<a href="mailto:centos@centos.org">centos@centos.org</a>><br>
> Date: Monday, September 1, 2008, 9:53 AM<br>
<div><div></div><div class="Wj3C7c">> On Sun, Aug 31, 2008 at 11:31 PM, Sadaruwan Samaraweera<br>
> <<a href="mailto:slinuxworld@gmail.com">slinuxworld@gmail.com</a>> wrote:><br>
> > On Mon, Sep 1, 2008 at 9:55 AM, Ian Forde<br>
> <<a href="mailto:ian@duckland.org">ian@duckland.org</a>> wrote:<br>
> >><br>
> >> On Mon, 2008-09-01 at 09:47 +0530, Sadaruwan<br>
> Samaraweera wrote:<br>
> >> > Hello,<br>
> >><br>
> >> > And the problem that I'm having is<br>
> with my two Linux distros. Ive<br>
> >> > installed CentOS & Windows in my SATA HDD<br>
> and I've used my complete<br>
> >> > 40GB PATA HDD for Ubuntu. Well all OS's<br>
> work fine with out any<br>
> >> > problems but when I want to boot into CentOS<br>
> I've to select the SATA<br>
> >> > as my booting HDD from the BIOS if I want to<br>
> go to Ubuntu the I've to<br>
> >> > select my PATA as the default HDD from the<br>
> menu. So what I want to do<br>
> >> > is I need to add Both distros in to one GRUB<br>
> boot loader and the other<br>
> >> > thing is that both grubs that I've on<br>
> both HDD s only detects the<br>
> >> > windows Partition not the Linux partion. So I<br>
> need to to know how to<br>
> >> > add bothe Linux versions I've into one<br>
> GRUB. I want to use the SATA<br>
> >> > HDD as my default HDD.<br>
> >><br>
> >> You'll want to merge the grub boot stanzas<br>
> into one file, apply it to<br>
> >> one (or both) of the drives, and keep it in sync<br>
> when you do kernel<br>
> >> updates (because those affect the grub menu)...<br>
> This way, you won't have<br>
> >> to change the BIOS setting.<br>
> >><br>
><br>
> > OK, thx for the quick reply but I realy don't know<br>
> how to do that can any<br>
> > one help on that note.<br>
><br>
><br>
> Possibly what you need to do is add another entry in your<br>
> /etc/grub.conf file, on the HD you boot from. Below is<br>
> mine.<br>
><br>
> [lanny@dell2400 ~]$ sudo cat /etc/grub.conf<br>
> Password:<br>
> # grub.conf generated by anaconda<br>
> #<br>
> # Note that you do not have to rerun grub after making<br>
> changes to this file<br>
> # NOTICE: You have a /boot partition. This means that<br>
> # all kernel and initrd paths are relative to<br>
> /boot/, eg.<br>
> # root (hd0,2)<br>
> # kernel /vmlinuz-version ro<br>
> root=/dev/VolGroup00/LogVol00<br>
> # initrd /initrd-version.img<br>
> #boot=/dev/hda<br>
> default=0<br>
> timeout=5<br>
> splashimage=(hd0,2)/grub/splash.xpm.gz<br>
> hiddenmenu<br>
> title CentOS (2.6.18-92.1.10.el5)<br>
> root (hd0,2)<br>
> kernel /vmlinuz-2.6.18-92.1.10.el5 ro<br>
> root=/dev/VolGroup00/LogVol00 rhgb quiet<br>
> initrd /initrd-2.6.18-92.1.10.el5.img acpi=off<br>
> title CentOS (2.6.18-92.1.6.el5)<br>
> root (hd0,2)<br>
> kernel /vmlinuz-2.6.18-92.1.6.el5 ro<br>
> root=/dev/VolGroup00/LogVol00 rhgb quiet<br>
> initrd /initrd-2.6.18-92.1.6.el5.img acpi=off<br>
> title CentOS (2.6.18-92.1.1.el5)<br>
> root (hd0,2)<br>
> kernel /vmlinuz-2.6.18-92.1.1.el5 ro<br>
> root=/dev/VolGroup00/LogVol00 rhgb quiet<br>
> initrd /initrd-2.6.18-92.1.1.el5.img acpi=off<br>
> title Windows XP<br>
> rootnoverify (hd0,0)<br>
> chainloader +1<br>
> [lanny@dell2400 ~]$<br>
> _______________________________________________<br>
> CentOS mailing list<br>
> <a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
> <a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
<br>
<br>
</div></div>It's handy that someone posted their grub file.<br>
<br>
The answer to your question/situation might be complicated by the fact that you use you have been changing your boot up disk in your BIOS.<br>
<br>
But the thing to look for in your grub.conf file is:<br>
<div class="Ih2E3d"><br>
> title CentOS (2.6.18-92.1.1.el5)<br>
> root (hd0,2)<br>
> kernel /vmlinuz-2.6.18-92.1.1.el5 ro<br>
<br>
</div>Note that this example includes an entry for a hard drive:<br>
<br>
> root (hd0,2)<br>
<br>
That entry points to the "first" hard drive, third partition. If you<br>
have 2 hard drives, and you wanted to boot off the "second" drive<br>
first partition, you might use:<br>
root (hd1,0)<br>
<br>
You basically want to look at the grub configuration for each OS on<br>
each hard drive you installed it on, and in consolidating them, "cut<br>
and paste" entries from what you want to be your secondary drive to<br>
your primary boot drive.<br>
<br>
Again, this is only using the above grub.conf as an example. If you<br>
have SCSI hard drives instead then probably the grub.conf will show<br>
something like:<br>
root (sd0,2)<br>
<br>
So it's important to look at your grub.conf and make modifications.<br>
<br>
Hope this helps. If you want more specific advice, then post BOTH<br>
grub.conf files, and tell us which one will be from what you want to<br>
be your secondary drive, and what you want to be your primary drive<br>
(in BIOS).<br>
<font color="#888888"> === Al<br>
</font><div><div></div><div class="Wj3C7c">_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sadaruwan Samaraweera<br><br><br>Hi,<br><br> Thank you very much for responding for my plea for help and after some painful hours of search and going through some forums I got what I want and it's working now here is my grub.conf on the SATA drive which I wanted to be my primary booting drive.<br>
<br><br># grub.conf generated by anaconda<br>#<br># Note that you do not have to rerun grub after making changes to this file<br># NOTICE: You have a /boot partition. This means that<br># all kernel and initrd paths are relative to /boot/, eg.<br>
# root (hd0,6)<br># kernel /vmlinuz-version ro root=/dev/VL1/LogVol00<br># initrd /initrd-version.img<br>#boot=/dev/sda<br>default=0<br>timeout=5<br>splashimage=(hd0,6)/grub/splash.xpm.gz<br>hiddenmenu<br>
title CentOS (2.6.18-92.1.10.el5)<br> root (hd0,6)<br> kernel /vmlinuz-2.6.18-92.1.10.el5 ro root=/dev/VL1/LogVol00 rhgb quiet<br> initrd /initrd-2.6.18-92.1.10.el5.img<br>title CentOS (2.6.18-92.el5)<br> root (hd0,6)<br>
kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VL1/LogVol00 rhgb quiet<br> initr /initrd-2.6.18-92.el5.img<br>title Ubuntu<br> rootnoverify (hd1,0)<br> chainloader +1<br>title WindowsXP SP2<br> rootnoverify (hd0,0)<br>
chainloader +1<br><br>If there's anything wrong with this please let me know.<br><br>Regards<br>Sadaruwan Samaraweera<br>
</div>