LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-01-2010, 07:03 AM   #1
D_Redd
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Rep: Reputation: 0
Kernel panic - not syncing: Attempted to kill init


Just restored my RHEL 5.3 LINUX system to to different hardware using MONDO. Now while I was successful in doing this on my 32bit system, my 64bit system is giving me the following errors when trying to boot from GRUB:

mount: could not find filestystem '/dev/root'.
Setting up other filesystems
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init
unmounting old /dev/
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init

Here is what I have done in an attempt to resolve:

1. reboot system off of red hat rescue cd
2. changed all my devices in the fstab to not point to LABELS but to the actual device I am trying to mount ex:.. /dev/cciss/c0d0p*
3. reconfigured kernel using mkinitrd -v -f initrd*****.img (kernel)
4. changed the mtab, grub.conf and devices file to point to the correct devices and not labels
5. reboot
And continues to give me the same kernel error. ANY HELP is greatly appreciated.
 
Old 02-01-2010, 10:37 AM   #2
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
First off, if you copied entire partitions, LABELS should be just fine.

That device paths are very strange to me, never saw it. Cna you post details of your old and new hardware? As much as possible, with the special attention to MB chipset and HDD contrlorers. Also, have you used RAID on any of the systems?
 
Old 02-01-2010, 11:22 AM   #3
D_Redd
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Original Poster
Rep: Reputation: 0
First of all thanks for replying. Here is the current Partition information of the original system:

Disk /dev/sda: 292.3 GB, 292326211584 bytes
255 heads, 63 sectors/track, 35539 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1275 10241406 83 Linux
/dev/sda2 1276 4335 24579450 82 Linux swap / Solaris
/dev/sda3 4336 5610 10241437+ 83 Linux
/dev/sda4 5611 35539 240404692+ 5 Extended
/dev/sda5 5611 6885 10241406 83 Linux
/dev/sda6 6886 8160 10241406 83 Linux
/dev/sda7 8161 35539 219921786 83 Linux


VFSTAB.orig

LABEL=/ / ext3 noatime,noacl 1 1
LABEL=/home /home ext3 noatime,noacl 1 2
LABEL=/var /var ext3 noatime,noacl 1 2
LABEL=/tmp /tmp ext3 noatime,noacl 1 2
LABEL=/opt /opt ext3 noatime,noacl 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0


Here is what the grub.conf looks like:
# 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,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
#hiddenmenu
title Enterprise Linux Enterprise Linux Server (2.6.18-128.1.1.0.1.el5)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-128.1.1.0.1.el5 ro root=LABEL=/
initrd /boot/initrd-2.6.18-128.1.1.0.1.el5.img


Original device.map file:
# this device map was generated by anaconda
(hd0) /dev/sda


Here are the same files on the system that I have cloned from the original to different hardware:

Partition Table of cloned system:

Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
255 heads, 63 sectors/track, 17844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 1276 10249438+ 83 Linux
/dev/cciss/c0d0p2 1277 4337 24587482+ 82 Linux swap / Solaris
/dev/cciss/c0d0p3 4338 4720 3076447+ 83 Linux
/dev/cciss/c0d0p4 4721 17844 105418530 5 Extended
/dev/cciss/c0d0p5 4721 5103 3076416 83 Linux
/dev/cciss/c0d0p6 5104 5486 3076416 83 Linux
/dev/cciss/c0d0p7 5487 10586 40965718+ 83 Linux



FSTAB.clone:

/dev/cciss/c0d0p1 / ext3 noatime,noacl 1 1
/dev/cciss/c0d0p3 /home ext3 noatime,noacl 1 2
/dev/cciss/c0d0p7 /opt ext3 noatime,noacl 1 2
/dev/cciss/c0d0p6 /tmp ext3 noatime,noacl 1 2
/dev/cciss/c0d0p5 /var ext3 noatime,noacl 1 2
/dev/cciss/c0d0p2 swap swap defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0


grub.conf.clone

# 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,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
#hiddenmenu
title Enterprise Linux Enterprise Linux Server (2.6.18-128.1.1.0.1.el5)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-128.1.1.0.1.el5 ro root=/dev/cciss/c0d0p1
initrd /boot/initrd-2.6.18-128.1.1.0.1.el5.img

device.map.clone

# this device map was generated by anaconda
(hd0) /dev/cciss/c0d0
 
Old 02-02-2010, 05:51 AM   #4
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
I would guess that your problem is related to cciss kernel driver. It's for HP Smar-tarray controller that you obviously have on your new sever. maybe you heed to change the type of the driver in initrd image or was it somwhere it /etc/folder? I think I have done something like that when I changed my motherboard from ATI to Nvidia chipset.

You could plug in some other SAS disk and install RHEL and use that kernel and settings for your current server.

Last edited by DrLove73; 02-02-2010 at 06:07 AM.
 
Old 02-02-2010, 08:29 AM   #5
D_Redd
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Original Poster
Rep: Reputation: 0
DrLove73,

How can I recompile the kernel to have the cciss driver recognized?
 
Old 02-02-2010, 02:41 PM   #6
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
...
Quote:
Originally Posted by DrLove73 View Post
You could plug in some other SAS disk and install RHEL and use that kernel and settings for your current server.
 
  


Reply



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- not syncing: attempted to kill init! radamsiii Linux - Newbie 6 12-18-2009 03:15 AM
/sbin/init: Kernel panic - not syncing: Attempted to kill init! jalejo08 Linux - Kernel 7 07-02-2009 01:16 PM
kernel panic-not syncing: Attempted to kill init shermoste Linux - Newbie 2 11-27-2007 04:27 PM
Kernel panic - not syncing: Attempted to kill init! Kotresh Linux - Software 3 04-16-2007 08:48 AM
kernel panic - not syncing: attempted to kill init! asif2k Fedora 3 02-14-2007 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:21 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
Open Source Consulting | Domain Registration