From owner-freebsd-hackers Tue Aug 21 12:42:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by hub.freebsd.org (Postfix) with SMTP id C73EE37B405 for ; Tue, 21 Aug 2001 12:42:42 -0700 (PDT) (envelope-from oppermann@monzoon.net) Received: (qmail 50710 invoked from network); 21 Aug 2001 19:41:54 -0000 Received: from unknown (HELO monzoon.net) ([62.48.21.227]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 21 Aug 2001 19:41:54 -0000 Message-ID: <3B82B96E.F22EB480@monzoon.net> Date: Tue, 21 Aug 2001 21:41:34 +0200 From: Andre Oppermann X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Cc: freebsd-small@freebsd.org Subject: How to make bootable disk boot images with vn device? 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 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-hackers" in the body of the message