"shutdown now" as root is fine up until: * Saving random seed... [ ok ] And then it just hangs there. I can use other terminals, and login and so on. Also, I get a prompt between, lines, like: The system is going down to maintenance mode NOW! INIT: Switching to runlevel: 1 [root@pseudo: ~] # * Stopping local... [ ok ] that. Reproducible: Always Steps to Reproduce: 1. # shutdown now Actual Results: Shutdown script runs, and hangs in the middle. Expected Results: Shut down the system. Reboot works perfectly, so I can just "reboot" and press the power button. It's annoying, though. Looking at the output of reboot, I believe the next thing to be done is to kill off devfsd. I've compiled the kernel myself (2.6.7) and can attach the config if need be. emerge info: [root@pseudo: ~] # emerge -v info Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.6. 7) ================================================================= System uname: 2.6.7 i686 Intel(R) Pentium(R) 4 CPU 1300MHz Gentoo Base System version 1.4.16 distcc 2.13 i386-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="" ARCH="x86" AUTOCLEAN="yes" BASH_ENV="/etc/portage/bashrc" CFLAGS="-O3 -mcpu=i686 -march=pentium4 -pipe -fomit-frame-pointer" CHOST="i386-pc-linux-gnu" CLEAN_DELAY="5" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -mcpu=i686 -march=pentium4 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp:// mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.easynet.nl/mirror/ gentoo/ http://gentoo.tiscali.nl/gentoo/" GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses" HISTFILE="" HISTFILESIZE="0" HOME="/root" LOGNAME="continuity" LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01: cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*. com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01; 31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01; 31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*. rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.jpg=01;35:*.jpeg=01;35:*. gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01; 35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*. mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01; 35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*. rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pdf=00;32:*.ps=00;32: *.txt=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=00;36:*.wav=00;36:*. mid=00;36:*.midi=00;36:*.au=00;36:*.ogg=00;36:" MAKEOPTS="-j2" NOCOLOR="false" OLDPWD="/home/continuity" PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/kde/3.2/bin:/usr/X11R6/ bin:/usr/kde/3.2/bin:/usr/X11R6/bin:/usr/kde/3.2/bin" PKGDIR="/usr/portage/packages" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_CACHEDIR="/var/cache/edb/dep/" PORTAGE_CALLER="emerge" PORTAGE_GID="250" PORTAGE_MASTER_PID="5445" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PRELINK_PATH="" PRELINK_PATH_MASK="" PS1="\[\e[34m\][\[\e[32m\]\u\[\e[36m\]@\[\e[32m\]\H\[\e[36m\]: \[\e[32m\] \w\[\e[34m\]] \[\e[0m\]\$ " PWD="/root" RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}" RPMDIR="/usr/portage/rpm" RSYNC_RETRIES="3" RSYNC_TIMEOUT="180" SHLVL="2" SSH_CLIENT="192.168.0.2 3722 22" SSH_CONNECTION="192.168.0.2 3722 192.168.0.3 22" SSH_TTY="/dev/pts/0" SYNC="rsync://rsync.gentoo.org/gentoo-portage" TERM="xterm" USE="X apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib" USER="continuity" USERLAND="GNU" USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS" XARGS="xargs -r" _="/usr/bin/emerge"
Could you issue a ps auxf >> mylist.txt So we can find out what process is hanging the shutdown
I too have had this problem and follows is a workaround and some notes on the problem... Several things of note: *) ps indicated that init was hung. *) issuing the "reboot" or "halt" commands worked fine, but "shutdown -P now" hung. *) changing the three-finger-sallute in /etc/inittab to "halt -p" now works fine. Not shure why shutdown -P would hang, but I hope that this info helps to track down the problem and suffices for a workaround.
try the latest versions