|
|
我的机器从2.6.28升级到2.6.30-r1之后, 出现了很奇怪的现象, 运行
- shutdown -h now
- init 0
- halt
复制代码
这三个命令都不能让机器自动关机, 现象都是一样的, 停在一条语句上
- INIT: no more processes left in this runlevel
复制代码
之后便没有相应了,alt+del+ctrl不好使,只能按关机键。
但是关机的时候好像硬盘已经停转了,没有任何响动就关机了
请问这是为什么?
看了之前的一个帖子说alsasound的问题, 但是我的alsasound里面设置是正常的,所以排除了alsasound的问题
之后在gentoo bug里面找了一下, 发现一个bug提交
http://bugs.gentoo.org/show_bug.cgi?id=246502
里边robin johnson的解法我采用了一下,在inittab里面加入
- +l0s:0:wait:/sbin/halt -dhip
- +l6r:6:wait:/sbin/reboot -dk
复制代码 之后,测试了一下, 可以重启不在有之前的提示,但是关机的现象还是一样,无法关机
并且在开机和关机都会出现提示
- INIT: /etc/inittab[22] missing process field
复制代码
这个第22行就是- +l0s:0:wait:/sbin/halt -dhip
复制代码
现在就卡在这里不能继续了
现在贴上我的inittab
- #
- # /etc/inittab: This file describes how the INIT process should set up
- # the system in a certain run-level.
- #
- # Author: Miquel van Smoorenburg, <miquels@cistron.nl>
- # Modified by: Patrick J. Volkerding, <volkerdi@ftp.cdrom.com>
- # Modified by: Daniel Robbins, <drobbins@gentoo.org>
- # Modified by: Martin Schlemmer, <azarah@gentoo.org>
- #
- # $Header: /var/cvsroot/gentoo-x86/sys-apps/sysvinit/files/inittab,v 1.5 2005/12/22 02:03:23 vapier Exp $
- # Default runlevel.
- id:3:initdefault:
- # System initialization, mount local filesystems, etc.
- si::sysinit:/sbin/rc sysinit
- # Further system initialization, brings up the boot runlevel.
- rc::bootwait:/sbin/rc boot
- l0:0:wait:/sbin/rc shutdown
- l0s:0:wait/sbin/halt -dhip
- l1:S1:wait:/sbin/rc single
- l2:2:wait:/sbin/rc nonetwork
- l3:3:wait:/sbin/rc default
- l4:4:wait:/sbin/rc default
- l5:5:wait:/sbin/rc default
- l6:6:wait:/sbin/rc reboot
- l6r:6:wait:/sbin/reboot -dk
- #z6:6:respawn:/sbin/sulogin
- # TERMINALS
- c1:12345:respawn:/sbin/agetty 38400 tty1 linux
- c2:2345:respawn:/sbin/agetty 38400 tty2 linux
- c3:2345:respawn:/sbin/agetty 38400 tty3 linux
- c4:2345:respawn:/sbin/agetty 38400 tty4 linux
- c5:2345:respawn:/sbin/agetty 38400 tty5 linux
- c6:2345:respawn:/sbin/agetty 38400 tty6 linux
- # SERIAL CONSOLES
- #s0:12345:respawn:/sbin/agetty 9600 ttyS0 vt100
- #s1:12345:respawn:/sbin/agetty 9600 ttyS1 vt100
- # What to do at the "Three Finger Salute".
- ca:12345:ctrlaltdel:/sbin/shutdown -r now
- # Used by /etc/init.d/xdm to control DM startup.
- # Read the comments in /etc/init.d/xdm for more
- # info. Do NOT remove, as this will start nothing
- # extra at boot if /etc/init.d/xdm is not added
- # to the "default" runlevel.
- x:a:once:/etc/X11/startDM.sh
复制代码
还有我的/etc/init.d/shutdown.sh
- # Copyright 1999-2006 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- opts="-d"
- [ "${INIT_HALT}" != "HALT" ] && opts="${opts}p"
- [ "${RC_DOWN_INTERFACE}" = "yes" ] && opts="${opts}i"
- [ "${RC_DOWN_HARDDISK}" = "yes" ] && opts="${opts}h"
- /sbin/halt "${opts}"
- # hmm, if the above failed, that's kind of odd ...
- # so let's force a halt
- /sbin/halt -f
复制代码
请大侠们帮我看一下具体是什么问题,不胜感激 |
|