LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2013, 01:27 PM   #1
kiran.ursal
Member
 
Registered: Feb 2012
Posts: 36

Rep: Reputation: Disabled
Post 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#rompt 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.

Last edited by kiran.ursal; 04-23-2013 at 01:31 PM.
 
Old 04-23-2013, 01:46 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Quote:
Originally Posted by kiran.ursal View Post
how can I take my system to its prevoius mode.
Restore from a backup.
 
Old 04-23-2013, 08:16 PM   #3
kiran.ursal
Member
 
Registered: Feb 2012
Posts: 36

Original Poster
Rep: Reputation: Disabled
Will you please elaborate how to restore backup

Last edited by kiran.ursal; 04-24-2013 at 12:00 AM.
 
Old 04-24-2013, 12:29 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Sure. What backup solution do you use and where are the backups stored?
 
Old 04-24-2013, 06:52 AM   #5
kiran.ursal
Member
 
Registered: Feb 2012
Posts: 36

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-24-2013, 05:49 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Quote:
Originally Posted by kiran.ursal View Post
(..) 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.
 
Old 04-24-2013, 07:21 PM   #7
guyonearth
Member
 
Registered: Jun 2012
Location: USA
Distribution: Ubuntu
Posts: 419

Rep: Reputation: 82
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.
 
Old 04-25-2013, 01:50 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,353
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
Quote:
Originally Posted by guyonearth View Post
It sounds like the filesystem is seriously corrupt
Really? And what would be your ace assessment how that came to be?..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CentOS kernel panic after rebooting georgewhr Linux - Software 6 11-03-2012 06:03 AM
CentOS 5.7 + Xen - Kernel Panic boogaboo Linux - Server 0 10-04-2011 04:20 PM
Centos 4.8 (Vmware) Kernel Panic jarvis823 Linux - Server 2 03-31-2010 09:02 PM
CentOS 4.4 kernel panic during installation deardron Linux - Laptop and Netbook 3 12-14-2008 09:06 PM


All times are GMT -5. The time now is 04:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration