LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader (http://www.linuxquestions.org/questions/ubuntu-63/installed-fc5-wrote-over-ubuntu-mbr-how-do-i-add-ubuntu-partition-to-grub-loader-487863/)

Free_beer 09-28-2006 11:25 PM

Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader
 
Hi,

This is the process I followed (below) and the out come is Ubuntu file system is still on my hard drive yet I can't boot up Ubuntu because FC 5 wrote over Ubuntu's Boot Loader file. What is the code to add Ubuntu to the Fedora Core 5 grub.conf so I can boot up Ubuntu?

Process: on 80 gig HD
1. Installed Win 2k3 (20 gig) sda6
2. Installed Win XP SP2 (5 gig)sda5
3. Installed Ubuntu 6.0 Desktop (21 gig)sda1
4. Installed FC 5 (7 gig)?

Fedora Core 5 grub.conf file
Code:

default=0
timeout=15
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5smp)
        root (hd0,2)
        kernel /boot/vmlinuz-2.6.15-1.2054_FC5smp ro root=LABEL=/ rhgb quiet
        initrd /boot/initrd-2.6.15-1.2054_FC5smp.img
title Other
        rootnoverify (hd0,0)
        chainloader +1

The "Other" points to the Windows boot loader. The Windows boot loader can boot Win 2k3 server just fine yet it CAN NOT boot up Win XP!! (I get an error)

binary_y2k2 09-29-2006 02:43 AM

Need some more information, what's in FC5's /boot/grub/device.map and what's the output of "fdisk -l"

Without knowing that it's just a guess from here out but you can try:
Code:

title Ubuntu 2.6.15-26-386
        root (hd0,2)
        kernel /boot/vmlinuz-2.6.15-26-386 root=LABEL=/ ro quiet
        initrd /boot/initrd.img-2.6.15-26-386
        boot

That's if you have a separate /boot partition, you'll also want to remove "hiddenmenu" so you can choose which to boot without having to press escape.

Free_beer 09-29-2006 04:22 AM

Sure. Let me know if this useful:

Device.map
Code:

# this device map was generated by anaconda
(hd0)    /dev/sda

Ouput of fdisk -l
Code:

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        2575    20683656    7  HPFS/NTFS
/dev/sda2            2576        6023    27696060    f  W95 Ext'd (LBA)
/dev/sda3            6024        6915    7164990  83  Linux
/dev/sda4            6916        7170    2048287+  82  Linux swap / Solaris
/dev/sda5            2576        3212    5116671    7  HPFS/NTFS
/dev/sda6            3213        5762    20482843+  83  Linux
/dev/sda7            5763        6023    2096451  82  Linux swap / Solaris


binary_y2k2 09-29-2006 05:07 AM

ok, this entry should work for you
Code:

title Ubuntu 2.6.15-26-386
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda6 ro quiet
        initrd /boot/initrd.img-2.6.15-26-386
        boot


Free_beer 10-02-2006 07:11 PM

Quote:

Originally Posted by binary_y2k2
ok, this entry should work for you
Code:

title Ubuntu 2.6.15-26-386
        root (hd0,5)
        kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda6 ro quiet
        initrd /boot/initrd.img-2.6.15-26-386
        boot


Good shit homie. It work for the most part. I only had to add one thing to the kernel code. Which was
Code:

kernel /boot/vmlinuz-2.6.15-26-386 root=/dev/sda6 ro quiet vga=0x318
Thanks


All times are GMT -5. The time now is 06:07 PM.