From owner-freebsd-questions Tue May 28 22:26: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pcp-2.ihug.co.nz (pcp-2.ihug.co.nz [203.109.252.66]) by hub.freebsd.org (Postfix) with ESMTP id B677237B406 for ; Tue, 28 May 2002 22:25:54 -0700 (PDT) Received: from 203-173-242-41.adsl.ihug.co.nz (ihug.co.nz) [203.173.242.41] by pcp-2.ihug.co.nz with esmtp (Exim 3.22 #1 (Debian)) id 17Cvy4-0007di-00; Wed, 29 May 2002 17:25:52 +1200 Message-ID: <3CF46667.3080502@ihug.co.nz> Date: Wed, 29 May 2002 17:25:59 +1200 From: Matthew Luckie User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0rc3) Gecko/20020526 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: using alternative root file systems Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi I have 120 machines, with identical file system layouts, none of which I have physical access to, that need to be upgraded from FreeBSD 3.0 to FreeBSD 4.6 I have prepared replacement usr and root file systems with vn(4) that can be dd'd over the current file systems. I am hesitant to do a dd over live filesystems, and expect that this would actually result in corrupt file systems. One idea was to prepare a self contained root file system put it in swap, boot that, and then dd in fresh usr and root file systems. As far as I understand by reading boot(8) is The partition letter inside the BSD portion of the disk. See disklabel(8). By convention, only partition `a' con- tains a bootable image. If sliced disks are used (``fdisk partitions''), any slice can be booted from, with the default being the active slice or, otherwise, the first FreeBSD slice. Is there any way I can use the swap partition as a root file system? /sbin/disklabel -r /dev/wd0s1 [...] # size offset fstype [fsize bsize bps/cpg] a: 65536 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 4*) b: 281280 65536 swap # (Cyl. 4*- 21*) c: 12692736 0 unused 0 0 # (Cyl. 0 - 790*) e: 61440 346816 4.2BSD 1024 8192 16 # (Cyl. 21*- 25*) f: 12284480 408256 4.2BSD 1024 8192 16 # (Cyl. 25*- 790*) my current plan is to unpack a tar into root that is a self contained file system and boot that, then dd the usr file system across the network. Comments? -- Matthew Luckie kluckie@ihug.co.nz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message