From owner-freebsd-questions@FreeBSD.ORG Tue Aug 5 05:23:05 2008 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 80921106566C for ; Tue, 5 Aug 2008 05:23:05 +0000 (UTC) (envelope-from freebsd_user@guice.ath.cx) Received: from guice.ath.cx (cpe-72-225-169-69.nyc.res.rr.com [72.225.169.69]) by mx1.freebsd.org (Postfix) with ESMTP id EA7418FC27 for ; Tue, 5 Aug 2008 05:23:04 +0000 (UTC) (envelope-from freebsd_user@guice.ath.cx) Received: from WORKSTATION.ath.cx ([192.168.1.112]) (authenticated bits=0) by guice.ath.cx (8.13.1/8.12.9) with ESMTP id m755Mpnb054080; Tue, 5 Aug 2008 01:23:03 -0400 (EDT) (envelope-from freebsd_user@guice.ath.cx) Message-ID: <48981BE8.8050804@guice.ath.cx> Date: Tue, 05 Aug 2008 05:22:48 -0400 From: freebsd_user@guice.ath.cx User-Agent: Thunderbird 2.0.0.9 (X11/20071201) MIME-Version: 1.0 To: Daniel Bye References: <48975FF8.6010207@guice.ath.cx> <20080804220801.GA6648@torus.slightlystrange.org> <489784A8.7030701@guice.ath.cx> <20080805042950.GB6648@torus.slightlystrange.org> In-Reply-To: <20080805042950.GB6648@torus.slightlystrange.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: buildworld, buildkernel, installkernel, shutdow now, fsck -p -- NO WRITE ACCESS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2008 05:23:05 -0000 Daniel Bye wrote: > On Mon, Aug 04, 2008 at 06:37:28PM -0400, email wrote: > >> I thank you. In addition, I am quite sure the command we are referred >> to in "23.4.5 Drop to Single User Mode" is in fact 'shutdown now' and >> not 'shutdown -r now'. >> > > Yes. But that section relates to dropping to single user mode for the > duration of the build, not for the installworld phase. To quote from > 23.4.5: > > You may want to *compile* the system in single user mode. (Emphasis > mine) > > It is merely a possible preparatory step that some people like to take > before embarking on the rest of the process. > > Section 23.4.9 goes on to talk about what to do after the world and > kernel build are complete, and you have installed the new kernel: > > You should reboot into single user mode to test the new kernel works. > Do this by following the instructions in Section 23.4.5. > > This refers specifically to the part of 23.4.5 that talks about > rebooting into single user mode, and not the part that talks about > dropping to single user mode. (A subtle, but important, distinction.) > > I would suggest that the simplest approach would be something like: > > # cd /usr/src > # make buildworld && make buildkernel > # make installkernel > (reboot into single user mode) > # fsck -p > # mount -u / > # mount -at ufs > # swapon -a > # cd /usr/src > # make installworld > # mergemaster > > (Just so we're clear - section 23.4.5 talks about going to single > user mode for the duration of the *first 3 steps* of the above process. > As I mentioned previously, I have never found this step necessary, but > there is certainly no harm in it, and it may be the sensible thing to > do if your system has a lot of users logged in during normal operations. > Note that you must still reboot after installing the new kernel, and > before continuing to installworld.) > > Dan > > I followed 'your' suggestion/recommendation and did 'shutdown -r now' with great results; -- fsck -p works fine. However allow me to say that the fbsd handbook section 23.4.9, which I was initially following referred me back/up to section 23.4.5. The entire section -- 23.4 Rebuilding “world” only mentioned 'shutdown -r now' one (1) time in section 23.4.12. Had the fbsd handbook mentioned 'shutdown -r now' instead of referring the reader to another section perhaps I wouldn't be discussing this with you. :-) Sorry to make this longer than it needed to be. I thank you once again.