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
  Search this Thread
Old 06-29-2011, 11:54 PM   #1
voltotron
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Rep: Reputation: Disabled
HELP! My CentOS kernel version matches GRUB but does not boot!


I have 2 distros sharing one drive, CentOS 5.6 and Ubuntu 11.04. I installed them both and had them running great. I installed CentOS 1st and then Ubuntu. I used the CentOS Druid Partitioner to create the partition table. Here's the partition table:

hdb1 /boot ext3 for centos kernel Primary
hdb2 /boot_ubuntu ext3 for ubuntu kernel Primary
hdb3 swap swap share between distros Primary
hdb4 extended extended extended partition Extended
hdb5 /var ext3 for centos only Logical
hdb6 / ext3 for centos root Logical
hdb7 /ubuntu ext3 for ubuntu install Logical
hdb8 /home ext3 shared between distros Logical

Then I installed ubuntu and everything was great. At some point I had the bright idea of messing around with compiz in Ubuntu and I thought I had broken the "user defined session" because it was blank when I would login to it. Finally I decided to reinstall ubuntu and reformat the ubuntu related partitions. I shouldn't have done that because the /home partition was shared with centos and it messed up my centos. I tried to fix it but only made it worse so I just reinstalled centos reformatting the related partitions and choosing not to install a bootloader. The install completed but didn't boot on restart. My clean install of ubuntu still boots but when I choose centos from the ubuntu grub menu it isn't able to boot, it goes to a black screen and hangs.

I checked my centos kernel version against the one in my grub and they matched. I checked my kernel version for centos from my ubuntu gui by looking here:

/media/_boot/config-2.6.18-238.el5

I usually have a clue as to what I need to do but this time I'm really stuck. I am however, confident one of you linux geniuses will give me a really simple solution that WILL make me look bad, so I'm not too worried.

(I'm planning to run apache on my centos for hosting some websites but for now I'm just trying to get my feet wet with linux, learn the fundamentals, important commands and essential trouble shooting. I will appreciate anyone's effort to spare me from zeroing out my drive and starting all over again! linux is really cool BTW and I'm having fun learning about it although I do wish centos looked as slick as Red Hat Enterprise.)
 
Old 06-30-2011, 12:29 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,987

Rep: Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217
Believe it or not we need more info - go here and post the RESULTS.txt (no personal data)
 
Old 06-30-2011, 12:42 AM   #3
flamelord
Member
 
Registered: Jun 2011
Distribution: Arch Linux
Posts: 151

Rep: Reputation: 34
My guess is that grub is using the UUID of your partition, which changed when you re-installed CentOS. Try re-generating the grub.cfg.
 
Old 06-30-2011, 01:38 AM   #4
voltotron
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
RESULTS.txt Attached

That was fast, thanks for the help! I attached the file, that script is awesome!
Attached Files
File Type: txt RESULTS.txt (19.4 KB, 12 views)
 
Old 06-30-2011, 01:57 AM   #5
voltotron
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
I think I see the problem...

Tell me if you agree. I think the problem is that I choose not to install the bootloader for CentOS. I know the bootloader installs partly into the MBR and the rest goes in the boot sector;however, I thought I was covered by installing the bootloader for ubuntu alone. I was supposed to install the bootloader to my /boot for CentOS, wasn't I? Is that correct? That's all I can come up with, my knowledge is still pretty limited. If that's the case I have an idea what I should do but I'm not sure how to do it. I would appreciate it if someone could give me some detailed NOOB oriented instructions! BTW thank you for the help earlier, you are true professionals.
 
Old 06-30-2011, 01:58 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,987

Rep: Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217
See @flamelord's post - the Centos root UUID is changed. That's why I love this script - it shows all the info you need.
@voltotron, try a "sudo update-grub" - it should rebuild that grub.cfg. If you get an update in the meantime it will do the update-grub for you and apparently the problem will appear to fix itself.
 
Old 06-30-2011, 02:48 AM   #7
voltotron
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Yup that was pretty cool. I ran "sudo update-grub" from inside Ubuntu. It did update and it attempted to boot but it returned "kernal panic!", sounds alarming, LOL. I saw a post about it earlier but I disregarded it because it didn't apply. Any Ideas? I'm still trying to find the post you mentioned. Don't know if you'll need it but I'm going to run the script again and post results.
 
Old 06-30-2011, 02:57 AM   #8
voltotron
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
RESULTS after running "sudo update-grub"

I ran the script again after running "sudo update-grub". here are the results. Don't know if it's supposed to be any different from the first results but I'm posting it just in-case. I'm going to find the post on the UUID now.
Attached Files
File Type: txt RESULTS2.txt (18.9 KB, 10 views)
 
Old 06-30-2011, 04:33 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,987

Rep: Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217
Quote:
Originally Posted by voltotron View Post
I'm still trying to find the post you mentioned
Three above mine (in this thread) ...
Quote:
It did update and it attempted to boot but it returned "kernal panic!"
If you got a kernel panic, grub has done it's job. Start another thread with any (all) relevant info.

Last edited by syg00; 06-30-2011 at 04:36 AM.
 
Old 06-30-2011, 06:33 AM   #10
voltotron
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
I'll do that. Thank you for everything and your quick replies. I've learned allot with your help.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Latest Version of VirtualBox Kernel Errors on CentOS 5, i386 Doctorzongo Linux - Desktop 15 04-21-2012 09:42 AM
[SOLVED] Dual Boot Slackware with CentOS using CentOS GRUB frankbell Slackware 9 10-26-2011 12:04 PM
Centos / RHEL 5.3 grub / boot problems.. rory_f Red Hat 11 04-22-2010 05:12 PM
What would be the most up-to-date kernel version I could compile for CentOS 5.3? neocookie Linux - Kernel 3 02-22-2010 02:43 PM
bash: routine outputting both matches and non-matches separately??? Bebo Programming 8 07-19-2004 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:54 AM.

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