From owner-freebsd-questions@FreeBSD.ORG Mon Apr 19 02:14:15 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11F2116A4CE for ; Mon, 19 Apr 2004 02:14:14 -0700 (PDT) Received: from mail.u4eatech.com (blackhole.u4eatech.com [195.188.241.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80B9143D49 for ; Mon, 19 Apr 2004 02:14:13 -0700 (PDT) (envelope-from richard.williamson@u4eatech.com) Received: (from filter@localhost) by mail.u4eatech.com (8.11.6/8.11.6) id i3J9ECl19041 for freebsd-questions@freebsd.org; Mon, 19 Apr 2004 10:14:12 +0100 X-Authentication-Warning: mail.u4eatech.com: filter set sender to richard.williamson@u4eatech.com using -f Received: from apus.u4eatech.com (unknown [172.30.20.100]) by mail.u4eatech.com (Postfix) with ESMTP id 39AAF1577D6 for ; Mon, 19 Apr 2004 10:14:04 +0100 (BST) Message-Id: <6.1.0.6.2.20040419101005.02497158@cygnus> X-Sender: richard@cygnus X-Mailer: QUALCOMM Windows Eudora Version 6.1.0.6 Date: Mon, 19 Apr 2004 10:15:52 +0100 To: freebsd-questions@freebsd.org From: "Richard P. Williamson" Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, hits=-5.4 required=5.0 tests=BAYES_01 version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: growfs on file-backed fs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 09:14:15 -0000 Hello all, according to the handbook, I can create a file-backed fs (Example 12-5. Creating a New File-Backed Disk with vnconfig) # dd if=/dev/zero of=newimage bs=1k count=5k .. # vnconfig -s labels -c vn0 newimage # disklabel -r -w vn0 auto # newfs vn0c ... # mount /dev/vn0c /mnt I've been trying to do that, and end up with a file that I can turn into an mfsroot.gz (or mdroot.gz for that matter). But I can't get my device to boot from a flash device using a 'home-built' mfsroot.gz. I've tried various combinations of switches for vnconfig, disklabel and newfs, but nothing wants to allow it to play the way I need. When I replace the mfsroot.gz with mfsroot.flp from the floppy startup images, then it boots. I have, in the past done a growfs on the mfsroot.flp, in order to make it big enough to hold the files I need. But I'd rather just do the commands as described in example 12-5 above. What do I need to add to that to make it a bootable mfsroot? Regards, rip