From owner-freebsd-questions@FreeBSD.ORG Fri Aug 20 12:52:41 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 64F6A16A4CE for ; Fri, 20 Aug 2004 12:52:41 +0000 (GMT) Received: from mail.u4eatech.com (blackhole.u4eatech.com [195.188.241.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6822B43D3F for ; Fri, 20 Aug 2004 12:52:40 +0000 (GMT) (envelope-from richard.williamson@u4eatech.com) Received: by mail.u4eatech.com (Postfix, from userid 503) id 8C34E360328; Fri, 20 Aug 2004 13:52: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 4B15F360323 for ; Fri, 20 Aug 2004 13:52:35 +0100 (BST) Message-Id: <6.1.2.0.2.20040820135438.027c77d8@cygnus> X-Sender: richard@cygnus X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Fri, 20 Aug 2004 13:54:46 +0100 To: freebsd-questions@freebsd.org From: "Richard P. Williamson" Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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: 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 12:52:41 -0000 Hello, I didn't get any responses at all to this question (below). Does that mean I asked it wrong, or that there isn't anyone out there with an answer? additional to the below, linux allows me to set an offset to losetup, so under that OS I would: losetup ­o 16384 /dev/loop0 san32.img losetup ­o 28377088 /dev/loop1 san32.img What would the equivalent be in FreeBSD 4.10? vnconfig doesn't seem to support offsetting...but is it vnconfig I should even be looking at? TIA, rip Hello, 4.10-RELEASE I've got an image of a 32mb compact flash card that I created by dd if=/dev/ad3 of=./sanDisk.32Mb.image Now, I want to mount that image and check it for validity, edit it, etc, and then get it back onto the flash card. I've already worked out how to get it back onto a compact flash card (dd, or if it is gzipped, then zcat). But how can I mount it? The format is a 28Mb slice (a) and a 4Mb slice (e). I've tried vnconfig vn0 sanDisk.32Mb.image and vnconfig vn0a sanDisk.32Mb.image but fdisk tells me 'invalid superblock' when pointed at /dev/vn0[a]. How can I mount the two slices on different mount points? Can I do this at all? TIA, rip