From owner-freebsd-questions@FreeBSD.ORG Sat Nov 15 00:45:14 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 3A06A106567C for ; Sat, 15 Nov 2008 00:45:14 +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 B00D48FC0A for ; Sat, 15 Nov 2008 00:45:13 +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 6D161340BA; Sat, 15 Nov 2008 01:41:54 +0100 (CET) Date: Sat, 15 Nov 2008 01:46:43 +0100 From: cpghost To: freebsd-questions@freebsd.org Message-ID: <20081115004643.GA5276@phenom.cordula.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Subject: 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 00:45:14 -0000 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.) Thanks, -cpghost. -- Cordula's Web. http://www.cordula.ws/