LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Where is my CENTOS!! (https://www.linuxquestions.org/questions/ubuntu-63/where-is-my-centos-499764/)

hermouche 11-08-2006 10:57 AM

Where is my CENTOS!!
 
Hy every body

Just came from fedora, redhat and centos.

I' ve installed the UBUNTU 6.10 in one of my HDD. In fact i've two HDD's.
In the first one i had Windows media center and Centos 4.4.
In the second HDD, i installed UBUNTU (hdb).

Now when i boot (BIOS) from the first HDD, i have the choice to either run UBUNTU or windows, it works well, but where is the CENTOS distribution since i' ve installed the ubuntu in the second HDD?

If i boot (BIOS) from the second HDD, i got a message: Bad PBR sig, what does it mean?

Any help

Thanks a lot.

red

Penguin of Wonder 11-08-2006 04:13 PM

Are you using Grub? If I remember correctly Ubuntu uses grub. It looks like your Ubuntu install rewrote you MBR installed itself, detected Windows and included it to, but failed to include CentOS. What does your grub.conf or menu.lst look like? Perhaps if you simply add Cent to it, you will come back.

I'm not honestly sure what the error message means. Perhaps the MBR on the second drive is messed up somehow.

hermouche 11-09-2006 03:13 AM

Quote:

Originally Posted by Penguin of Wonder
Are you using Grub? If I remember correctly Ubuntu uses grub. It looks like your Ubuntu install rewrote you MBR installed itself, detected Windows and included it to, but failed to include CentOS. What does your grub.conf or menu.lst look like? Perhaps if you simply add Cent to it, you will come back.

I'm not honestly sure what the error message means. Perhaps the MBR on the second drive is messed up somehow.

Well, this is my grub.conf:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6xen)
root (hd0,2)
kernel /xen.gz-2.6.18-1.2798.fc6
module /vmlinuz-2.6.18-1.2798.fc6xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
module /initrd-2.6.18-1.2798.fc6xen.img
title Windows Media Center
rootnoverify (hd0,0)
chainloader +1


Yes, what i did lastly, i installed the fedora core 6.

Now i am confused, i installed fedora in the first HDD is it right (hd0)?
Actually if i understand, windows and fedora are installed in the first HDD, is that correct?

What does it mean (hd0,2), well i guess hd0 means the first HDD and 2 means in the second partition of this hdd, is this OK?

What about the second HDD which is hdb?

Now if i want to install UBUNTU in the second HDD, what shoul i do?
because if i remember i installed UBUNTU in the hdb which is in my believe my second HDD!!!and i've got the upper message error.

Yes i am using grub for fedora and for ubuntu.

Thanks
red

hermouche 11-09-2006 03:48 AM

Oh another question. According to my grub.conf where grub boot loader is installed?
How can we know that grub is installed with in windows or fedora?

Thanks
red

syg00 11-09-2006 04:24 AM

The loader has installed to the MBR - this is at the beginning of the disk and is not part of any partition.
Rather than continually (re-)installing things, just calm down.
Your Ubuntu install should still exist - from Fedora have a look at the second disk for a file called menu.lst.
Maybe /media/hdb1/boot/grub/menu.lst (or something similar).

It will have something like
Code:

title          Ubuntu, kernel 2.6.15-27-686
root            (hd0,6)
kernel          /vmlinuz-2.6.15-27-686 root=/dev/hda8 ro quiet splash
initrd          /initrd.img-2.6.15-27-686

You will have a later kernel - 2.6.17 for 6.10 I think, and of course the disk references will be different.
Just copy that to your Fedora grub.conf and reboot.

hermouche 11-09-2006 05:11 AM

Thanks do it right now.

red

hermouche 11-09-2006 06:39 AM

YES, it's done. Thanks again syg00 and penguin of wonder.
I think i should write down what i did, hopefully it will helps others.

- first hard drive hdd1 (hda) installed Windows and Fedora.
- second hard drive hdd2 (hdb)installed Ubuntu with the boot installed on this hdd2.

- start fedora.
- mount the grub.conf of Ubuntu from Fedora:
* mkdir /media/ubuntu
* mount /dev/hdb1 /media/ubuntu
* cd /media/ubuntu
* cd /boot/grub
* cat grub.conf and copy the content to fedora grub.conf.
* Don't forget to save the newly edited file and reboot.

As it is mentioned by syg00 this is an example of the grub.conf:

Quote:

title Ubuntu, kernel 2.6.15-27-686
root (hd0,6)
kernel /vmlinuz-2.6.15-27-686 root=/dev/hda8 ro quiet splash
initrd /initrd.img-2.6.15-27-686
That's all .

red


All times are GMT -5. The time now is 05:44 PM.