Originally Posted by Imajica666
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.
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.