LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-11-2008, 08:40 AM   #1
Ashok_mittal
Member
 
Registered: Dec 2007
Posts: 73

Rep: Reputation: 15
Unhappy While booting getting problem ?


Hi all,

I have a dual boot system Xp with fedora.I have been using the same fedora successfully for the last 3-4 months, now when i tried to switch from xp to fedora after giving user name and password in the login page the session is not getting started it is showing that your "last session did last for less then 10 seconds, some internal error.please try to login using some fail safe session."
How to sort out this problem?
 
Old 04-11-2008, 09:02 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
You can switch to a virtual console by pressing Ctrl-Alt-F1, enter as root and check logs for any related error messages, in particular /var/log/Xorg.0.log and /var/log/messages. Also you have to check the file $HOME/.ICEauthority of the user which cannot do X login. Check the ownership and permissions: it should something like
Code:
-rw------- 1 username group 6564 Apr  4 11:25 .ICEauthority
where username and group should be the user login name and the belonging group. If changed, reset them with chown. Otherwise just remove the user's .ICEauthority file and it will be re-created at login.

Sometimes it happens that some graphical application launched by root gains permission to use the user's display and modify the .ICEauthority file.

Ah... in case you don't know: when you've done, you can switch back to the X console by pressing Ctrl-Alt-F7.
 
Old 04-14-2008, 12:23 AM   #3
Ashok_mittal
Member
 
Registered: Dec 2007
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
You can switch to a virtual console by pressing Ctrl-Alt-F1, enter as root and check logs for any related error messages, in particular /var/log/Xorg.0.log and /var/log/messages. Also you have to check the file $HOME/.ICEauthority of the user which cannot do X login. Check the ownership and permissions: it should something like
Code:
-rw------- 1 username group 6564 Apr  4 11:25 .ICEauthority
where username and group should be the user login name and the belonging group. If changed, reset them with chown. Otherwise just remove the user's .ICEauthority file and it will be re-created at login.

Sometimes it happens that some graphical application launched by root gains permission to use the user's display and modify the .ICEauthority file.

Ah... in case you don't know: when you've done, you can switch back to the X console by pressing Ctrl-Alt-F7.

No it's not working ; After giving login as root and password nothing is coming instead it is again asking for login.
 
Old 04-14-2008, 04:50 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by Ashok_mittal View Post
No it's not working ; After giving login as root and password nothing is coming instead it is again asking for login.
Even in a virtual console?! Really strange. Have you tried to boot in text mode or in single user mode? To do this put either "3" or "1" respectively at the end of the kernel line in the boot prompt.
 
Old 04-14-2008, 05:19 AM   #5
Ashok_mittal
Member
 
Registered: Dec 2007
Posts: 73

Original Poster
Rep: Reputation: 15
Unhappy

Quote:
Originally Posted by colucix View Post
Even in a virtual console?! Really strange. Have you tried to boot in text mode or in single user mode? To do this put either "3" or "1" respectively at the end of the kernel line in the boot prompt.
The boot prompt is like this:

root(hd0,5)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=LABAL=/ rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img

Now please insinuate me what should i do?
 
Old 04-14-2008, 05:30 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
You can follow the instructions here.
 
Old 04-14-2008, 06:07 AM   #7
Ashok_mittal
Member
 
Registered: Dec 2007
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
You can follow the instructions here.
Error which i am getting is this:

session_child_run: could not exec /etc/X11/Xsession default

as instructed i am able to go on the shell but how to get rid off this problem what changes should i do?
 
Old 04-14-2008, 06:19 AM   #8
Ashok_mittal
Member
 
Registered: Dec 2007
Posts: 73

Original Poster
Rep: Reputation: 15
Cool

Quote:
Originally Posted by Ashok_mittal View Post
Error which i am getting is this:

session_child_run: could not exec /etc/X11/Xsession default

as instructed i am able to go on the shell but how to get rid off this problem what changes should i do?
I have given selinux=0 in the end of kernel line and now it's working
 
Old 04-14-2008, 06:33 AM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by Ashok_mittal View Post
I have given selinux=0 in the end of kernel line and now it's working
I started to suspect something related to selinux. Anyway, now that you're logged in the X server again, you can check all the logs related to the Xsession. Then you can try to investigate which rule of the selinux policy caused the problem. Have you updated the system recently?
 
Old 04-14-2008, 06:51 AM   #10
Ashok_mittal
Member
 
Registered: Dec 2007
Posts: 73

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
I started to suspect something related to selinux. Anyway, now that you're logged in the X server again, you can check all the logs related to the Xsession. Then you can try to investigate which rule of the selinux policy caused the problem. Have you updated the system recently?
Thanks for your valuable suggestion actually as i told i am working on a dual boot system and currently i am on windows but surely i will investigate the selinux policy or otherwise i will disable selinux.
 
  


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
booting problem dosti Linux - Software 4 06-02-2007 12:00 AM
Booting Problem sanu Linux - General 1 08-27-2006 08:21 AM
Booting Problem Jiraiya Linux - General 2 01-26-2006 12:30 PM
Problem when booting...please help sagecss Slackware 5 01-21-2006 08:51 AM
Booting problem AbhishekSamuel Linux - Software 1 04-29-2005 01:20 PM


All times are GMT -5. The time now is 07:19 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