From owner-freebsd-small Wed Aug 8 6:52: 8 2001 Delivered-To: freebsd-small@freebsd.org Received: from www.kozubik.com (www.kozubik.com [166.90.8.185]) by hub.freebsd.org (Postfix) with ESMTP id AB84737B409 for ; Wed, 8 Aug 2001 06:52:02 -0700 (PDT) (envelope-from john@kozubik.com) Received: from localhost (john@localhost) by www.kozubik.com (8.11.0/8.11.0) with ESMTP id f78DkPg08899; Wed, 8 Aug 2001 06:46:25 -0700 (PDT) (envelope-from john@kozubik.com) Date: Wed, 8 Aug 2001 06:46:25 -0700 (PDT) From: John Kozubik To: Doug White Cc: Soren Kristensen , freebsd-small@FreeBSD.ORG Subject: Re: net4501 easy install.... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is how I do things, using the fixit disk and a .tar.gz filesystem image on another server (could be a windows machine running an ftp server) I think what I have here is much simpler than what you were discussing - requires only one boot and one transfer, using the normal boot floppies and the fixit disk. This may not solve your PXE boot issue specifically, but it is a good example of how to create and prep the labels, etc, and how to move the filesystem over easily. (note - filenames, etc., below pertain to using ata-flash, not disk-on-chip. Also, even if you don't read all of this, please see a nice method of exploding tarred filesystems over ftp that Warner Losh showed me in step 14) Full document, including details for disk-on-chip can be found at: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/solid-state/index.html ------------ 1. boot off normal freebsd kern + mfsroot 2. choose custom install, choose partition, create partition with 'c' key, NOW HIT the hidden 'w' option. choose boot-manager (unless you are using Disk-on-chip) 3. exit custom install menu (do not use the label portion of the custom menu) 4. go to fixit 5. mknod /dev/ad0a c 116 0 ; mknod /dev/ad0c c 116 2 6. disklabel -e /dev/ad0c (at this point, make a new line at the end of the file for a: like: a: 123456 4.2BSD 0 0 (where 123456 is the partition size you see in the existing c: entry, and where those are not tabs but spaces between fields) 7. disklabel -B -r /dev/ad0c 8. newfs /dev/ad0a 9. mkdir /flash 10. mount /dev/ad0a /flash 11. cd /flash (you are now on your disk now) 12. ifconfig fxp0 1.2.3.4 netmask 255.255.255.0 13. route add default 1.2.3.1 14. Here is a neat trick - if your tarred filesystem is bigger than half of your flash card, how do you get the tar file on the flash card, and explode it ? 2x the space will be too much for the flash card. Here is how: ftp> get tarfile.tar "| tar xvf -" or if it is gzipped: ftp> get tarfile.tar.gz "| zcat | tar xvf -" and it will just explode, over ftp, onto your flash card. 15. cd / ; umount /flash ; sync 16. reboot, remove floppy, there is your system. --john On Tue, 7 Aug 2001, Doug White wrote: > This is kinda old, but my area of expertise. :) > > On Fri, 3 Aug 2001, Soren Kristensen wrote: > > > Now that I'm starting starting to ship your net4501's, I was wondering > > if somebody could do an easy installation procedure using PXE boot, I > > don't really have enough experience with FreeBSd myself, and are short > > of time anyway, busy doing the hardware :-) > > > > I was thinking something about a procedure where you could install > > different sizes of FreeBSD using any platform as host, even a windoze > > machine: > > > > Step 1) Setup a dhcp and tftp server, using just one directory (so even > > the crapiest free dhcp and tftp server on a windoze machine would do it) > > As long as you can pass standard filename options, it should work. > > > Step 2) Download and decompress a .zip or .gz file with the PXE loader > > and FreeBSD installer into that directory. > > > > Step 3) Optional, download the .gz distributions, basically just > > tarballs with the files, into the directory. > > > > Step 4) Boot PXE, starting a modified (simplified....) FreeBSD > > installer. > > > > Step 5) Using that installer, create partitions and filesystem on the > > CF, then install the distribution using either tftp, ftp, nfs, or (if > > possible) cifs. > > You can do a lot with a shell script .. fdisk -I is your friend. :) If > you can shoehorn awk & sed into the image you can use the diskprep script > out of the install picobsd image to build your disklabels automatically. > > Doug White | FreeBSD: The Power to Serve > dwhite@resnet.uoregon.edu | www.FreeBSD.org > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-small" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message