From owner-freebsd-questions Mon Nov 6 16:44:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rz.uni-ulm.de (sirius-giga.rz.uni-ulm.de [134.60.241.36]) by hub.freebsd.org (Postfix) with ESMTP id 99B2837B479 for ; Mon, 6 Nov 2000 16:44:39 -0800 (PST) Received: from gmx.de (lilith.wohnheim.uni-ulm.de [134.60.106.64]) by mail.rz.uni-ulm.de (8.9.3/8.9.3) with ESMTP id BAA14568; Tue, 7 Nov 2000 01:44:35 +0100 (MET) Message-ID: <3A075071.6506569A@gmx.de> Date: Tue, 07 Nov 2000 01:44:33 +0100 From: Siegbert Baude X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.1.1-STABLE i386) X-Accept-Language: de, en MIME-Version: 1.0 To: James A Wilde Cc: freebsd-questions@freebsd.org Subject: Re: dd to a smaller disk References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi James, > Can I use dd to copy a disk to a smaller disk - in other words, will dd just > copy the parts of the disk which have data on them and ignore empty disk > space? No dd will copy your data byte-wise, without regard if itīs actually data or just plain garbage. > I am trying to copy a large - but nearly empty - disk on Solaris > X86 to a smaller disk on the same machine. I tried the command > > tar clfX - /usr/exclude.lst -C / . |tar xvpf - /mnt Read the man-page for tar. At the end there are examples how to copy whole trees. What I got out of a recent discussion about tar here: Donīt mix switches preceded with - and ones without them. Ciao Siegbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message