From owner-freebsd-current@FreeBSD.ORG Thu Sep 17 20:49:20 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E514B106568B for ; Thu, 17 Sep 2009 20:49:20 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-fx0-f210.google.com (mail-fx0-f210.google.com [209.85.220.210]) by mx1.freebsd.org (Postfix) with ESMTP id 42E8E8FC08 for ; Thu, 17 Sep 2009 20:49:19 +0000 (UTC) Received: by fxm6 with SMTP id 6so310877fxm.43 for ; Thu, 17 Sep 2009 13:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=x09b0Rj/hIAbch2xYkDZXurH8TNgZZZFAIEs4HkaFKk=; b=hEn0TAUgYea6xz4c2FCi6tucdS/igG09c36atcA+9VcQLnSbNzVhKDeHOHMEi+G5gv yr5JqZr5flLP5hgK/+wscVcJxnxEJPqjvmprO2pqCXMTQxcG7fkjSnfAVttNh1k15qjj 5jLBiFPW00Ee54ZYrd5/+OjD/ParhgqCnFtgo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=kEz9r+1oQ/CHL0Ko+g322Yl2TRBo4imaRuPu3gtqKm0ZPt/Qsl/4Dv1QK19q/uMgO0 NQfbK4IDf6H0dUWFQ7iWky5cgfWn7DLnAIT07LkZEmYH0upvRL+DuS6ZHM7zFWb+e1YM gCElwhxAjhl2rcwEUK4TKJSGVziU6B+XQDJSI= MIME-Version: 1.0 Received: by 10.239.138.18 with SMTP id n18mr47620hbn.40.1253220559013; Thu, 17 Sep 2009 13:49:19 -0700 (PDT) In-Reply-To: <20090917074121.GA13242@ei.bzerk.org> References: <20090916065625.GA627@lonesome.com> <200909161451.02432.mel.flynn+fbsd.current@mailing.thruhere.net> <20090916225319.GA1790@duncan.reilly.home> <4AB17542.9010401@FreeBSD.org> <20090917001151.GA4829@duncan.reilly.home> <20090917074121.GA13242@ei.bzerk.org> Date: Thu, 17 Sep 2009 21:49:18 +0100 Message-ID: From: krad To: Ruben de Groot , Andrew Reilly , Doug Barton , Mel Flynn , Mark Linimon , freebsd-current@freebsd.org, Rom Albuquerque Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Source level upgrade from 4.9 to CURRENT.. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Sep 2009 20:49:21 -0000 2009/9/17 Ruben de Groot > On Thu, Sep 17, 2009 at 10:11:51AM +1000, Andrew Reilly typed: > > On Wed, Sep 16, 2009 at 04:31:14PM -0700, Doug Barton wrote: > > > There are also the issues of CPU horesepower and quantity of RAM that > > > are potential problems on hardware that is at minimum 6 years old. > > > Everything about this project shouts DANGER WILL ROBINSON!!! to me. > > > > Oh, I don't know. I'm running 7-STABLE (February vintage: it's > > too slow to rebuild very often) on an old P-III/500 box with > > 512M of RAM. Works beautifully for what I'm asking of it (not > > much). That box probably started with something of the 3- or > > 4- vintage and upgraded continuously in place. I do remember > > giving it a new disk drive when I did the step to UFS2, though. > > I run FreeBSD 8.0 on a soekris 100 Mhz "i586" with 64 MB. Smoothly. > > Ruben > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > I have missed a chunk of this thread so sorry if im repeating whats already been said. I have done quite a few upgrades from 4x to current successfully. The reason I did this rather than a full reinstall was the boxes didnt have cds, didnt boot usb, and i dont have floppies anymore. Anyway this is what i found the most reliable way of doing it 1. back it all up 2. download base and kernels distro directories 3. "./install.sh generic" in the kernels dir 4. chflags noschg /kernel 5. mv /kernel /kernel.old 6. ln /boot/kernel/kernel /kernel 7. Reboot to single user 8. mv /etc/ etc.old 9. cd to base dir and "./install.sh" (overwrite it all) (you usually get a few errors but ignore them) 10. copy relevent bits from /etc.old to /etc You might be able to get away with it but I always do a make world and kernel at this point. To doubly make sure everything is there and installed correctly now for the local packages you have two options: rebuild or install compatibility libraries I usually go for rebuild 1.mv /usr/local /usr/local.old 2. mv /var/db/pkg /var/db/pkg.old 3. reinstall ls /var/db/pkg.old/| while read f; do pkg_info -o $f| tail -2; done | sed -e "s/^.*\///" | sort -uls /var/db/pkg/| while read f; do pkg_info -o $f| tail -2; done | sed -e "s/^.*\///" | sort -u | while read p; do pkg_add -rv $p; done 4. copy your configs accross from the /usr/local.old dir Finally after you have tested and are happy all is ok cleanup rm -rf /usr/local.old /var/db/pkg.old cd /usr/src yes | make delete-old-files delete-old-libs delete-old-dirs Its a bit long winded but does work and you end up with a fairly clean install. You can speed up the process by doing the buildworld and buildkernel on another box and nfs exporting /usr/src and obj to the target system