From owner-freebsd-small Tue Aug 21 14: 5:28 2001 Delivered-To: freebsd-small@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 0E43837B409; Tue, 21 Aug 2001 14:05:06 -0700 (PDT) (envelope-from julian@elischer.org) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id OAA43849; Tue, 21 Aug 2001 14:16:57 -0700 (PDT) Date: Tue, 21 Aug 2001 14:16:56 -0700 (PDT) From: Julian Elischer 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 Theoretically teh fdisk step is not required becasue the disklable has, in it, a dummy fdisk. This is what is called "dangerously dedicated" mode. it usually works but MIGHT confuse BIOSes if there is something tricky about the system. 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 Is this what you WANT or what you are doing now? > > TIA > -- > Andre > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message