From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 11 22:39:14 2003 Return-Path: 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 457D316A4CE; Thu, 11 Dec 2003 22:39:14 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B1E343D3F; Thu, 11 Dec 2003 22:39:12 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.10/8.12.10) with ESMTP id hBC6cwUd012110; Fri, 12 Dec 2003 01:38:58 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)hBC6cw0s012107; Fri, 12 Dec 2003 01:38:58 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Fri, 12 Dec 2003 01:38:57 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: paul van den bergen In-Reply-To: <200312121717.27412.pvandenbergen@swin.edu.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org cc: questions@freebsd.org Subject: Re: howto upgrade 4.8 to 4.9 without cdrom or floppy? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2003 06:39:14 -0000 On Fri, 12 Dec 2003, paul van den bergen wrote: > on freebsd-hackers, Alfred Perlstein posted a method that allows > boot-disk-less installation... but it requires mdconfig, a 5.1 > utility... > > is there a method to do this under 4.8? > > it seems to me that the job performed by md0 could be done with vn0 e.g. If you're willing to build from the source tree, the buildworld/buildkernel/installkernel/reboot/installworld/mergemaster route is actually quite reliable. I just upgraded a 4.6 box to 4.9 a couple of days ago, remotely with no serial console, cdrom, or floppy, without a hitch. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research > > do > # ls /dev/vn* > if empty do > # cd /dev > # ./MAKEDEV vn0 > # ./MAKEDEV vn1 > # vnconfig vn0 /path/to/freebsd/4.9.iso > # mount_cd9660 /dev/vn0c /path/to/freebsd4.9 > > or however you access the freebsd install iso disk > the point being to get access to the /floppies/boot.flp image on the cdrom > > # vnconfig vn1 /path/to/freebsd4.9/floppies/boot.flp > # mkdir /bootfloppy > # mount_mfs /dev/vn1c /bootfloppy/ > # cp /bootfloppy/kernel.gz /ikernel.gz > # cp /bootfloppy/mfsroot.gz /mfsroot.gz > > then reboot as described... > > I am about to try this out... wish me luck! > > > On Mon, 1 Dec 2003 07:18 pm, Alfred Perlstein wrote: > > I have a mini-HOWTO here that possibly be automated. > > > > Basically we're going to install FreeBSD over FreeBSD without > > a floppy, cdrom or pxe. > > > > This depends on a loader that's compatible with your kernel > > so if really weird lockups happen, you might not be compatible. > > > > > > Anyhow, here we go: > > > > > > Download the boot.flp from the release you want to install. > > > > Mount it like so: > > mdconfig -a -t vnode -f boot.flp > > # should output something like 'md0' > > mkdir -p /mnt > > mount /dev/md0 /mnt > > > > Copy the yummy bits from the install image to your root: > > cp /mnt/kernel.gz /ikernel.gz > > cp /mnt/mfsroot.gz /mfsroot.gz > > > > Now reboot and interrupt the loader when it counts down the boot. > > > > Then type these commands into the loader: > > unload kernel > > load /ikernel > > load -t mfs_root /mfsroot > > set vfs.root.mountfrom > > boot > > > > Now cross your fingers once you wipe the partitions out to reinstall... > > > > > > It would be cool if this could be automated[1], perhaps by setting > > the boot partition to the swap partition and setting it up temporarily > > as a ufs filesystem and then... oh... well... > > > > [1] http://www.jerkcity.com/jerkcity1426.html > > > > -- > Dr Paul van den Bergen > Centre for Advanced Internet Architectures > caia.swin.edu.au > pvandenbergen@swin.edu.au > IM:bulwynkl2002 > "And some run up hill and down dale, knapping the chucky stones > to pieces wi' hammers, like so many road makers run daft. > They say it is to see how the world was made." > Sir Walter Scott, St. Ronan's Well 1824 > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >