From owner-freebsd-small Thu Aug 23 7:31: 3 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 905DD37B403; Thu, 23 Aug 2001 07:30:53 -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 f7NEOUk89067; Thu, 23 Aug 2001 07:24:31 -0700 (PDT) (envelope-from john@kozubik.com) Date: Thu, 23 Aug 2001 07:24:30 -0700 (PDT) From: John Kozubik To: Andre Oppermann Cc: freebsd-hackers@FreeBSD.ORG, freebsd-small@FreeBSD.ORG Subject: Re: How to make bootable disk boot images with vn device? In-Reply-To: <3B82B96E.F22EB480@monzoon.net> 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 Andre, Please take a look at this article: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/solid-state/index.html Specifically, this page: http://www.freebsd.org/doc/en_US.ISO8859-1/articles/solid-state/x109.html This part of the article explains, in step by step detail, how to boot off of a fixit disk, and build a filesystem on a flash device (either sandisk style ATA device or Disk-On-Chip). It takes you through everything up to and including configuring the ethernet adaptor and using ftp to grab your disk image (instead of dd'ing) (fixit disk does not have dd) The article as a whole describes a different process than what you are doing, but this piece of the article is (I think) exactly what you need. I would be happy to help further if you need it. ----- John Kozubik - john@kozubik.com - http://www.kozubik.com On Tue, 21 Aug 2001, Andre Oppermann wrote: > Hello, > > I've run into a (hopefully small) roadblock here. > > What I want to do is to make a comlete bootable 'disk' image for a > IDE flash disk. This disk image should be simply dd-able to the target > flash and include boot blocks and partition table etc. > > So far I did a flash image by putting a IDE flash onto the IDE bus a > second disk, fdisk'd and label'd it, put the kernel and all the > binaries onto it. Then "dd if=/dev/ad1 of=/images/flash-image.dd" to > get a image I can dd back to the next flash. > > Now I'd like to make the generation of the master dd image a little > bit easier and avoid the need of having a flash in the build machine. > > This is how I came via the PXE netboot stuff to the vn device and > vnconfig. > > For some reason I'm missing how I can create a full disk image with > this. Appearently the fdisk step is missing and I never get such a > image dd' to a flash to boot. So here I'm lost. Any help appreciated. > > # dd if=/dev/zero of=mfsroot bs=1k count=25000 > # vnconfig -e -s labels vn0 mfsroot > # disklabel -r -w vn0 auto > # newfs /dev/vn0c > # mount and cp blabla > > TIA > -- > Andre > > 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