Linux system CentOS can not start how to solve
Workaround:
1. We have tried a single user can login Ah, how to do not say, yes can login, think of the hard disk is not the problem, fsck repaired the next or not. Google it.
From the information of the error, it is called PREFDM when there is a problem, then what is this one thing? Online a query, which is to start the X desktop Dongdong, is a shell script, perched on the/ETC/X11/PREFDM.
2. Under the single user can log on normally, not single user mode when but not. Looked at the configuration of the RunLevel is 5, we changed the next 3 found that there is no problem, OK, you can start normal, the problem solved, that is because of what the reason, and then look for.
3. After looking at what was written in the/ETC/X11PREFDM script, I found two lines of critical code:
EXEC GDM "$@" >/dev/null 2>&1/dev/null 2>&1
4. Found that the GDM command did not. Yum Install gdm-y installation.
There should be no problem with the installation.
On the Internet can also report other mistakes, here record the spare
Error message:
AIT avahi-daemon[1102]: Service "localait" (/services/ssh.service) successfully established.
Aug 17:45:41 localait kdm[1193]: X Server "/usr/bin/x" cannot be executed
Aug 17:45:41 localait kdm[1174]: X server for display:0 cannot is started, session disabled
is because x cannot be executed.
X11 Server System Execution order is: priority to use STARTX--no use of ~/.XSERVERRC--no more execution/ETC/X11/XINIT/XSERVERRC--not yet that's the last step, execute/usr/bin/x.
Know the principle to see if X11 server installed, no words installed under: yum-y install xorg-x11-server-xorg