Linux Boot Problems

D_Redd
D_Redd used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Monis MontherSystem Architect

Commented:
Ok first of all to pin point where the problem is actually starting tell me when you boot the machine do you reach the following

1- Grub Splash Screen
If yes

2- Do you get to the point where it says

Welcome to Red Hat Enterprise Linux 5.3
Press I to ......
(after that the services start one by one with an Ok)


Author

Commented:
Yes it gets to the Grub splash screen,  But does not make it to the point of bringing up the services.  Dies right before that:
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


Artysystem administrator
Top Expert 2007
Commented:
> Just restored my RHEL 5.3 LINUX
If  you have a support contract with RH that  is still active,  you may ask them.

> 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


Do you mean you are trying to boot 64 bit kernel or old 32bit but on new hardware?
If you are using 64bit kernel, please make sure your cciss driver is recompiled for 64bit kernel (if you where using native HP's  cciss driver)

To get more info you may redirect output to console (COM port if you have it), then connect to it with any terminal and grub all output while booting. http://publib.boulder.ibm.com/infocenter/clresctr/vxrx/index.jsp?topic=/com.ibm.cluster.csm16.install.doc/am7il_grubconf.html

AFAIK there is no easy way to migrate from 32bit to 64bit RHEL, so consider entire OS reinstall.
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

Monis MontherSystem Architect

Commented:
Since you get to the splash screen the you have successfully passed

1- mbr
2- Grub stage 1

your problem is either

grub stage2
Kernel
initrd

Since you did not reach the point where you get welcome to Red Hat press I then there is no point of plauing with /etc/fstab or anything on the system as you did not reach the point where the startup scripts read from these files.

Check your grub configuration is pointing to the correct Kernel, initrd and root partition/volume

From rescue CD install a different  Kernel and initrd and try booting to them

Dont remove the old ones so in case you are still in trouble you can always revert to the point you were.
 

Author

Commented:
Nopius,

i created the clone image from 2 seperate systems 1 was a 32bit server and the other a 64 bit.  Both of these I am trying to clone on to older HP servers.

Can you tell me how I can recompile the cciss driver as suggested.

small student,
Can you give me instructions on how to this as well:
From rescue CD install a different  Kernel and initrd and try booting to them

Dont remove the old ones so in case you are still in trouble you can always revert to the point you were.
 
Unfortunately I am new to linux and still learning so any help you can provide is greatly apprciated!

Thanks again!!!
Commented:
Problem Fixed!!!  Turns out that is was not loading the cciss drivers for the HP controller. Did the following to fix:

edit /etc/modprobe.conf:

alias scsi_hostadapter2 cciss

run:

mkinitrd -fv initrd-******.img (***** Kernel)

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial