X doesn't start sometimes

Sometimes when I boot openSuse 11.2, it only boots to runlevel 2 (console) :silly:
I have to log in as root and enter init 5 to make kdm appear. Then I can log in normally, and everything works fine.
Any idea why that happens?

This is only a sometimes problem???

Sometimes it works??

Yes, as I wrote, it only happens sometimes.
Most times, it works properly and displays kdm right away.

> Any idea why that happens?

sometimes you shut down differently…or, sometimes some program
crashes…or sometimes you install an update…or sometimes you see an
error message…or sometimes you use KDE and other times you use
Gnome…or sometimes you or someone else logs in…or sometimes
firefox freezes…or . . .

see, start making notes about things you do or see in your
sessions…then, when it does NOT boot normally look and see what you
did in the just preceding session which was different from all the
others (like, maybe you used ctrl+alt+backspace or or or or or…)

if you can’t find the cause and effect you might guess and guess and
guess and never figure out the problem…

another thing you can do is inspect the logs and see if there are
differences between the sessions which precede the X not starting and
the X starts ok sessions… tools like diff are helpful…


palladium

You also might check the hardware. ie run the memory checker from the install cd/dvd. Let it run over night. Might be a flaky memory cell.

Do a low level scan of the hard drive see if there is a bad or weak sector.

good points! hope OP is listening…


palladium

So bad memory would result in a boot to the command line only instead of a kdm boot, but everything else works just fine? How droll :sarcastic:
But ok, I can do a memory test.

Depend on the exact piece of memory and how bad it is. Memory may not be bad at all times. It can be weak. Maybe it just loses a bit every once in a while. That is why you should run the test overnight

Your problem may not be memory but that fact it only happens sometimes point to some kind of hardware problem,

If you are shutting down properly ie not pulling the plug. It is almost certainly a hardware problem.

You should check the Xorg.0.log, found in /var/log.

It’ll have a lot of stuff in it. You might want to use pastebin to paste the contents of the log. Until we see the log, all we can do is speculate.


Tokugawa-Ieyasu wrote:
> So bad memory would result in a boot to the command line only instead
> of a kdm boot, but everything else works just fine? How droll
> :sarcastic:
> But ok, I can do a memory test.

come back when have decided to do these three things:

  1. follow my previous advice (3 Jan) in this thread and report back on
    what you found about what changed from one session to the next…i
    hope you can SEE something changing…otherwise YES, it could be as
    simple as faulty memory which is WRITING garbled stuff to hard disk,
    which then scrambles the next boot, just enough to cause exactly the
    symptoms you describe, SOMETIMES… seem something IS changing, if it
    is not something you are doing in shutting down differently, etc etc
    etc…then something IS still changing and it might be a bad disk, a
    bad RAM, a sometimes short circuit (cracked circuit board?), static
    electricity, or maybe a blue moon…you don’t know and we don’t
    know…you want to fix it by yourself, be my guest!!

  2. become civil and non-condescending (as you are above) to unpaid,
    volunteers here trying to help you…

  3. be very thankful for the freely given help you are receiving…

okay?


palladium

Condescensing? Where was I ever condescending!? :open_mouth:
Don’t make me responsible if you’re in a bad mood for whatever reason, mate >:(

Anyway, it looks like the problem went away now, it hasn’t reappeared for several days now.
Probably some of the recent updates fixed whatever was wrong before.
Thus we can drop this now, and you can calm down again.

Tokugawa-Ieyasu wrote:
> Where was I ever condescending!? :open_mouth:
> Don’t make me responsible if you’re in a bad mood for whatever reason,
> mate >:(
<snip>
> Thus we can drop this now, and you can calm down again.

i’m neither in a bad mood nor anywhere near un-calm…

imho, this is both sarcastic and condescending: “So bad memory would
result in a boot to the command line only instead of a kdm boot, but
everything else works just fine? How droll :sarcastic:”

(which is why i quoted it the first time…)


palladium

You very much sound like it though.

Not just “condescending”, but also “sarcastic” now? What will you come up with next? :silly:
I still don’t see how it could be considered either, so where’s your point?

On Tue, 05 Jan 2010 20:56:01 +0000, Tokugawa-Ieyasu wrote:

> palladium;2098651 Wrote:
>> i’m neither in a bad mood nor anywhere near un-calm…
> You very much sound like it though.
>
> palladium;2098651 Wrote:
>> imho, this is both sarcastic and condescending: …
> Not just “condescending”, but also “sarcastic” now? What will you come
> up with next? :silly:
> I still don’t see how it could be considered either, so where’s your
> point?

Guys, let’s keep it civil and stop with the personal attacks…stick to
the subject of solving the problem, not bashing each other over the head.

Thanks,

Jim

Jim Henderson
openSUSE Forums Moderator