LinuxÒÁµéÔ°ÂÛ̳'s Archiver

happyboygd ·¢±íÓÚ 2007-2-5 12:30

"init: Id "x" respawning too fast: disabled for 5 m

In most distributions this means that the system is booting by default
into runlevel 5, which is supposed to respawn (re-start again after
it's been exited) a graphical login via xdm, kdm, gdm, or whatever,
and the system can't locate the program.

However, "Id" can also indicate the absence or misconfiguration of
another program, like mingetty, if init tries to respawn itself more
than 10 times in 2 minutes.

Id "x" is the number in the leftmost column of the /etc/inittab file:

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

Commenting the offending line out and then fixing the errant program
and testing on the command line will allow you to see any error
messages that go to standard error output (console) if the errors are
not going to the system log file. Uncomment the line and restart init
with "kill -SIGHUP 1" or "telinit q" to cause init to reinitialize and
reread the /etc/inittab file.

Some systems, however, rewrite /etc/inittab when booting. In that
case, refer to the init man page, and/or the settings in
/etc/sysconfig/init.

Refer to the init and /etc/inittab man pages for detailed information.

[Carl King]

happyboygd ·¢±íÓÚ 2007-2-5 12:33

µ±Ê¹ÓÃ/etc/inittabÀïÃæµÄij¸ö³ÌÐò£¬ÀýÈçmgettyÀ´½ÓÊÜmodem²¦È룬ͬʱϵͳÓÖÖØÐÂÆô¶¯»òÕß¼¸¸ö²¦Èë¶¼²»³É¹¦£»ÓÖ»òÕߵǼÌáʾÊý´Î±»È¡Ïû£¨ÀýÈçÓÃctrl+D£©£¬¶¼»á³öÏÖÕâÖÖÌáʾ¡£
  

Ô­ÒòÔÚÓÚ£¬µ±initͨ¹ý/etc/inittabÀ´Æô¶¯Ä³¸ö³ÌÐòµÄʱºò£¬Èç¹ûÕâ¸ö³ÌÐòÁ¬Ðø¼¸´Î±»ºÜ¿ìµØÖÕÖ¹£¬ÄÇôÔÚ/etc/inittabÀïÃæ¶ÔÓ¦µÄÌõÄ¿¾Í»á±»½ûÓò¢²»ÔÙÆô¶¯¡£Õý³£Çé¿öϳÌÐòÓ¦¸ÃÔÚ±»½áÊøºóÁ½·ÖÖÓºóÖØÐÂÆô¶¯£¬Õâ¸öÎÊÌâ²»Ó¦¸Ã¹é¾ÌÓÚinitµÄbug¡£
½â¾ö·½·¨ÊÇ£º
Ê×ÏÈ£¬ºÜ¶à³ÌÐòÓÐ×Ô¼ºµÄÈÕÖ¾»òÕß°ÑËûÃǵÄsyslogдµ½/var/log/messages»òÕßÕâ¸öĿ¼ÏÂÃæÀàËÆµÄÈÕÖ¾ÀïÃæ£¬ËùÒÔ¿ÉÒԲ鿴ÕâЩÈÕÖ¾À´µÃµ½´íÎóÐÅÏ¢¡£ÄãÒ²¿ÉÒÔÊÖ¶¯ÔÚshellÏÂÃæÆô¶¯ÕâЩ³ÌÐòÀ´µÃµ½´íÎóÐÅÏ¢£¬µ«ÊǼǵò»Òª¸Ä¶¯/etc/inittabÀïÃæµÄÏîÄ¿¡£Äã¿ÉÒÔÒÔrootÉí·ÝʹÓÃinit qÃüÁîʹµÃÕâЩÎÞЧµÄÃüÁîÖØÐ¿ÉÒÔʹÓᣠ  

£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­
ÕÒÁËЩ×ÊÁÏ£¬£º
[url]http://www.unixguide.net/linux/faq/09.24.shtml[/url]

²»¹ý±¨´íûÓоßÌåÖ¸³öX=¶àÉÙ£¬ËùÒÔû·¨Ê¹ÓÃ×¢Ê͵ôÒÔÏÂijһÐеķ½·¨¡£

# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

²é¿´/var/log/messageÖеÄÈÕÖ¾£¬Ò²Ã»ÓоßÌå˵Ã÷ÊÇÄÄÀï³ö´í¡£¡£

ÓÚÊÇÇл»µ½ÃüÁîÐÐ

vi /etc/inittab

½«id=5¸Ä³Éid=3£¬´ÓÎı¾½çÃæµÇ¼¡£
ÖØÆô reboot
È»ºó
startx
Æô¶¯Ê§°Ü£¬µ«µÃµ½¾ßÌåµÄ³ö´íÐÅÏ¢£¡Ô­À´¼¸¸öÎļþ(libmodle***)ÕÒ²»µ½¡£

locate libmodle

×ÜÖ®ÕÒµ½Õ⼸¸öÎļþ£¬cpµ½/usr/lib

È»ºó½«

/etc/inittabÖÐid¸Ä»Ø5£¬Ä¬ÈÏÆô¶¯X´°¿Ú¡£

reboot

¸ã¶¨




ÉÏÃæµÄÎÄÕÂÊÇÔÚlinuxaidÖе쬲»¹ýÎÒÒ»°ã¶¼Óá°££¡±°Ñ"1:2345:respawn:/sbin/mingetty tty1"×¢ÏúÁË£¬ÒòΪÎÒÒ»°ã¶¼Ö»Óô®¿ÚÉÏ¡£ÎÒ¾õµÃÊDZàÒëÄں˵Äʱºò£¬Â©ÁËʲô¶«Î÷Á˰ɣ¡

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.