LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-12-2009, 08:22 AM   #1
adamnew123456
LQ Newbie
 
Registered: Sep 2009
Location: Columbia, SC
Distribution: Zenwalk 6.2
Posts: 11

Rep: Reputation: 0
Exclamation X Server Crashed and Can't Restart [Vector 6]


Hey,

I'm having a bit of a problem with X. About half an hour ago, I was browsing the web, commenting on an article somewhere, when all of a sudden, X crashed for no reason.

I shutdown and then rebooted, and then the boot freezes at the "Multiuser GUI" step, at rc.X. If it helps, here are it's contents, sans comments.

Quote:
#! /bin/sh

DISPLAY_MANAGER=KDM

. /etc/rc.d/rc.bootsplash

KDM_CMD=/usr/bin/kdm
GDM_CMD=/usr/bin/gdm
WDM_CMD=/usr/bin/wdm
XDM_CMD=/usr/bin/xdm

echo
echoc "rc.X ==> Going to multiuser GUI mode ..." yellow
/etc/rc.d/rc.text 20 'Going to multiuser GUI mode ...'
progressbar 100

case $PREVLEVEL in
2|3) PLEVEL=$PREVLEVEL
;;
*)
# exit and clean the tty1, Thanks to johnb for mentioning it.
killall -s HUP mingetty
PLEVEL=2
esac

sleep 3

BOOTX=bootx.log
TEST=`find /var/log/ -cmin -1 -name $BOOTX`
if [ "$TEST" ]; then
echoc "WARNING: Recent X-Window was respawned too short." red
echo "Please make sure that the X-Window is allright,"
echo "then try 'init $RUNLEVEL' again after 1 minute."
echo
echoc "Canceling GUI login mode" red
rm -f $TEST
/sbin/telinit $PLEVEL
exit 1
fi
touch /var/log/BOOTX
echo "LAST_X=`date`" > /var/log/$BOOTX


for DM in $DISPLAY_MANAGER KDM GDM WDM XDM NONE; do
case $DM in
KDM)
if [ -x $KDM_CMD ]; then
#echo KDE Display Manager
exec $KDM_CMD -nodaemon
exit
fi
;;
GDM)
if [ -x $GDM_CMD ]; then
#echo GNOME Display Manager
exec $GDM_CMD -nodaemon
exit
fi
;;
WDM)
if [ -x $WDM_CMD ]; then
#echo WING Display Manager
buildsessions WDM &> /dev/null
exec $WDM_CMD -nodaemon > /dev/null
exit
fi
;;
XDM)
if [ -x $XDM_CMD ]; then
#echo XFree86 Display Manager
exec $XDM_CMD -nodaemon
exit
fi
;;
NONE)
# error
echo
echo "Hey, you don't have KDM, GDM, WDM, or XDM."
echo "Can't use GUI mode without one of them installed, mate."
sleep 30
break
;;
esac
done

echoc "Canceling GUI login mode" red
/sbin/telinit $PLEVEL
After looking at that, I saw nothing particularly suspicious, and then simply rebooted into my Ubuntu partition and came here.

If a virus is suspect, I had no firewall running at the time, if that helps. I have no particularly useful stuff on there anyway, and backed up my home folder to my USB device a couple minutes ago, so if I need a re-install because of a virus or some fatal system fault, I can't say I'd mind.

EDIT---------------------------------------------------------
I am currently in Links, and I ended up finding out that the startup routine attempts to run X twice, because I ALWAYS recieve a timeout error, no matter how far I sleep it in the rc.X file.

Also, I have read acess to that HDD under my login, so any other needed info, I can get.

EDIT2--------------------------------------------------------
As I have not been getting any replies, I've scrapped Vector and revamped my Ubuntu Karmic install. So, consider the thread dead.

Last edited by adamnew123456; 12-16-2009 at 07:35 PM. Reason: Important Info
 
Old 12-16-2009, 10:23 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Sorry about the no replies. Everyone like me wouldn't know why it was crashing without seeing what the log files were giving you. If you have problems with X launching you can look at the log in /var/log and see if anything in there is causing issues. From your description tho it is possible that something corrupted a file that x uses. First thing I would have done in that situation is fun a fsck -f on the partition.
 
  


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
LXer: Tropic of Vector a blog devoted to Vector Linux Light, plus the Vector Linux LXer Syndicated Linux News 0 09-17-2009 02:30 PM
fedora linux 8 crashed 7 grub loader displaying after restart jbind_007 Linux - General 1 04-13-2009 02:08 AM
server is crashed rizwan.mirzaa Linux - Server 1 07-01-2008 07:33 PM
X Server Crashed a1opus Fedora 1 04-03-2006 12:08 PM
my server crashed inteltechs Linux - General 8 11-02-2003 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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