From owner-freebsd-stable@FreeBSD.ORG Wed Feb 13 00:35:10 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F32B16A420 for ; Wed, 13 Feb 2008 00:35:10 +0000 (UTC) (envelope-from chris#@1command.com) Received: from mail.1command.com (mail.1command.com [75.160.109.226]) by mx1.freebsd.org (Postfix) with ESMTP id 0242E13C46B for ; Wed, 13 Feb 2008 00:35:09 +0000 (UTC) (envelope-from chris#@1command.com) Received: from mail.1command.com (localhost.1command.com [127.0.0.1]) by mail.1command.com (8.13.3/8.13.3) with ESMTP id m1D0Yvff091431; Tue, 12 Feb 2008 16:35:03 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by mail.1command.com (8.13.3/8.13.3/Submit) id m1D0Yv9g091430; Tue, 12 Feb 2008 16:34:57 -0800 (PST) (envelope-from chris#@1command.com) Received: from hitme.hitometer.net (hitme.hitometer.net [75.160.109.235]) by webmail.1command.com (H.R. Communications Messaging System) with HTTP; Tue, 12 Feb 2008 16:34:57 -0800 Message-ID: <20080212163457.sg35fvnbsgsg4s8w@webmail.1command.com> X-Priority: 3 (Normal) Date: Tue, 12 Feb 2008 16:34:57 -0800 From: "Chris H." To: Gavin Spomer References: <47B161630200009000013D1B@hermes.cwu.edu> In-Reply-To: <47B161630200009000013D1B@hermes.cwu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: H.R. Communications Internet Messaging System (HCIMS) 4.1 Professional (not for redistribution) / FreeBSD-5.5 Cc: freebsd-stable@freebsd.org Subject: Re: Rebuilding World Problems X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2008 00:35:10 -0000 Quoting Gavin Spomer : > Please forgive me if this is not the appropriate list to post this > on. If this is a topic for another, more appropriate FreeBSD list, > then would someone please kindly point this guy in the right > direction? :) > > I'm on the security advisory list too and got 2 emails about patches > about a month ago. They came with instructions to follow for > patching... excellent! Then, the last step has a link to the FreeBSD > Handbook's Rebuilding world. Yes, I admit, it's taken me almost a > month to get the courage (and find the time) to do this. I'm usually > pretty fearless when exploring computer things. I don't really have > the best way to backup either. I finally just made tarballs of > important directories and scp'd them to one of my Linux machines. I > finally got to the point where I booted to single user mode (first > time for me) and that's where my problems began. It might be useful > to note on the instructions page that you don't have to type "boot > -s" to go into single user mode; it's easier to to just select option > #4. > > First, let me note that step one in rebuilding world should be "cd > /usr/src", not "make buildworld". I guess I was supposed to know that > for some reason. Having said that, I figured I would also have to be > in /usr/src for the "make installworld" step. But I couldn't do that! > Why? I could cd to /usr, but not /usr/src! > > So, I decided to go ahead and try the "mergemaster -p" step. I was > given an error that was something like "cannot find mergemaster". So > I thought that maybe in single user mode my $PATH isn't set, so I > thought about entering "/sbin/mergemaster -p", but I didn't know if > that was the path or not and I chickened out. :( Maybe the fact that > I hit Return to choose /bin/sh while going into single user mode > instead of my preferred bash had something to do with it? > > Here's a slightly dumb question: when I get this all figured out, do > I have to start all over from "make buildworld" or can I just > continue with booting in single user mode and "mergemaster -p"? I'm > guessing I can just continue, but I thought it was important to ask. > > Here's a little more intelligent question or two. ;) Is there a way > to do this while logged in via ssh? I don't mind making the trip to > our computer room so I can select #4 at the FreeBSD prompt, but it's > not all that convenient. Also, how long (in general) do the steps > "mergemaster -p" through the final reboot take? I am running FreeBSD > on a test server, but if I were to use it for my production servers > (which I am considering), the down-time of being in single user mode > would be a concern. > > Thanks to everyone who takes the time to read this. :) Greetings Gavin, Yes, you're quite correct on all accounts. The doc's are a bit terse in these areas. Which, as I read your email, reminds me why I _should_ send-pr a patch with some additional info in these areas. I guess I'm like so many others - once I figured it all out, I got so involved with it all, I completely forgot there was some issues with the docs. NOTE: I'm not the author of the documentation. :) OK I'm going to give you a "cheat sheet" that I hope you'll find helpful in the future - be aware, this is NOT an excuse to ignore the /usr/src/UPDATING file, as THAT document will QUITE likely contain more timely information regarding little, but important changes, that can make all the difference. That said, here goes: -------------------------------------------------------- * On an initial install ALWAYS buildworld BEFORE buildkernel * Unless having troubles building a kernel, it is usually best to ensure /etc/make.conf is empty * If REbuilding world/kernel it is usually a good idea to perform the following: cd /usr/obj chflags -R noschg * rm -rf * (see chflags(1) for more information) -------------------------------------------------------- OK here we go: cd /usr/src/sys//conf cp ./GENERIC ./YOUR_CHOSEN_NAME edit ./YOUR_CHOSEN_NAME and adjust as necessary cd /usr/src make buildworld * * * * OPTIONAL * * * * NOTE: SINGLE CPU: make -j4 buildworld NOTE: MULTI CPU: make -j(6 through 10) buildworld * * * * * * * * * * * * make buildkernel KERNCONF=YOUR_KERNEL_HERE make installkernel KERNCONF=YOUR_KERNEL_HERE reboot (in single user mode) fsck -p (optional, but a good idea) mount -u / mount -a -t ufs swapon -a (most cases; optional) cd /usr/src mergemaster -p make installworld mergemaster reboot That was simply a QUICK cheat sheet, and does not replace good research. But I hope it helps. :) --Chris > > - Gavin > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > > -- panic: kernel trap (ignored)