LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to login to GUI mode (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-login-to-gui-mode-925851/)

linuxandtsm 01-26-2012 02:26 PM

unable to login to GUI mode
 
Hi all,

OS: openSUSE 10.3 (X86-64)

I am unable to login to GUI (eventhough run-level is 5) and every time i boot up the system it goes directly to command line (run-level3).
This is used to login to GUI earlier. Not sure now what happend.
I see following messages when system is booting up.
Code:

Master Resource Control: Running /etc/init.d/after.local
doneMaster Resource Control: runlevel 5 has been reached
Failed services in runlevel 5: xinetd avahi-dnsconfd
Skipped services in runlevel 5: smbfs xend xendomains

and trying to start x , gives following error message

Code:

startx
xauth:  creating new authority file /root/.serverauth.6995

Fatal server error:
Can't read lock file /tmp/.X0-lock

giving up.
xinit:  Connection refused (errno 111):  unable to connect to X server
xinit:  No such process (errno 3):  Server error.

I find following in /var/log/Xorg.0.log

Code:

# egrep "EE|WW" /var/log/Xorg.0.log
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) The directory "/usr/share/fonts/local" does not exist.
(WW) The directory "/usr/share/fonts/PEX" does not exist.
(WW) The directory "/usr/share/fonts/latin2/misc" does not exist.
(WW) The directory "/usr/share/fonts/latin2/75dpi" does not exist.
(WW) The directory "/usr/share/fonts/latin2/100dpi" does not exist.
(WW) The directory "/usr/share/fonts/latin2/Type1" does not exist.
(WW) The directory "/usr/share/fonts/latin7/75dpi" does not exist.
(WW) The directory "/usr/share/fonts/baekmuk" does not exist.
(WW) The directory "/usr/share/fonts/japanese" does not exist.
(WW) The directory "/usr/share/fonts/kwintv" does not exist.
(WW) The directory "/usr/share/fonts/CID" does not exist.
(WW) The directory "/usr/share/fonts/ucs/misc" does not exist.
(WW) The directory "/usr/share/fonts/ucs/75dpi" does not exist.
(WW) The directory "/usr/share/fonts/ucs/100dpi" does not exist.
(WW) The directory "/usr/share/fonts/hellas/misc" does not exist.
(WW) The directory "/usr/share/fonts/hellas/75dpi" does not exist.
(WW) The directory "/usr/share/fonts/hellas/100dpi" does not exist.
(WW) The directory "/usr/share/fonts/hellas/Type1" does not exist.
(WW) The directory "/usr/share/fonts/xtest" does not exist.
(II) Loading extension MIT-SCREEN-SAVER
(WW) Jan 25 13:38:44 NVIDIA(0): TwinView requested, but only 1 display devices found.
(WW) Jan 25 13:38:44 NVIDIA(0): Invalid display device in Mode Description
(WW) Jan 25 13:38:44 NVIDIA(0):    "DFP-0:1920x1080+0+0"
(WW) Jan 25 13:38:44 NVIDIA(0): Not using mode description "DFP-0:1920x1080+0+0"; unable to
(WW) Jan 25 13:38:44 NVIDIA(0):    map to display device
(WW) Jan 25 13:38:44 NVIDIA(0): Invalid display device in Mode Description
(WW) Jan 25 13:38:44 NVIDIA(0):    "DFP-0:1600x1024+0+0"
(WW) Jan 25 13:38:44 NVIDIA(0): Not using mode description "DFP-0:1600x1024+0+0"; unable to
(WW) Jan 25 13:38:44 NVIDIA(0):    map to display device
(WW) Jan 25 13:38:44 NVIDIA(0): Invalid display device in Mode Description
(WW) Jan 25 13:38:44 NVIDIA(0):    "DFP-0:1400x1050+0+0"
(WW) Jan 25 13:38:44 NVIDIA(0): Not using mode description "DFP-0:1400x1050+0+0"; unable to
(WW) Jan 25 13:38:44 NVIDIA(0):    map to display device
(WW) Jan 25 13:38:44 NVIDIA(0): Invalid display device in Mode Description
(WW) Jan 25 13:38:44 NVIDIA(0):    "DFP-0:1280x1024+0+0"
(WW) Jan 25 13:38:44 NVIDIA(0): Not using mode description "DFP-0:1280x1024+0+0"; unable to
(WW) Jan 25 13:38:44 NVIDIA(0):    map to display device
(WW) Jan 25 13:38:44 NVIDIA(0): Invalid display device in Mode Description
(WW) Jan 25 13:38:44 NVIDIA(0):    "DFP-0:1280x960+0+0"
(WW) Jan 25 13:38:44 NVIDIA(0): Not using mode description "DFP-0:1280x960+0+0"; unable to map
(WW) Jan 25 13:38:44 NVIDIA(0):    to display device
(WW) Jan 25 13:38:44 NVIDIA(0): Invalid display device in Mode Description
(WW) Jan 25 13:38:44 NVIDIA(0):    "DFP-0:1152x864+0+0"
(WW) Jan 25 13:38:44 NVIDIA(0): Not using mode description "DFP-0:1152x864+0+0"; unable to map
(WW) Jan 25 13:38:44 NVIDIA(0):    to display device
(WW) Jan 25 13:38:44 NVIDIA(0): Invalid display device in Mode Description
(WW) Jan 25 13:38:44 NVIDIA(0):    "DFP-0:1024x768+0+0"
(WW) Jan 25 13:38:44 NVIDIA(0): Not using mode description "DFP-0:1024x768+0+0"; unable to map
(WW) Jan 25 13:38:44 NVIDIA(0):    to display device
(WW) Jan 25 13:38:44 NVIDIA(0): Invalid display device in Mode Description
(WW) Jan 25 13:38:44 NVIDIA(0):    "DFP-0:800x600+0+0"
(WW) Jan 25 13:38:44 NVIDIA(0): Not using mode description "DFP-0:800x600+0+0"; unable to map
(WW) Jan 25 13:38:44 NVIDIA(0):    to display device
(WW) Jan 25 13:38:44 NVIDIA(0): Invalid display device in Mode Description
(WW) Jan 25 13:38:44 NVIDIA(0):    "DFP-0:640x480+0+0"
(WW) Jan 25 13:38:44 NVIDIA(0): Not using mode description "DFP-0:640x480+0+0"; unable to map
(WW) Jan 25 13:38:44 NVIDIA(0):    to display device

Thaks in advance!

sycamorex 01-26-2012 02:32 PM

It's a wild guess, but check if your system is not full (especially /tmp)

df -h

linuxandtsm 01-26-2012 02:40 PM

Hi sycamorex,

No, the system is NOT full.
/tmp is under /

Code:

# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2            405G  19G  387G  5% /

Code:

/tmp # du -sh
du: cannot access `./.X0-lock': Permission denied
4.0M    .


sycamorex 01-26-2012 02:45 PM

What's the output of :
Code:

ls -al /tmp | grep .X0-lock

linuxandtsm 01-26-2012 02:54 PM

Hi sycamorex,

I logged in as root

Code:

# ls -al /tmp/ |grep .X0-lock
ls: cannot access /tmp/.X0-lock: Permission denied
??????????  ? ?      ?            ?            ? .X0-lock


sycamorex 01-26-2012 02:55 PM

Found somewhere that running fsck from a live cd should solve this problem.
Try it and see what happens.

paladin.michael 01-26-2012 02:56 PM

ok, try deleting the /tmp/.X0-lock file. e.g.
Quote:

# rm /tmp/.X0-lock
Note I'd recommend trying this as root or using su or sudo.

If you get an error about a stale NFS handle (which I've read can happen) you'll want to force an fsck on the filesystem /tmp is located on.
Quote:

# fsck /dev/sda2
If you don't get the goofy nfs error but still can't dlete the file, you can also use lsof to determine if a process is locking the file.
Quote:

# lsof /tmp/.X0-lock
and then kill it either by using kill <PID> where <PID> is the process ID or by using killall <name> where <name> is the name of the process.

Once you manage to delete the file try rebooting
Quote:

# reboot now
generally works, could also use
Quote:

# shutdown -r now
I hope this is helpful, I didn't see a lot of in depth info on this problem in my searching.

linuxandtsm 01-26-2012 03:10 PM

Hi sycamorex,

Do i need to login via live CD to fsck ?
If so, where can i find to download ISO to make it ?

Hi paladin.michael,

Code:

# rm /tmp/.X0-lock
rm: cannot remove `/tmp/.X0-lock': Permission denied

Code:

#  lsof /tmp/.X0-lock
lsof: status error on /tmp/.X0-lock: Permission denied

 # lsof |grep X0
 # echo $?
 1


sycamorex 01-26-2012 03:15 PM

Quote:

Originally Posted by linuxandtsm (Post 4585262)
Hi sycamorex,

Do i need to login via live CD to fsck ?
If so, where can i find to download ISO to make it ?

I'm not sure if your suse installation medium works as a live cd, if it does you can use it.
If not, this live cd works is quite good for all sorts of troubleshooting.
http://partedmagic.com/doku.php?id=downloads

Alternatively, if you've got any other linux installed on that computer you could do it from there. The key thing is that the file system mustn't be mounted when you run fsck on it.

linuxandtsm 01-26-2012 03:22 PM

Hi sycamorex,

Is this download free of cost ?

sycamorex 01-26-2012 03:25 PM

Quote:

Originally Posted by linuxandtsm (Post 4585272)
Hi sycamorex,

Is this download free of cost ?

Yes, it is (you can donate money ONLY if you want:)). Download that one: "Most people will only need this file"

linuxandtsm 01-27-2012 08:39 AM

Ok i have the live CD now.
Could anybody please provide steps for fsck with live CD ?
Thanks in advance!

sycamorex 01-27-2012 08:57 AM

Quote:

Originally Posted by linuxandtsm (Post 4585888)
Ok i have the live CD now.
Could anybody please provide steps for fsck with live CD ?
Thanks in advance!

Boot the computer with your Live CD now (you have burned the .iso image onto a CD, haven't you?)
Once it's loaded, open a terminal.
As root, issue the fsck command that Paladin posted before (that's assuming that the partition in question is /dev/sda2 - that's where your suse system is installed, isn't it?)

If something is unclear, do not hesitate to ask for clarification. Better safe than sorry:)

linuxandtsm 01-27-2012 12:51 PM

Hi sycamorex,

Thanks for introducing a great tool (PartedMagic) to me!!!.

Ok...i logged into shell with Live CD and did fsck on /dev/sda2 and it is clean!
Then i treid to remove "/tmp/.X0-lock" by mounting "/" on /mnt but surprisingly i couldn't find it there ???

And with Live CD ...GUI is working fine ...it directly booted to GUI mode !!!!!

so what could be the problem here ????

TroN-0074 01-27-2012 01:01 PM

Upgrading to OpenSuSE 11.4 might fix some problems

Quote:

Originally Posted by TroN-0074 (Post 4579239)
Here is the link http://software.opensuse.org/121/en

you have Internet connection so download the Network upgrade, burn it to CD then reboot your computer with the CD in and follow the steps.

I will suggest that for the upgrading purpose you actually plug your computer to a router instead of doing it wireless.

If your current installation has Gnome desktop manager Gnome 3 is what you are going to get final product. If your computer can't handle Gnome 3 there is a way to roll it back turning the roll back mode.

Also depend on your connection you might need to leave it upgrading overnight

Good luck to you!



All times are GMT -5. The time now is 06:15 AM.