LinuxQuestions.org
Visit Jeremy's Blog.
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 12-13-2009, 05:21 AM   #1
Dave_Devnull
Member
 
Registered: May 2009
Posts: 142

Rep: Reputation: 24
CentOS - woes of multibooting Kernel Panic


After a few years of amateur playing with Debian & Ubuntu (which I solidly adore) I felt it was time to look at some kind of RedHat variant. So I picked Cent, but on my multiboot testbox it plain old refuses to boot.

The box concerned already has Win2k3 and Ubuntu 9.10 booting with Grub2. I added Cent from a cover disc (5.2) as it's only 'too look at' and installed it to /dev/sdb4. When I was offered the chance to add a bootloader, I did *not* as I already have Grub2 booting what's on the first drive.

The basic relevent disc layout is like this
/dev/sda1 - windows 2k3
/dev/sda5 - Ubuntu 9.10
/dev/sdb4 - Cent 5.2

Contents of the interesting parts of /dev/sdb4:
/dec/sdb4/boot
initrd-2.6.18-92.el5.img
System.map-2.6.18-92.el5
config-2.6.18-92.el5
symvers-2.6.18-92.el5.gz
vmlinuz-2.6.18-92.el5
PLUS subdir: /grub {contains just splash.xpm.gz}

Grub2 'helpfully' added an entry for Cent 5.2, but on booting it STB's with a Kernel Panic, so I adopted to do it by hand from the Grub CLI. Here is what I did:

root (hd1,4)
linux /boot/vmlinuz-2.6.18-92.el5 ro root=/dev/sdb4
initrd /boot/initrd-2.6.18-92.el5.img
boot

Initially it starts to boot but sticks at fairly quickly at:
Switchroot: Mount Failed: No such file or directory.
Kernel Panic - not syncing: Attempted to kill init

I could really use some pointers as to what I need to change/fix to get this to work. My limited knowledge of Linux tells me Kernel panic = bad, but I can't help but think this is probably a remarkably simple problem to fix and it's staring me in the face :-)

Any help appreciated.

Last edited by Dave_Devnull; 12-14-2009 at 01:26 AM. Reason: Corrected missing ro root=/dev/sdb4 chunk
 
Old 12-13-2009, 04:34 PM   #2
adam999
Member
 
Registered: Sep 2006
Posts: 106

Rep: Reputation: 18
hi dave,
you'll need to tell grub where the root partition is
Code:
root (hd1,4)
kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/(wherever this is) rhgb
initrd /initrd-2.6.18-92.el5.img
boot
 
Old 12-14-2009, 01:28 AM   #3
Dave_Devnull
Member
 
Registered: May 2009
Posts: 142

Original Poster
Rep: Reputation: 24
Thanks Adam, but I'd already done that and missed it off my post - apologies for that :-O Also the kernel command does not appear in grub2, it has been replaced by 'linux'. But thanks for the suggestions.

My logic thinks there is something missing when control is handed over to /sdb4
 
  


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
kernel panic hangs boot on centos dutler Linux - General 6 02-06-2009 11:08 PM
CentOS 4.4 kernel panic during installation deardron Linux - Laptop and Netbook 3 12-14-2008 09:06 PM
Centos Install - Kernel Panic Error? RobertNikic Linux - General 2 06-21-2008 03:32 PM
"Kernel panic - not syncing: Attempted to kill init!" after Yum update, CentOS 4.4 TestedDoughnut Linux - General 7 02-15-2007 04:22 PM
CentOS install probelm - kernel panic cmarnell Linux - Newbie 9 04-25-2006 11:08 AM

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

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

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
Open Source Consulting | Domain Registration