From owner-freebsd-hackers Fri Aug 9 21:54:52 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EDAE37B400 for ; Fri, 9 Aug 2002 21:54:50 -0700 (PDT) Received: from mail020.syd.optusnet.com.au (mail020.syd.optusnet.com.au [210.49.20.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E08E43E84 for ; Fri, 9 Aug 2002 21:54:49 -0700 (PDT) (envelope-from markhannon@optusnet.com.au) Received: from doorway.homeip.net (c16412.sunsh3.vic.optusnet.com.au [211.28.119.31]) by mail020.syd.optusnet.com.au (8.11.1/8.11.1) with ESMTP id g7A4slQ30941 for ; Sat, 10 Aug 2002 14:54:47 +1000 Received: from optusnet.com.au (tbird.home.lan [192.168.1.5]) by doorway.homeip.net (8.12.3/8.11.0) with ESMTP id g7A4spvt051261 for ; Sat, 10 Aug 2002 14:54:52 +1000 (EST) (envelope-from markhannon@optusnet.com.au) Message-ID: <3D549CA6.29734446@optusnet.com.au> Date: Sat, 10 Aug 2002 14:55:02 +1000 From: Mark Hannon X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: hackers@freebsd.org Subject: HOWTO: Upgrade w/o floppy or cd to bootstrap Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I recently decided to upgrade my network firewall which is headless. Last time I had a monitor attached I had set the BIOS to boot only CD-ROM and then hard-disk. This presented me with a problem to perform a serial-console installation. (The handbook talks about modifiy the boot floppies to use the console, this isn't so easy with a d/led ISO image) After much mucking around I finally worked out how to perform a binary upgrade without resorting to either a floppy or cd to boot. My instructions follow in case they are of use to anyone else. rgds/mark Instructions for Upgrade Install without floppy / cdrom ------------------------------------------------------- The prerequisite is a working system (or at least boot blocks and existing ffs partitions). The first step is to unpack the normal installation images and copy the contents onto a subdirectory of your root partition. # cd / # mkdir installroot # cd installroot # vnconfig vn0c /cdrom/floppies/boot.flp # mount /dev/vn0c /mnt # cp -r /mnt/* /installroot Aftere this procedure there is an /installroot directory on your root partition with all the files needed to bootstrap the installation. Now reboot the computer and press space to enter the loader. Once you get the bootloader prompt then enter the following. ok load /installroot/kernel ok load -t mfs_root /installroot/mfsroot ok set vfs.root.mountfrom="ufs:/dev/md0c" ok boot Now the new kernel and mfs image should boot and the install start as per normal. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message