From owner-freebsd-questions@FreeBSD.ORG Sat Nov 15 15:40:58 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58ACE106564A for ; Sat, 15 Nov 2008 15:40:58 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id E169A8FC12 for ; Sat, 15 Nov 2008 15:40:57 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from phenom.cordula.ws (phenom [192.168.254.60]) by fw.farid-hajji.net (Postfix) with ESMTP id C426935EE6; Sat, 15 Nov 2008 16:37:39 +0100 (CET) Date: Sat, 15 Nov 2008 16:42:26 +0100 From: cpghost To: freebsd-questions@freebsd.org Message-ID: <20081115154226.GD945@phenom.cordula.ws> References: <20081115004643.GA5276@phenom.cordula.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081115004643.GA5276@phenom.cordula.ws> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: mdconfig(8) with offset? Or: resizing a NTFS qemu image X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Nov 2008 15:40:58 -0000 On Sat, Nov 15, 2008 at 01:46:43AM +0100, cpghost wrote: > Hello, > > I'm trying to extend a ntfs filesystem in a qemu raw image, by > following the instructions here: > > http://qemu-forum.ipi.fi/viewtopic.php?p=12362 > > Of course, this requires sysutils/ntfsprogs and the equivalent of > losetup. Of course, mdconfig is our losetup. > > Now, how is it possible to mdconfig a file, but starting from a > specific offset? > > (Of course, taking the image file apart, mdconfig one of its fragments, > then putting it back together could be a hackish work-around (?), but > it would be nice if mdconfig were able to map a partial file directly.) Just one more data point: if I mdconfig the qemu raw image, I do get both a /dev/md0 and /dev/md0s1 device, so I can fdisk /dev/md0s1 directly. mdconfig to another offset in the raw image file is therefore not strictly needed in this special case; but it would still be a nice-to-have feature. Regards, -cpghost. -- Cordula's Web. http://www.cordula.ws/