LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 06-15-2010, 09:05 AM   #1
Godsson
LQ Newbie
 
Registered: Jul 2009
Posts: 16

Rep: Reputation: 0
Problem with Dual booting CentOs and Ubuntu


Hi guys,
I am trying to dual boot centos and ubuntu. I have tried installing centos first and ubuntu second, however when i install ubuntu i don see my cenos in ubuntus grub. The same goes for vice versa when I install ubuntu first and centos second. I don see ubuntu in the centos grub

I then tried not installing grub while installing the second operating system so the first grub remains but that did not help.

Now I am using centos grib but I dont know how to modify my grub.conf to include ubuntu as ubuntu10.4 used grub 2 and centos5.5 uses grub.

While installing ubuntu second I did not install grub and I got this message --> you will need to boot manually with the /vmlinuz kernel on partition /dev/sdb1 and root=/dev/sdb1 passsed as kernel argument. I dont know what this means and how to do that.

[root@labstation etc]# fdisk -l

Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 6387 51199155 83 Linux
/dev/sda3 6388 12761 51199155 83 Linux
/dev/sda4 12762 30394 141637072+ 5 Extended
/dev/sda5 12762 14036 10241406 83 Linux
/dev/sda6 14037 14546 4096543+ 82 Linux swap / Solaris

Disk /dev/sdb: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 29172 234315776 83 Linux
/dev/sdb2 29172 30395 9822209 5 Extended
/dev/sdb5 29172 30395 9822208 82 Linux swap / Solaris


[root@labstation etc]# cat /boot/grub/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,0)
# kernel /vmlinuz-version ro root=/dev/sda5
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.3.1.el5PAE)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.3.1.el5PAE ro root=LABEL=/
initrd /initrd-2.6.18-194.3.1.el5PAE.img
title CentOS (2.6.18-194.el5PAE)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.el5PAE ro root=LABEL=/
initrd /initrd-2.6.18-194.el5PAE.img

[root@labstation etc]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 9.5G 1.3G 7.8G 15% /
/dev/sda3 48G 180M 45G 1% /home
/dev/sda2 48G 180M 45G 1% /opt
/dev/sda1 99M 17M 78M 18% /boot
tmpfs 2.0G 0 2.0G 0% /dev/shm
 
Old 06-15-2010, 09:12 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,795

Rep: Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923Reputation: 923
Easiest will be to leave Centos in place and reinstall grub2 in Ubuntu - or just reinstall Ubuntu again. Choose to install grub[2] to the root partition.
Then add the following to the end of your Centos grub.conf (adjust for appropriate partitions)
Code:
title Ubuntu
root (hd1,0)
configfile /boot/grub/menu.lst
 
Old 06-15-2010, 09:21 AM   #3
Godsson
LQ Newbie
 
Registered: Jul 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
Easiest will be to leave Centos in place and reinstall grub2 in Ubuntu - or just reinstall Ubuntu again. Choose to install grub[2] to the root partition.
Then add the following to the end of your Centos grub.conf (adjust for appropriate partitions)
Code:
title Ubuntu
root (hd1,0)
configfile /boot/grub/menu.lst
What is
root (hd1,0)
root (hd0,0)
Why did you choose hd1? Can you please explain
 
Old 06-16-2010, 09:38 AM   #4
Godsson
LQ Newbie
 
Registered: Jul 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Please guys im stuck. I have reinstalled ubuntu and i have grub 2 right now. when i run the update-grub command i get

Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-21-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-21-generic-pae
Found memtest86+ image: /boot/memtest86+.bin
Found CentOS release 5.5 (Final) on /dev/sda5
done

However when I reboot i do not see CentOs in the menu. Please any suggestions. Thanks
 
Old 06-16-2010, 10:34 AM   #5
xweb
Member
 
Registered: Dec 2005
Location: norfolk, va
Distribution: kubuntu, debian
Posts: 36

Rep: Reputation: 16
* What version of grub are you installing 1 or 2
The configuration is different on each.

(hd?,?) stands for (hd[drive number], [partition number]) they both start counting at 0
 
Old 06-16-2010, 10:37 AM   #6
Godsson
LQ Newbie
 
Registered: Jul 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by xweb View Post
* What version of grub are you installing 1 or 2
The configuration is different on each.

(hd?,?) stands for (hd[drive number], [partition number]) they both start counting at 0
I reinstalled Ubuntu 10.4 and it installed grub 2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with dual booting Ubuntu and windows xp ceon2002 Linux - General 8 06-12-2008 09:43 PM
Problem with grub dual booting windows xp and ubuntu 7.04 Frozen.past Linux - Newbie 36 01-31-2008 08:49 AM
Dual booting problem (ubuntu 5.04) fireedo Ubuntu 12 04-24-2007 12:34 PM
problem dual booting Vista and Ubuntu 6.10 with 2 sata drives skails22 Linux - Newbie 2 02-06-2007 07:57 PM
Dual Booting CentOS and Redhat wtilton Linux - Software 6 07-14-2006 11:50 AM


All times are GMT -5. The time now is 04:54 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration