From owner-freebsd-questions Mon Nov 6 8:34:20 2000 Delivered-To: freebsd-questions@freebsd.org Received: from smtp2.tbv.se (smtp2.tbv.se [193.15.92.33]) by hub.freebsd.org (Postfix) with ESMTP id B24F037B4C5 for ; Mon, 6 Nov 2000 08:34:16 -0800 (PST) Received: (from daemon@localhost) by smtp2.tbv.se (8.10.1/8.10.1) id eA6GYBB42853 for ; Mon, 6 Nov 2000 17:34:11 +0100 (CET) Received: from UNKNOWN(193.15.92.37), claiming to be "tbvhks12" via SMTP by smtp2.tbv.se, id smtpdM42851; Mon Nov 6 17:34:08 2000 From: "James A Wilde" To: "Send to questions" Subject: dd to a smaller disk Date: Mon, 6 Nov 2000 17:37:22 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hope the question is not too stupid. 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? 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 but it just doesn't seem to cut it. Or if it does, it takes a devil of a time to do it. Where can I see the temporary file being created? The /usr/exclude.lst file contains: /mnt /usr /export these being separate file systems. mvh/regards James To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message