LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-12-2013, 10:29 AM   #1
kiran.ursal
Member
 
Registered: Feb 2012
Posts: 36

Rep: Reputation: Disabled
Smile setenforce 1 problem


I have CentOS6.02 on my system.When i try to bott it it give sme message as follow:
Starting udev: [ok]
setting hostname localhost.localdomain: [ok]
setting up logical volume management : no volume grup found [ok]


checking filesystems
/dev/sda3 contains a file system with errors, check forced.

/dev/sda3: 376250/1589248 files(0.1% non contiguos), 2963942/6349056 blocks

/dev/sda1:Superblock last mount time(tue mar 12:00:04:14 2013, now=sat mar 12 14:17:28 2011 ) is in the future.

/dev/sda1: unexpected inconsistancy:run fsck manually.
(i.e, without -a or -p options) [failed]


***An error occured during the file system check;
*** droping you to shell : the system will reboot
***when you leav the shell .
***warning --SELinux is active
***disabling security enforcement for system recovery.
***run 'setenforce 1' to reenable.
give root password for maintainance
(or type control-d to continue):
******************************END*******************************


I entered my passsword after this message and type setenforce 1 but nothing is happens.

how to solve this problem
 
Old 03-12-2013, 10:34 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,695

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by kiran.ursal View Post
I have CentOS6.02 on my system.When i try to bott it it give sme message as follow:
Starting udev: [ok]
setting hostname localhost.localdomain: [ok]
setting up logical volume management : no volume grup found [ok]

checking filesystems
/dev/sda3 contains a file system with errors, check forced.
/dev/sda3: 376250/1589248 files(0.1% non contiguos), 2963942/6349056 blocks
/dev/sda1:Superblock last mount time(tue mar 12:00:04:14 2013, now=sat mar 12 14:17:28 2011 ) is in the future.
/dev/sda1: unexpected inconsistancy:run fsck manually. (i.e, without -a or -p options) [failed]

***An error occured during the file system check;
*** droping you to shell : the system will reboot
***when you leav the shell .
***warning --SELinux is active
***disabling security enforcement for system recovery.
***run 'setenforce 1' to reenable.
give root password for maintainance
(or type control-d to continue):
******************************END*******************************
I entered my passsword after this message and type setenforce 1 but nothing is happens. how to solve this problem
Ok, did you read/understand what you posted?

Your system is telling you that you have to first run setenforce 1, THEN fix the file system errors...and it even tells you how. Did you try running the OTHER command it told you to run???? Like "fsck /dev/sda1", where you're having the problem???
 
1 members found this post helpful.
Old 03-12-2013, 10:48 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by TB0ne View Post
Ok, did you read/understand what you posted?

Your system is telling you that you have to first run setenforce 1, THEN fix the file system errors...and it even tells you how. Did you try running the OTHER command it told you to run???? Like "fsck /dev/sda1", where you're having the problem???
no, it's not, it's disabling it. he'd need to run it afterwards if he wanted to, but it seems irrelevant really as I get the impression there is now knowledge of what SELinux is here....
 
2 members found this post helpful.
Old 03-12-2013, 02:32 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,695

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by acid_kewpie View Post
no, it's not, it's disabling it. he'd need to run it afterwards if he wanted to, but it seems irrelevant really as I get the impression there is now knowledge of what SELinux is here....
Agreed. The message says to run setenforce first, then fsck. Seems fairly clear to me, too.
 
1 members found this post helpful.
Old 03-12-2013, 04:41 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
SE is being disabled for the "recovery" mode

"setenforce=0 "
for this session
but will need to be turned back on once things are fixed
hence the " run setenforce=1"
Quote:
checking filesystems
/dev/sda3 contains a file system with errors, check forced.

/dev/sda3: 376250/1589248 files(0.1% non contiguos), 2963942/6349056 blocks
normal output -- 0.1% fragments -- also normal

Quote:

/dev/sda1:Superblock last mount time(tue mar 12:00:04:14 2013, now=sat mar 12 14:17:28 2011 ) is in the future.
2 year difference ?
-- drive issue and not daylight savings time
-- something is garbled

you need to run "fsck" on the partition
and fix what it finds .
while se is turned off .
then turn it back on .
and look for SETroubleShooter" warnings
or
warnings in the /var/log/selinux/?? folder


but with this being the unsupported CentOS 6.2
the current fixes for daylight savings are not being used
the date for this did move

Last edited by John VV; 03-12-2013 at 04:43 PM.
 
1 members found this post helpful.
Old 03-13-2013, 01:48 PM   #6
kiran.ursal
Member
 
Registered: Feb 2012
Posts: 36

Original Poster
Rep: Reputation: Disabled
problem solved

Thank you all of you;
After posting my problem on forum immediatly I login in single user mode and use fsck command and my problem get solved.

Last edited by kiran.ursal; 03-13-2013 at 01:51 PM.
 
Old 03-13-2013, 03:41 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,695

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by kiran.ursal View Post
Thank you all of you;
After posting my problem on forum immediatly I login in single user mode and use fsck command and my problem get solved.
Great that its solved...probably always a good idea to pay attention to the messages from the server, and follow the clear instructions they give.
 
1 members found this post helpful.
  


Reply



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
Do I have a path problem, an Apache2 problem or a Javascript problem or any other pro rblampain Linux - Networking 0 12-29-2010 03:50 AM
About SElinux: enter "setenforce 0",system complains bad command aladin Linux - Software 3 08-21-2005 08:16 PM
Sound Card problem(every time i install linux i have diffirent hardware problem) jacka1l Linux - Newbie 7 08-11-2005 06:10 AM
Lan configuration problem - NFS boot problem - RX&TX packets errors 242VDM242 Linux - Networking 4 11-25-2004 01:35 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 07:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:26 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
Open Source Consulting | Domain Registration