From owner-freebsd-questions@FreeBSD.ORG Sat Dec 31 08:39:44 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D228106566B for ; Sat, 31 Dec 2011 08:39:44 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 2111C8FC0C for ; Sat, 31 Dec 2011 08:39:42 +0000 (UTC) Received: from r56.edvax.de (port-92-195-26-82.dynamic.qsc.de [92.195.26.82]) by mx02.qsc.de (Postfix) with ESMTP id EA2881E67E; Sat, 31 Dec 2011 09:39:41 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id pBV8dfmL002134; Sat, 31 Dec 2011 09:39:41 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sat, 31 Dec 2011 09:39:41 +0100 From: Polytropon To: Janos Dohanics Message-Id: <20111231093941.23c62fb9.freebsd@edvax.de> In-Reply-To: <20111231005704.7a31cfb1.web@3dresearch.com> References: <20111231005704.7a31cfb1.web@3dresearch.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: Single user mode exits unexpectedly X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2011 08:39:44 -0000 On Sat, 31 Dec 2011 00:57:04 -0500, Janos Dohanics wrote: > I have just rebuilt world and kernel according to the Handbook, > installed the new kernel, rebooted, logged in, issued "sudo shutdown > now" - the machine entered single user mode, then immediately exited > without any intervention by me and continued to boot into multiuser > mode. That's not the procedure required. From the comment section of /usr/src/Makefile: 1. `cd /usr/src' (or to the directory containing your source tree). 2. `make buildworld' 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). [steps 3. & 4. can be combined by using the "kernel" target] 5. `reboot' (in single user mode: boot -s from the loader prompt). 6. `mergemaster -p' 7. `make installworld' 8. `make delete-old' 9. `mergemaster' (you may wish to use -i, along with -U or -F). 10. `reboot' 11. `make delete-old-libs' (in case no 3rd party program uses them anymore) Step 5: reboot _into_ single user mode. After installing the kernel and shutting down the system, let it come up to the kernel loader. You can enter that stage by pressing the space bar several times. If I remember correctly, you'll then see prompt Ok > _ Then enter "boot -s" to bring up the system in single user mode. After you've confirmed the shell, do # mount -a # cd /usr/src # mergemaster -p and continue with steps 7 - 10. If you have the Beastie menu, press [4] to get into the single user mode. > Here is a snippet from /var/log/messages: > > Dec 30 17:41:15 iguana rc.shutdown: 30 second watchdog timeout expired. Shutdown terminated. > Dec 30 17:41:15 iguana init: /bin/sh on /etc/rc.shutdown terminated abnormally, going to single user mode > Dec 30 17:41:15 iguana syslogd: exiting on signal 15 <--- > Dec 30 17:41:28 iguana syslogd: kernel boot file is /boot/kernel/kernel <--- > > This seems to be happening every time in response to "shutdown now". The reason might be that you're running your updated kernel, but the world has not been properly installed? > However, I can cold boot this machine into single user mode with > nothing unusual. > > This is FreeBSD 8.2-STABLE amd64, rebuilt on 12/26/2011 > > I guess I may have unintentionally changed a config file? Where should > I look? Review your installation steps and _maybe_ redo the installation as indicated in the manual. Maybe there's really just something out of sync. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...