LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel Panic In CentOs-6.2 (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-panic-in-centos-6-2-a-4175459325/)

kiran.ursal 04-23-2013 01:27 PM

Kernel Panic In CentOs-6.2
 
Respective sir,
I have Centos-6.2 on my system(P-4,1GB RAM, 80GB hdd).While working on my system I just face one problem my all folder get symbol of lock so I go for open terminal but my terminal is also not opened.So I shut down my pc without proper way.After restart my system I got shell prompt.their is one message (Give root password or press Ctrl-d)
so I give my password I got root@system#:prompt which is saying run fsck manually without -a -p
so I run this option and again restart my system.In single mode user Here on root prompt I just type fsck -t ext3 /dev/sda3 and press enter that time I got warning message that checking mounted filesystem may damage your filesystem but I ignor the warning and I start file checking and pressing Enter continously. after some time I restart my computer and when I try to start in normal mode that time I got following error.

mount:/dev/sda3 already mounted or /sysroot busy
according to mtab,/dev/sda3 is already mounted on /syroot.


I know I myself created this problem by forcefully checking mounted filesystem but after this I try take another hard disk in that harddisk I have Ubuntu 12.04 LTS I start ubuntu in single user mode and here when I try to mount the centos root partition (i.e mount -t ext3 /dev/sda3 /media) in ubuntu that time I got message on prompt as follow

mount: mount point /mount does not exist
root@kiran-System-Name:/# mount -t ext3 /dev/sda3 /media
mount: wrong fs type, bad option, bad superblock on /dev/sda3,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so


After this when I try to check file system by(fsck this is also not working)

Then after this I start my system in normal mode and when Idouble click on my centos root partition that time it is showing only lost+found folder in it no other folders are their so how can I take my system to its prevoius mode.

unSpawn 04-23-2013 01:46 PM

Quote:

Originally Posted by kiran.ursal (Post 4937417)
how can I take my system to its prevoius mode.

Restore from a backup.

kiran.ursal 04-23-2013 08:16 PM

Will you please elaborate how to restore backup

unSpawn 04-24-2013 12:29 AM

Sure. What backup solution do you use and where are the backups stored?

kiran.ursal 04-24-2013 06:52 AM

Before some time I mount my centos filesystem on ubuntu12.04's filesystem and then I gone to shell and try following
Quote:

root@kiran-System-Name:# fsck.ext4 -b 32768 /dev/sda3
that time I got huge lines of output and atlast Igot
Quote:

/dev/sda3: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda3: 413415/1589248 files (0.2% non-contiguous), 3061475/6349056 blocks
After this when I try to mount my partition on ubuntu by
Quote:

mount -t ext4 /dev/sda3 /media
It mounted successfully,But
when I enter in /media folder that time it contains only lost+found folder
an this folder contains huge numbers of files starting their names with #725619 like this.


So please guide me how to recover this files from this state as per my knowledge this all files are having inode their names starting with their inode number.So please help me if somebody know the solution on this condition

unSpawn 04-24-2013 05:49 PM

Quote:

Originally Posted by kiran.ursal (Post 4937417)
(..) I shut down my pc without proper way. (..) I got warning message that checking mounted filesystem may damage your filesystem but I ignor the warning (..) I know I myself created this problem by forcefully checking mounted filesystem but

I'm sorry to break it to you this way but there is no "but": you brought this onto yourself by forcefully shutting down a system completely unnecessarily and ignoring warnings and deliberately forcing a fsck on a mounted file system.

Simply put when a file system hierarchy is corrupted and fsck tries to salvage or "repair" the situation remaining entities don't keep their names. Now if you would have a backup you would be able to verify items by their hash (md5sum). Now all that remains is running 'file' on them to see what type of file they are, if possible run file type-related tools to extract information (like for example EXIF nfo in image files), and else try to open them.


Next time think (and ask) before you act.

guyonearth 04-24-2013 07:21 PM

It sounds like the filesystem is seriously corrupt, but I would run a check on the hard drive itself, to make sure it is not failing.

unSpawn 04-25-2013 01:50 AM

Quote:

Originally Posted by guyonearth (Post 4938306)
It sounds like the filesystem is seriously corrupt

Really? And what would be your ace assessment how that came to be?..


All times are GMT -5. The time now is 02:16 AM.