I've had Ubuntu installed on my system for awhile now and i recently installed CentOS. I elected to let CentOS install it's own Grub (probably my first mistake). After that, now I don't have an option to boot in to Ubuntu when I start the computer up.
What do i need to edit or change in order to get this back to normal.
Here's what i've got right now.
My original Grub.conf from Ubuntu. (note that the partition that says Ubuntu 7.10 was replaced with CentOS. Ubuntu 7.10 is no longer on the machine)
Code:
title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid d2b830a3-898f-4178-b9c7-14910bb7cc8d
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=d2b830a3-898f-4178-b9c7-14910bb7cc8d ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid d2b830a3-898f-4178-b9c7-14910bb7cc8d
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=d2b830a3-898f-4178-b9c7-14910bb7cc8d ro single
initrd /boot/initrd.img-2.6.27-7-generic
title Ubuntu 8.10, memtest86+
uuid d2b830a3-898f-4178-b9c7-14910bb7cc8d
kernel /boot/memtest86+.bin
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title Ubuntu 7.10, kernel 2.6.22-14-generic (on /dev/sda5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=4c0cf01a-b115-4327-bde2-0bc6b6d79c65 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode) (on /dev/sda5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=4c0cf01a-b115-4327-bde2-0bc6b6d79c65 ro single
initrd /boot/initrd.img-2.6.22-14-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda5.
title Ubuntu 7.10, memtest86+ (on /dev/sda5)
root (hd0,4)
kernel /boot/memtest86+.bin
savedefault
boot
My new grub.conf file when i installed CentOS
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,4)
# kernel /boot/vmlinuz-version ro root=/dev/sda5
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-92.1.22.el5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.18-92.1.22.el5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-92.1.22.el5.img
title CentOS (2.6.18-92.el5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.18-92.el5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-92.el5.img
title Other
rootnoverify (hd0,0)
chainloader +1
fdisk -l
Code:
Disk /dev/sda: 250.0 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 4233 34001541 7 HPFS/NTFS
/dev/sda2 4234 30401 210194460 f W95 Ext'd (LBA)
/dev/sda5 23825 30141 50735128+ 83 Linux
/dev/sda6 30141 30401 2094088+ 82 Linux swap / Solaris
/dev/sda7 4234 23024 150938644+ 83 Linux
/dev/sda8 23025 23824 6425968+ 82 Linux swap / Solaris
/dev/sda1 = Windows XP partition
/dev/sda5 = CentOS 5.2
/dev/sda7 = Ubuntu 8.10
I thought that maybe just doing this would fix the issue but i haven't tried it yet because i don't want to mess anything up.
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,4)
# kernel /boot/vmlinuz-version ro root=/dev/sda5
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,4)/boot/grub/splash.xpm.gz
hiddenmenu
title Ubuntu 8.10, kernel 2.6.27-7-generic
root (hd0,6)
uuid d2b830a3-898f-4178-b9c7-14910bb7cc8d
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=d2b830a3-898f-4178-b9c7-14910bb7cc8d ro quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet
title CentOS (2.6.18-92.1.22.el5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.18-92.1.22.el5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-92.1.22.el5.img
title CentOS (2.6.18-92.el5)
root (hd0,4)
kernel /boot/vmlinuz-2.6.18-92.el5 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.18-92.el5.img
title Other
rootnoverify (hd0,0)
chainloader +1
Another thing to note is that i'm not at this machine so i need to be able to make this change, type reboot in the terminal and it boot right back up in to Ubuntu automatically. So i kinda have just 1 chance at this. I can get to the machine if i really need to. Just a bit of a drive to do so.
Any help would be greatly appreciated.
Thank you.