From owner-freebsd-stable@FreeBSD.ORG Mon Aug 4 19:42:14 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 B95E7106566C for ; Mon, 4 Aug 2008 19:42:14 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out1.tiscali.nl (smtp-out1.tiscali.nl [195.241.79.176]) by mx1.freebsd.org (Postfix) with ESMTP id 7F93A8FC18 for ; Mon, 4 Aug 2008 19:42:14 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [212.123.145.58] (helo=guido.klop.ws) by smtp-out1.tiscali.nl with smtp id 1KQ5wb-0001Qv-0t for ; Mon, 04 Aug 2008 21:42:13 +0200 Received: (qmail 1650 invoked from network); 4 Aug 2008 19:42:11 -0000 Received: from localhost (HELO 82-170-177-25.ip.telfort.nl) (127.0.0.1) by localhost with SMTP; 4 Aug 2008 19:42:11 -0000 Date: Mon, 04 Aug 2008 21:42:11 +0200 To: "Nick Barnes" , freebsd-stable@freebsd.org From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <49120.1217868483@thrush.ravenbrook.com> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <49120.1217868483@thrush.ravenbrook.com> User-Agent: Opera Mail/9.51 (FreeBSD) Cc: Subject: Re: 5.x to 6.x or 7.x with 64MB / 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: Mon, 04 Aug 2008 19:42:14 -0000 On Mon, 04 Aug 2008 18:48:03 +0200, Nick Barnes wrote: > I have a machine which I have recently upgraded using cvsup, from 4.x > to RELENG_5, as a staging post en route to 7.x. The upgrade went well > until installworld ran out of disk on / and I realised it was only > 64BMB. My bad; should have checked before upgrading. With help from > an on-site colleague the installworld was nursed to completion. But > can I get the same machine up to 6.x or 7.x without repartitioning? > Advice please. > > Partitions are as follows. > > ad0 2439 M > ad0s1 2439 M > ad0s1a 64 M / > ad0s1b 128 M swap > ad0s1e 1024 M /var > ad0s1f 600 M /home > ad0s1g 623 M - > ad1 57259 M > ad1s1 57259 M > ad0s1a 10240 M /usr > > It occurs to me that if ad0s1a is insufficient then I could use ad0s1g > as swap, and repurpose ad0s1b as a new /. Is it straightforward to > installworld/mergemaster to somewhere other than / ? That is very well doable. On boot you can interrupt the boot process by pressing space an set another location for the kernel. More information is here. http://www.freebsd.org/doc/en/books/handbook/boot-blocks.html The rest is just about files. After you copy everything in ad0s1b (with a fs in it) you can boot from ad0s1b:/boot/kernel. I think you can do something like make installkernel DESTDIR=/blabla, but I'm not sure. Maybe more easy is booting with a LIVE-cd. Than you can mount everything needed for installworld in /mnt/tmproot, so you get: /mnt/tmproot mounted the _new_ / partition (ad0s1b?) /mnt/tmproot/usr where /usr is mounted (ad0s1a) /mnt/tmproot/var where /var is mounted (ad0s1e) Do a chroot /mnt/tmproot and than run installworld and mergemaster as usual from /usr/src. Don't forget to make a backup. It is on your own risk. ;-) Ronald.