kernel panic due to file system corruption

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi
I have RHEL 4 AS running on HP ProLiant DL580 G5. The machine was running
fine last week but was shutted down abruptly due to power and ups faliure.
When i booted it again i got following error :

Redhat Nash Version 4.2.1.8
can't access (null)
exec of init ((null)) failed!!! : 14
umount /initrd/dev failed :2
Kernel panic -not syncing! Attempted to kill init!!

When i booted from the RHEL 4 CD#1 into the rescue mode, it lodes the cciss
drivers and ask for whether to mount /mnt/sysimage or directly dropped to
the shell. I choose continue so that /mnt/sysimage could be mounted but it
shows an error that no linux partitions found , dropping to the shell.

At the shell when i did fdisk -l , it gives following output :

Disk /dev/cciss/c0d0: 146.7 GB, 146745262080 bytes
255 heads, 63 sectors/track, 17840 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000ba26d

Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 127 1020096 83 Linux
/dev/cciss/c0d0p2 128 7775 61432560 83 Linux
/dev/cciss/c0d0p3 7776 13894 49150867+ 82 Linux swap / Solaris
/dev/cciss/c0d0p4 13895 17840 31696245 f W95 Ext'd (LBA)
/dev/cciss/c0d0p5 13895 17718 30716248+ 83 Linux

Here c0d0p1 is /boot, c0d0p2 is / and c0d0p5 is /opt.

I tried to mount all the partitions and they are mounting fine but the /
partition (c0d0p2) does not have /bin and /etc folders, insted of which
there are files of same name.

when i tried mkinitrd, it says command not found.

I am not very litrate about RAID . Please help me in correcting this
problem, its very urgent coz we have a demo next monday.

Here is my grub.conf file::

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/cciss/c0d0p2
# initrd /initrd-version.img
boot=/dev/cciss/c0d0
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-42.ELsmp)
root (hd0,0)
kernel /vmlinuz-2.6.9-42.ELsmp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-42.ELsmp.img
title Red Hat Enterprise Linux AS-up (2.6.9-42.EL)
root (hd0,0)
kernel /vmlinuz-2.6.9-42.EL ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.9-42.EL.img


To make things worse, I booted from fedora 9 cd in rescue mode and tried
following commands:

device (hd0) /dev/cciss/c0d0
root (hd0,0)
setup (hd0)

Now even the grub is not loading, it just displays Grub Error without any
error number

I've ran fsck on /dev/cciss/c0d0p1, p2 and p5, but nothing..

my /bin and /etc folders are not deleted but are corrupted i.e when i ls
into my root directory, i can see bin and etc but as files (not as folder ).
Is there any way to repair the etc and bin to convert them back to normal
/etc and /bin folders with all the configuration files intact..

here is the ls -l of my root directory mounted in mnt after booting with
knoppix live disk:::

total 728
-rwxr-xr-x 1 root root 88468 Feb 10 2006 bin     <--- file insted of
directory
drwxr-xr-x 4 root root 4096 Mar 11 2008 boot
drwxr-xr-x 2 root root 4096 Mar 11 2008 dev
-rwxr-xr-x 1 root root 464080 Jul 4 2006 etc       <--- file insted of
directory
-rw-r--r-- 1 root root 0 May 27 02:21 halt
drwxr-xr-x 19 root root 4096 May 8 06:38 home
drwxr-xr-x 2 root root 4096 Aug 12 2004 initrd
drwx------ 86 root root 16384 Mar 12 2008 lost+found
drwxr-xr-x 3 root root 4096 May 27 00:34 media
drwxr-xr-x 2 root root 4096 Jul 11 2006 misc
drwxr-xr-x 2 root root 4096 Aug 12 2004 mnt
drwxr-xr-x 10 root root 4096 May 4 01:11 opt
drwxr-xr-x 2 root root 4096 Mar 12 2008 proc
-rwxr-xr-x 1 root root 1484 Dec 5 2005 root               <--- file insted
of directory
lrwxrwxrwx 1 root root 19 Mar 11 2008 sbin -> ../init.d/haldaemon
drwxr-xr-x 2 root root 4096 Mar 11 2008 selinux
drwxr-xr-x 2 root root 4096 Aug 12 2004 srv
drwxr-xr-x 2 root root 4096 Mar 12 2008 sys
drwxr-xr-x 3 root root 4096 Mar 11 2008 tftpboot
drwxrwxrwt 44 root root 16384 May 27 02:21 tmp
drwxr-xr-x 2 root root 4096 Jul 21 2008 user
drwxr-xr-x 17 root root 4096 Sep 25 2008 usr
drwxr-xr-x 24 root root 4096 Mar 13 2008 vars

Can the original folders be recovered...

-- 
View this message in context: http://www.nabble.com/kernel-panic-due-to-file-system-corruption-tp23827734p23827734.html
Sent from the Ext3 - User mailing list archive at Nabble.com.

_______________________________________________
Ext3-users mailing list
Ext3-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux