From owner-freebsd-geom@FreeBSD.ORG Sat Feb 18 21:33:51 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7B9616A420 for ; Sat, 18 Feb 2006 21:33:51 +0000 (GMT) (envelope-from rik@inse.ru) Received: from mail.inse.ru (inse.ru [144.206.128.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7986E43D45 for ; Sat, 18 Feb 2006 21:33:49 +0000 (GMT) (envelope-from rik@inse.ru) Received: from inse.ru (www.inse.ru [144.206.128.1]) by mail.inse.ru (Postfix) with ESMTP id 5590733C27; Sun, 19 Feb 2006 00:33:46 +0300 (MSK) Message-ID: <43F79303.5050808@inse.ru> Date: Sun, 19 Feb 2006 00:34:59 +0300 From: Roman Kurakin User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.2.1) Gecko/20030426 X-Accept-Language: ru-ru, en MIME-Version: 1.0 To: Joerg Pernfuss References: <43F744FB.2060503@inse.ru> <20060218171638.6ac81f82@loki> In-Reply-To: <20060218171638.6ac81f82@loki> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-geom@freebsd.org Subject: Re: Disk copy X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Feb 2006 21:33:52 -0000 Joerg Pernfuss: >On Sat, 18 Feb 2006 19:02:03 +0300 >Roman Kurakin wrote: > > >>Hi, >> >> I have a disk full copy (as a file), not just partiton. >>I guess that geom is my friend. But I cant figureout how to >>attach it to the system via geom. >> >> > >mdconfig -a -t vnode -f $file [-u [0-9]] >mount_[fs-type] /dev/md[whatever] /mountpoint >$work >umount /mountpoint >mdconfig -d -u [0-9] > How this will deal with partition table? File is not partition copy, it is full copy of entire disk with partition table etc. rik