From owner-freebsd-questions@FreeBSD.ORG Fri Aug 20 17:20:40 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 5739A16A4CE for ; Fri, 20 Aug 2004 17:20:40 +0000 (GMT) Received: from mail.u4eatech.com (blackhole.u4eatech.com [195.188.241.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6B7443D41 for ; Fri, 20 Aug 2004 17:20:39 +0000 (GMT) (envelope-from richard.williamson@u4eatech.com) Received: by mail.u4eatech.com (Postfix, from userid 503) id C6F3F360135; Fri, 20 Aug 2004 18:20:38 +0100 (BST) Received: from apus.u4eatech.com (apus.degree2.com [172.30.40.129]) (using TLSv1 with cipher DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by mail.u4eatech.com (Postfix) with ESMTP id 7C5D3360132; Fri, 20 Aug 2004 18:20:35 +0100 (BST) Message-Id: <6.1.2.0.2.20040820181609.027f7c78@cygnus> X-Sender: richard@cygnus X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Fri, 20 Aug 2004 18:25:01 +0100 To: Warren Block , freebsd-questions@freebsd.org From: "Richard P. Williamson" In-Reply-To: <20040820101824.V2521@wonkity.com> References: <6.1.2.0.2.20040820135438.027c77d8@cygnus> <20040820074543.E1899@wonkity.com> <6.1.2.0.2.20040820150157.027c7920@cygnus> <20040820101824.V2521@wonkity.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on mail X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.64 Subject: [SOLUT] Re: vnconfig and a compact flash disk image 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: Fri, 20 Aug 2004 17:20:40 -0000 At 17:30 20/08/2004. Warren Block had this to say: >On Fri, 20 Aug 2004, Richard P. Williamson wrote: >>venus# vnconfig vn0 san32.img > >I don't know what that does, but it does not agree with the examples in the vnconfig man page. Instead, it should be > >vnconfig -c -v /dev/vn0 san32.img > >(It may also need the -s labels option.) absence of any - commands implies -c, -v is verbose. And yes, it turns out the -s labels option is required! After more digging, these are the steps to take... 1) The Compact Flash image must be copied off into the file using the rad0 device (for example), and not the ad0 device: dd if=/dev/rad0 of=/home/test/san32.img Using the ad0 device resulted in an img that had no sector zero, and thus no master boot block, I think. 2) Once you have your san32.img, you attach it through the vn0 device: vnconfig -c -s labels vn0 san32.img 3) To verify that you are golden, use fsck: fsck /dev/vn0s1a ... fsck /dev/vn0s1e ... Note the devices are the drilled down ones, all the way to the distinct slice partition (I think that is the terminology, erm.) fsck /dev/vn0 complained, as did /dev/vn0s1. 4) And now the slice parts are mountable: mount /dev/vn0s1a /parta mount /dev/vn0s1e /parte Which is different from my normal usage of just mount /dev/vn0a /parta, for example. Thanks for you help, it was the -s labels comment that was the key! rip