LinuxQuestions.org
Help answer threads with 0 replies.
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 01-29-2013, 01:02 PM   #1
Muhammad Hamid Ashraf
LQ Newbie
 
Registered: Dec 2012
Location: Islamabad, Pakistan
Distribution: centOS5, RHEL,centOS6.3, Fedora
Posts: 17

Rep: Reputation: Disabled
Unhappy FileSystems errors at boot time


I am using centOS 6.3 and recently installed it. From 2 to 3 days i am facing some filesystem errors at boot time which give the following message:

/dev/sda2 contains a file with errors, check forced
Unattached inode 262524

/dev/sda2: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
(i-e ., without -a or -p options)

Warning--SELinux is active
Run 'sentenforce1' to reenable


Now i actually don't know whats the problem and what should i do?
 
Old 01-29-2013, 01:11 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,654

Rep: Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255Reputation: 1255
It sounds like the system was just turned off rather than shutdown. Doing that leaves the filesystem in an inconsistent state, which requires an fsck run to repair it. The more applications are active, the more likely that will happen.
 
Old 01-29-2013, 01:11 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,349

Rep: Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910
Quote:
Originally Posted by Muhammad Hamid Ashraf View Post
I am using centOS 6.3 and recently installed it. From 2 to 3 days i am facing some filesystem errors at boot time which give the following message:

/dev/sda2 contains a file with errors, check forced
Unattached inode 262524

/dev/sda2: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
(i-e ., without -a or -p options)

Warning--SELinux is active
Run 'sentenforce1' to reenable
Now i actually don't know whats the problem and what should i do?
Well, did you read the screen?? It tells you what to do:
  • Run setenforce1 as it tells you
  • Run fsck manually on the damaged file system, as it tells you. That is, "fsck /dev/sda2".
And if your system has been down for 3 DAYS now, have you tried to run the commands the system is telling you to run??? Problems like this are usually caused by improper shutdowns.
 
Old 01-29-2013, 01:21 PM   #4
Muhammad Hamid Ashraf
LQ Newbie
 
Registered: Dec 2012
Location: Islamabad, Pakistan
Distribution: centOS5, RHEL,centOS6.3, Fedora
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jpollard View Post
It sounds like the system was just turned off rather than shutdown. Doing that leaves the filesystem in an inconsistent state, which requires an fsck run to repair it. The more applications are active, the more likely that will happen.
I used the system yesterday and i had shut it down properly. Even today i have tried couple of times by giving proper reboot command after i had performed fsck but it still gives the same message.
 
Old 01-29-2013, 01:23 PM   #5
Muhammad Hamid Ashraf
LQ Newbie
 
Registered: Dec 2012
Location: Islamabad, Pakistan
Distribution: centOS5, RHEL,centOS6.3, Fedora
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Well, did you read the screen?? It tells you what to do:
  • Run setenforce1 as it tells you
  • Run fsck manually on the damaged file system, as it tells you. That is, "fsck /dev/sda2".
And if your system has been down for 3 DAYS now, have you tried to run the commands the system is telling you to run??? Problems like this are usually caused by improper shutdowns.
Yes! I have tried not only once but more than one time but still receive the same error messages.
 
Old 01-29-2013, 02:29 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,349

Rep: Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910
Quote:
Originally Posted by Muhammad Hamid Ashraf View Post
Yes! I have tried not only once but more than one time but still receive the same error messages.
Then either you're not correcting ALL of the errors with fsck, or you have bad hardware. You say you're shutting things down correctly...what commands are you using to reboot and to shutdown??

Note that you have to correct ALL of the file system errors, not just a few. I know it says to run fsck manually, but if you have thousands of errors, you may want to just run "fsck -a /dev/sda2", and let it finish. And if its giving you any errors on other file systems, you have to correct those as well.
 
Old 01-30-2013, 09:39 AM   #7
Muhammad Hamid Ashraf
LQ Newbie
 
Registered: Dec 2012
Location: Islamabad, Pakistan
Distribution: centOS5, RHEL,centOS6.3, Fedora
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Then either you're not correcting ALL of the errors with fsck, or you have bad hardware. You say you're shutting things down correctly...what commands are you using to reboot and to shutdown??

Note that you have to correct ALL of the file system errors, not just a few. I know it says to run fsck manually, but if you have thousands of errors, you may want to just run "fsck -a /dev/sda2", and let it finish. And if its giving you any errors on other file systems, you have to correct those as well.
I had just used reboot command after the fsck....and yes you were right i didn't corrected all the errors. Its not giving the error...but i know it will give after 2 or 3 boots.
 
Old 01-30-2013, 09:47 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,349

Rep: Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910Reputation: 3910
Quote:
Originally Posted by Muhammad Hamid Ashraf View Post
I had just used reboot command after the fsck....and yes you were right i didn't corrected all the errors. Its not giving the error...but i know it will give after 2 or 3 boots.
How do you know it will?? Has this pattern repeated itself?? Also, if you were in the habit of NOT fixing all the errors and ran your system that way, it's not surprising that you got errors on each boot.

And the "reboot" command is ok..for rebooting. What did you use to SHUT DOWN the system? Unless you shut down correctly, you will get errors. Again, if you shut down correctly and get errors, you probably have a piece of hardware going bad.
 
Old 01-31-2013, 02:39 PM   #9
Muhammad Hamid Ashraf
LQ Newbie
 
Registered: Dec 2012
Location: Islamabad, Pakistan
Distribution: centOS5, RHEL,centOS6.3, Fedora
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
How do you know it will?? Has this pattern repeated itself?? Also, if you were in the habit of NOT fixing all the errors and ran your system that way, it's not surprising that you got errors on each boot.

And the "reboot" command is ok..for rebooting. What did you use to SHUT DOWN the system? Unless you shut down correctly, you will get errors. Again, if you shut down correctly and get errors, you probably have a piece of hardware going bad.
No it is not repeating now...all is going well after running fsck and by fixing all the errors... Thank you for response :-)
 
  


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
Fedora 15 boot time errors J.A.X Linux - Desktop 15 10-03-2011 01:34 PM
NFS errors for fstab entries during boot time RHEL5 sandricky Linux - Server 3 08-05-2009 06:40 PM
Boot stops on "Mounting NFS filesystems:" for a LONG time funkymunky Fedora 1 09-12-2008 01:43 AM
boot time NTFS errors on ext2 file system adrianmariano Linux - Hardware 2 01-14-2005 07:38 PM
Boot Time Errors egh128 Slackware 3 10-09-2003 07:03 PM


All times are GMT -5. The time now is 10:57 PM.

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