Question

Linux kernel panic when booting my RHEL4

Asked by: david-marti

Hi experts,

Suddenly, when I boot my RedHat Enterprise Server 4 Linux, I get this messages and can't boot the kernel:

...
Red Hat nash version 4.2.1.13 starting
mount: error 6 mounting ext3
mount: error 2 mounting none
switchroot: mount failed: 22
umount /initrd/dev failed: 2
Kernel panic - not syncing: Attempted to kill init!

Any help will be apprecied.

Thanks in advance.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-08-03 at 02:26:57ID24621026
Tags

Linux kernel boot

Topic

Red Hat Linux

Participating Experts
1
Points
500
Comments
28

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Kernel Panic: no init found
    This what i get when i boot after inproper shut down, - mkrootdev : label / not found - Mounting root filesystem - mount: error 2 mounting ext3 - pivotroot: pivot_root (/sysroot, /sysroot/initrd) failed : 2 - umount /initrd/proc failed : 2 - Fre...
  2. Kernel Panic
    I have recently tried to install the latest linux kernel on my Enterprise AS (Advanced Server) machine. When I try to boot the system with this new kernel I get the following error: VFS: Cannot open root device "LABEL=/" or unknown block(0,0) Please append a correc...
  3. Linux crashing...kernel panic
    hey list, this is very urgent and requires a quick response. this query pertains to linux kernel crash which is happening very often and the messages I get at the screen is as follows: ======================================================== Unable to handle Kernel NULL point...
  4. Kernel panic on Red Hat enterprise
    Hi experts, I am having the following error during the boot up of my system Red Hat nash version 4.2.1.6 starting exec of init (/sbin/init) failed!!!: 5 umount /initrd/dev failed: 2 Kernel panic - not syncing: Attempted to kill init! Now let me try to explain how i got this...
  5. Red Hat Enterprise 4.0 kernel panic
    Kernel 2.6.9-11.ELsmp My system panic'd last night, tried a reboot, panic'd again and stopped trying. A simple reset this morning brought it back up with no issues. Limiited experience reading redhat crash logs, but it looks like this is a software issue as there is a line...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: dainokPosted on 2009-08-03 at 07:59:07ID: 25004930

The system is reporting that it can't mount dome filesystems called ext3 and none.
Try boot into runlevel 1 editing the proper boot entry from grub (select the entry, press e to edit and add 1 at the end of the parameter line). Finally check /etc/fstab, it should be like the one attached.

Instead edit grub, you can boot into rescue mode and then check the file.

If you have still problems, please paste your /etc/fstab and /boot/grub/menu.lst.

/dev/rootvg/rootvol     /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
/dev/rootvg/swapvol     swap                    swap    defaults        0 0

                                              
1:
2:
3:
4:
5:
6:
7:

Select allOpen in new window

 

by: david-martiPosted on 2009-08-04 at 02:12:46ID: 25011690

Hi, thanks for your reply, but I'm unable to boot into runlevel 1.

Attached is a screenshot.

 

by: david-martiPosted on 2009-08-04 at 02:20:52ID: 25011729

Attached is a screenshot without "quiet" parameter on kernel boot. Perhaps it helps a little more to see what is causing this boot error.

Thanks.

  • Imagen-1.png
    • 16 KB

    RHEL4 Boot problem without quiet kernel boot parameter

    RHEL4 Boot problem without quiet kernel boot parameter
 

by: dainokPosted on 2009-08-04 at 02:21:33ID: 25011734

Ok, probably initrd is corrupted. Boot from a Redhat CD and type rescue instead linux to boot into rescue mode. Mount your / (root) and /boot filesystems into /new_root and check (or post) your /new_root/etc/fstab and /new_root/boot/grub/grub.conf.

If both files are corrected, you can regenerate initrd doing:
chroot /new_root
mkinitrd /boot/initrd-2.6.9-89.ELsmp.img 2.6.9-89.ELsmp

 

by: dainokPosted on 2009-08-04 at 02:25:25ID: 25011757

I read now your second screenshot; which is you root filesystem? Grub is configured to use /dev/sda3, is it correct?

 

by: david-martiPosted on 2009-08-04 at 02:31:17ID: 25011791

Thanks for your fast reply.

I'm booting with Redhat ES 4 DVD in rescue mode, but when I issue the command chroot it returns this error: chroot: cannot execute /bin/sh: No such file or directory.

 

by: david-martiPosted on 2009-08-04 at 02:35:00ID: 25011803

Yes, /dev/sda3 is the partition with the root filesystem.

 

by: dainokPosted on 2009-08-04 at 02:37:42ID: 25011811

chroot takes two command, the new root and a shell. If you don't specify a shell chroot try to execute (new_root)/bin/sh and it should exists. Are you sure you've mounted the root filesystem?

Do a "ls /new_root" and see what it contains. Also do a fdisk -l /dev/sda to see how many partitions you have.

 

by: david-martiPosted on 2009-08-04 at 02:44:51ID: 25011845

This screenshot is fdisk -l. You can see /dev/sda with 3 partitions:

sda1 is /boot
sda2 is swap
sda3 is /

 

by: david-martiPosted on 2009-08-04 at 02:47:31ID: 25011860

This screenshot is the mount process for root filesystem and a ls -l.

 

by: dainokPosted on 2009-08-04 at 02:51:10ID: 25011876

It seems ok, try a chroot usgin bash shell: chroot /tmp/nroot /bin/bash

Also do:
ls /tmp/nroot/bin/*sh
cat /tmp/nroot/etc/fstab

 

by: david-martiPosted on 2009-08-04 at 03:09:52ID: 25011963

same error when trying chroot with bash. This is the screenshot with this error, plus ls /tmp/nroot/bin/*sh and a cat from fstab file.

 

by: david-martiPosted on 2009-08-04 at 03:25:00ID: 25012036

I tested the chroot with Redhat 4 ES DVD and with Backtrack 4. Both same error ...

 

by: david-martiPosted on 2009-08-04 at 04:29:48ID: 25012415

I have a doubt: If initrd was corrupted ... kernel modules (second screenshot on this thread) will be loaded? If you see the second screenshot, you'll see several kernel modules load, and, I think it's only possible if the initrd is successfully loaded into memory.

 

by: dainokPosted on 2009-08-04 at 04:32:41ID: 25012427

I can't understand why /tmp/nroot/bin/bash exists but chroot cannot find it, try to execute it:

mount /dev/sda3 /tmp/nroot
ls /tmp/nroot/bin/bash
/tmp/nroot/bin/bash
chroot /tmp/nroot /bin/bash

The fstab file seems correct, but maybe it contains dirty character (boot messages report about "ext3" and "none" filesystem, maybe an EOL is missing). Backup it and create a new fstab with only needed entry, then reboot:

/dev/sda3 / ext3 defaults 1 1
/dev/sda2 swap swap defaults 0 0
none /proc proc defaults 0 0





 

by: dainokPosted on 2009-08-04 at 04:34:30ID: 25012437

I thought initrd was corrupted before I saw your second screenshot.

 

by: david-martiPosted on 2009-08-04 at 07:08:42ID: 25013965

It's very extrange for me too. I still can't do a chroot ...

 

by: david-martiPosted on 2009-08-04 at 07:21:13ID: 25014091

I backup and recreate the /etc/fstab as your recomendation, but same error on boot. I then, deleted the /etc/fstab to see if there is another type of error, but same error on boot.

It seems that root filesystem can't be mounted (and /etc/fstab is never accessed, of course), so I'm completely lost.

What can I do to solve this problem?

What "error 6 mounting ext3" means?

 

by: dainokPosted on 2009-08-04 at 07:22:06ID: 25014104

I just tried to mount and chroot a RHEL5 server, and I did it following the steps I said before. Could be the filesystem corrupted? What happened between a successful boot and the problem? You can do a chroot using ksh, csh, tcsh, csh and sh instead bash.

Have you tried to recreate a new and simple fstab file?

 

by: dainokPosted on 2009-08-04 at 07:27:00ID: 25014157

"error 6 mounting ext3" could be caused by incompatible controller disk, but i suppose you haven't change anything when the problem happens.

 

by: dainokPosted on 2009-08-04 at 07:27:39ID: 25014164

Have you any USB storage device connected?

 

by: david-martiPosted on 2009-08-04 at 07:44:31ID: 25014343

No, I don't have a USB device attached to this server.
No, I don't change anything (as far as I know). There some external people having access to this server. I was alerted by my coworker last week when the server was rebooted and server never were online.
Yes, I recreated the fstab but as I told before, the boot process don't seem to reach this file.

 

by: david-martiPosted on 2009-08-04 at 07:52:48ID: 25014431

If the filesystem was corrupted, can I mount it on a linux rescue session?

 

by: dainokPosted on 2009-08-04 at 07:53:47ID: 25014440

Try a fsck on /dev/sda3, I have no more ideas.

 

by: david-martiPosted on 2009-08-04 at 07:59:23ID: 25014487

The fsck was the first thing I do ...

I appreciate very much your help and time.

 

by: dainokPosted on 2009-08-24 at 05:14:25ID: 25167503

I successful replicate you chroot problem: chroot: cannot execute /bin/sh: No such file or directory

Probably few libraries bash need are missing in chroot filestytem.
Check if this files are present:

(i386)
# ldd /bin/bash
        libtermcap.so.2 => /lib/libtermcap.so.2 (0x00378000)
        libdl.so.2 => /lib/libdl.so.2 (0x0091e000)
        libc.so.6 => /lib/libc.so.6 (0x00947000)
        /lib/ld-linux.so.2 (0x00901000)

(x86_64)
# ldd /bin/bash
        libtermcap.so.2 => /lib64/libtermcap.so.2 (0x0000003c9a200000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000003c99a00000)
        libc.so.6 => /lib64/tls/libc.so.6 (0x0000003c99700000)
        /lib64/ld-linux-x86-64.so.2 (0x0000003c99500000)

 

by: david-martiPosted on 2009-08-26 at 01:39:22ID: 25185403

Great! If I boot my system with linux rescue DVD, the /mnt/sysimage/lib is missing!! (You can see an screenshot on this thread, Imagen-4.png)

I don't see this "little" detail before.

If /lib directory was removed, this can cause the boot problem? I think the answer is yes!

 

by: dainokPosted on 2009-08-26 at 01:44:55ID: 25185437

I think yes too.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...