From owner-freebsd-questions@FreeBSD.ORG Mon Mar 14 22:52:30 2005 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 9EB4216A4D6 for ; Mon, 14 Mar 2005 22:52:30 +0000 (GMT) Received: from relay.pair.com (relay00.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id F27CA43D5A for ; Mon, 14 Mar 2005 22:52:29 +0000 (GMT) (envelope-from alejandro@varnet.biz) Received: (qmail 71212 invoked from network); 14 Mar 2005 22:52:29 -0000 Received: from unknown (HELO ale.varnet.bsd) (unknown) by unknown with SMTP; 14 Mar 2005 22:52:29 -0000 X-pair-Authenticated: 200.115.214.28 Date: Mon, 14 Mar 2005 19:53:12 -0300 From: Alejandro Pulver To: Pietro Cerutti Message-ID: <20050314195312.7f6149cb@ale.varnet.bsd> In-Reply-To: References: X-Mailer: Sylpheed-Claws 0.9.12b (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: FreeBSD Subject: Re: dd on samba 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: Mon, 14 Mar 2005 22:52:30 -0000 On Mon, 14 Mar 2005 13:34:17 +0000 Pietro Cerutti wrote: > On Mon, 14 Mar 2005 13:27:19 +0000, Pietro Cerutti > wrote: > > dd and dump won't work (they won't put the data on a directory). > > Maybe I solved it, by making > # dd if=/dev/ad0 of=/mnt/some_file.dd bs=2m > > But how is goint to be to restore the whole filesystem? > > Thanks! > > > -- > Pietro "Piter" Cerutti > > > > Beansidhe - SwiSS Death / Thrash Metal > > > Windows: "Where do you want to go today?" > Linux: "Where do you want to go tomorrow?" > FreeBSD: "Are you guys coming or what?" Hello, I have free space between two slices to I tried to do the same as you. When you have the image of a slice generated by 'dd', it contains its partitions and filesystems. First you may want to make that slice image (file) to appear in '/dev', so you can manipulate its partitions. This is done (in FreeBSD 5.X, if you use 4.X use'vnconfig', there are examples in the Handbook) like with a CD-ROM ISO image (see the Handbook->Storage): mdconfig -a -t vnode -f -u It will appear in '/dev' as 'md', with its partitions, like the following: md1a md1c [...] So you can mount them, dump them, etc., like with a slice (in fact, it is an image of a slice). When you end what you want to do with it, do (after unmounting the partitions): mdconfig -d -u Best Regards, Ale