LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 12-15-2014, 05:40 PM   #1
dermetfan
LQ Newbie
 
Registered: Aug 2013
Posts: 22

Rep: Reputation: Disabled
Question X crashes whole system


So, I have CrunchBang 11 and Windows 7 installed on to two entirely separate hard drives. Everything was working fine just like you'd expect. But today I started Windows, installed Skype and WhatPulse, used it for a while and then went back to Linux. I thought my CrunchBang installation was secure from Windows' evil claws since it is on another hard drive, but apparently... no.

Linux starts up fine. Then it attempts to start the X server and crashes hard. The terminal disappears. The background color changes to a slightly lighter black/blue. I cannot switch to another tty. In fact, I can't even toggle num or caps lock; everything is as dead as dead gets.
The exact same happens in recovery mode. I have a terminal, everyting runs smooth, but as soon as I run startx the system crashes the same way. It does not seem to matter whether I run startx as root or from my own account via sudo.

Before the X server actually tries to start a display I could see a quick flash of output to the console, so I recorded it with my phone... But there's nothing interesting there, just the usual startup/greeting stuff like version, build, host system, what log and config files are used... For example:
Code:
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Dec 16 01:04:15 2014
So I checked /var/log/Xorg.0.log... And guess what - it's completely empty, just like /var/log/Xorg.0.log.old! I have no idea how to get an error message. I even tried
Code:
startx > startx.log
but unsurprisingly that file also stayed empty.

What could I have done when using Windows that damaged my X installation on another physical hard drive? Is there a way to get a useful error message? Is the trouble not worth it and it's quicker to just reinstall?

Thanks a ton for your help!
 
Old 12-16-2014, 11:57 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
May be the Windows Graphics driver changed some video firmware

or your linux install has corrupted.

Try using a Live cd to check.
 
Old 12-16-2014, 12:37 PM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
You can simply start X and see what is reported on the console (that is not startx, but /usr/bin/X, the binary)
also there can be a .xsession-error file (or something like this) in the home dir.
 
Old 01-05-2015, 11:48 PM   #4
dermetfan
LQ Newbie
 
Registered: Aug 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by veerain View Post
May be the Windows Graphics driver changed some video firmware
It seems Windows was not the problem after all. I now have the same problem on my notebook that is running CrunchBang only. It seems like apt-get dist-upgrade caused the problem...

Quote:
Originally Posted by pan64 View Post
You can simply start X and see what is reported on the console (that is not startx, but /usr/bin/X, the binary)
This does the exact same, I can't see any errors because the screen goes black and the system freezes

Quote:
Originally Posted by pan64 View Post
also there can be a .xsession-error file (or something like this) in the home dir.
Yes, there is ~/.xsession-errors, but nothing is written into it. The file is not even recreated if I delete it.
 
Old 01-06-2015, 01:45 AM   #5
yo8rxp
Member
 
Registered: Jul 2009
Location: Romania
Distribution: Ubuntu 10.04 Gnome 2
Posts: 102

Rep: Reputation: 31
By any chance , did you add a second monitor to videocard and setup dual screen ?
Nvidia drivers save config in old linux fashion like /etc/X11/xorg.conf and who knows , after dist-upgrade something went wrong
Is so , save xorg.conf to Desktop (any other place would be fine, just for backup sake) , then delete /etc/X11/xorg.conf and reboot
 
1 members found this post helpful.
Old 01-06-2015, 02:07 AM   #6
dermetfan
LQ Newbie
 
Registered: Aug 2013
Posts: 22

Original Poster
Rep: Reputation: Disabled
Smile

I didn't set up dual screen or anything... but deleting xorg.conf worked! Incredible how that was able to crash everything so hard that it couldn't even log errors, I didn't think of something that simple. Thanks a ton, you saved me half a day of setup!
 
  


Reply

Tags
startx, windows, xserver



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
System Crashes manaila Linux - General 5 08-20-2010 03:05 AM
[SOLVED] System Crashes NightSky Linux - Software 9 02-16-2010 02:12 PM
Random System Crashes lightfoot256 Linux - General 7 04-27-2007 03:30 AM
System Crashes amer_58 Linux - Newbie 5 03-11-2005 01:31 PM
System Crashes linuxeco Linux - General 12 10-13-2002 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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