LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-02-2008, 02:29 PM   #1
Imajica666
LQ Newbie
 
Registered: Jan 2006
Location: Cleveland, OH
Distribution: Sarge 3.1 R1
Posts: 4

Rep: Reputation: 0
No GUI after power failure at boot.


I have had Debian Etch on my machine for well over a year and working great. The other day when I was booting up I had a power outage as the machine was still booting up. When the power came back on and I tried to boot my machine it went along as it always does but instead of going to my desktop after the boot sequence I get one beep and the screen goes blank.
I can do a Cntrl Alt F4 and bring up a login prompt login and all that but if I run startx I get an error message that it is already running and says there is a file called .X0-lock in tmp. Did some searching on the web and saw folks had luck removing that file so I did a rm /tmp/ .X0-lock to delete the file. The file was deleted but when I did a reboot and ran startx again, I got the same results.

I'm at a loss on this and sure hope some folks can help me out.

Thanks
 
Old 06-02-2008, 03:59 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,043

Rep: Reputation: 375Reputation: 375Reputation: 375Reputation: 375
Quote:
Originally Posted by Imajica666 View Post
I have had Debian Etch on my machine for well over a year and working great. The other day when I was booting up I had a power outage as the machine was still booting up. When the power came back on and I tried to boot my machine it went along as it always does but instead of going to my desktop after the boot sequence I get one beep and the screen goes blank.
I can do a Cntrl Alt F4 and bring up a login prompt login and all that but if I run startx I get an error message that it is already running and says there is a file called .X0-lock in tmp. Did some searching on the web and saw folks had luck removing that file so I did a rm /tmp/ .X0-lock to delete the file. The file was deleted but when I did a reboot and ran startx again, I got the same results.

I'm at a loss on this and sure hope some folks can help me out.

Thanks
If you remove that file and you "startx", does it work?

That file usually means that Xorg is running, it's just a lock file to prevent starting a session that's been already started.

In a power outage that file will remain there for the next time you log in, which creates that problem. Removing it should fix that, and it's so strange that the file is remaining there after you delete it, unless your file system was damaged by the power outage.

Even if you manage to fix the xorg issue, I would still boot from a livecd and run fsck manually on all the partitions.
 
Old 06-02-2008, 04:20 PM   #3
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
I second the thought of running a fsck to ensure no damage was done to your drive. I actually had that happen once, and it did screw up my drive. Although it was still readable so I could get my data from it still, with the help of Phlak. Anyways, that is my recommendation. Otherwise you might have to go as far as reinstalling X if you can't it to work. And hope that it only screwed up that one part.

DragonM15
 
Old 06-03-2008, 04:23 PM   #4
Imajica666
LQ Newbie
 
Registered: Jan 2006
Location: Cleveland, OH
Distribution: Sarge 3.1 R1
Posts: 4

Original Poster
Rep: Reputation: 0
startx still not working

Well fsck did not find any issues, and after removing the .X0-lock file this is what I get after running startx.


server is already active for display 0
if this server is no longer running, remove /tmp/.X0-lock and start again

I remove it as root and still the same issue, any other ideas on what to try.

Thanks
 
Old 06-04-2008, 05:01 PM   #5
DragonM15
Member
 
Registered: Sep 2003
Location: USA
Distribution: Slackware (Multiple Versions)
Posts: 455

Rep: Reputation: 31
does X start by default? aka... you boot up and you get a gui login screen? If so you might have to go down to runlevel 3 which is the multiuser console login and try from there. I know on my slackware the configuration file is in /etc/inittab .. Not sure about yours.

Another though, have you tried starting X as root, or another user in general? Are you sure .XO-lock is being removed. have you tried rm -f .X0-lock? Also, have you tried removing .Xauthority from your users home directory? It might be related... I have had problems with that file before if X crashed for some random reason. Might help might not, just some things to try.

DragonM15

Last edited by DragonM15; 06-04-2008 at 05:04 PM.
 
Old 06-07-2008, 01:40 PM   #6
ArkRoyal
LQ Newbie
 
Registered: Jun 2008
Posts: 11

Rep: Reputation: 0
When you use lilo as your boot loader, I don't know about grub, to get into a run level other then the default just append the level to the kernel you want to boot. for example if vmlinux is the name you associated with the kernel you want to boot just input vmlinux 3. This will boot you into vmlinux at run level 3. You could also try telinit 3 to get to run level 3 after you have booted.

I would also make sure that it is being deleted, don't assume. And you might consider deleting that file while running under a live CD.
 
  


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
set iBook to automatically power-up after power failure peachy Other *NIX 4 04-19-2006 01:44 PM
reboot after power failure? ncsuapex Linux - General 4 04-07-2006 10:20 PM
need help.. power failure now no boot vbtalent Fedora 2 11-02-2005 07:51 PM
Power Failure On AC power ONLY Gateway 5300 marti35 Linux - Laptop and Netbook 1 05-22-2005 11:14 AM
boot problem after power failure radulucian Linux - Newbie 1 06-30-2003 05:53 AM


All times are GMT -5. The time now is 04:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration