From owner-freebsd-questions@freebsd.org Tue Oct 4 13:52:06 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE899AF3864 for ; Tue, 4 Oct 2016 13:52:06 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x236.google.com (mail-io0-x236.google.com [IPv6:2607:f8b0:4001:c06::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 849E36C9 for ; Tue, 4 Oct 2016 13:52:06 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-io0-x236.google.com with SMTP id r30so28400479ioi.1 for ; Tue, 04 Oct 2016 06:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=+FqA/vXy+5hE80g4pEMTd7fckkxFdCUe296c2b8tsSE=; b=qFHq4Niy+83mS+0Rgfqd1abPoYaFq1+W7c5bPbqVOK3WzViYPw3v9lJ1KgxGMvA3pb RU1DLCLyErNBU2xK4McLftn/4s9a3N1e9c/PuGzK+cdksTEovWo06VhiBB0fnoIdZFQe e5HJVu1aTFk2N/0c4iPWObK/qt7aI9PXtROJeIn57ytyuIAqr8JQY0LqTRke/gMG707e dmHM2un+LNuO9vYEGIJzR8vpOVfki6JRGk7fTYr/EPPWdX1YcS5tQ7MouIm3BuzGgtTE YYjBGafu1RMESF1TnseUB5jqTuqjbdH7jAhHe3q2vrGxDc84NtLebGVaRWHeELW5CB2C mx3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=+FqA/vXy+5hE80g4pEMTd7fckkxFdCUe296c2b8tsSE=; b=VUGk4PyYsjJG6w0NyF2/fxvJuXGR9jAeZ+yYz2+8IzfdNYHhaGVrdlzcksRCeaJMW+ Fpo/pssv/uvvcCzQINd2I22oSgVgaJeFpLJXDNyHNAhJ7qE7sy1RQjK0++uMe9d5vjju 5wXTHXfC5qc7hKz0YD46bM+jUpEad6YIp3jaQgNKpsCg8AWt2ygEBO8z0hju1iz1G8Lj lSekP+xy5IC9t1kznAhDz1h4zI6dPv+K5ZeM0WN+ObGLbE2ZkSZpG8heYK0T05jq4FMl Wv85LYRtml0FIR3fAC5mz7nE/XWPTlQvsPPc9ATRNf+YePgwrAJpdnciKLFn9owhi5A6 e19Q== X-Gm-Message-State: AA6/9Rlwbx/njniVtu6VzOauZyclT7MQoO+RxjDDkMD54XtWI9TfT72y2js+rM1MO/YrGw== X-Received: by 10.107.15.38 with SMTP id x38mr4192848ioi.174.1475589125954; Tue, 04 Oct 2016 06:52:05 -0700 (PDT) Received: from [10.0.10.3] (cpe-24-165-201-26.neo.res.rr.com. [24.165.201.26]) by smtp.googlemail.com with ESMTPSA id 72sm1661350iom.5.2016.10.04.06.52.05 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Oct 2016 06:52:05 -0700 (PDT) Message-ID: <57F3B40B.2080804@gmail.com> Date: Tue, 04 Oct 2016 09:52:11 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: JD CC: FreeBSD Questions Subject: Clone a FBSD system to a smaller disk. References: <57EC9527.7020202@rcn.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2016 13:52:06 -0000 JD wrote: > By clone, you mean create a new disk with identical > content to the cloned disk? Including the boot blocks > of the cloned disk? > If so, dump and restore will only perform like a full backup. > The target (copy-to) disk will not be bootable. > If you want it bootable, then there is a simlpe procedure > 1. Obtain a new disk with sufficient capacity as close as possible > to size of the source disk. Not less than, though!! > 2. dd if= of=/dev/..... i.e. the new disk> > bs=128M conv=notrunc conv=fdatasync > > When finished, without error, > the new disk will be a bootable mirror of the original. > > HTH > > snip > I have a 10.3 box using a MBR 1.5 TB hard drive. This Box acts as the LANs front door firewall to the public network. The 1.5 TB disk is being waisted in this situation. What would you recommend as the quickest method to clone the running system from the 1.5TB disk to a 40MB disk? Thanks