From owner-freebsd-questions@freebsd.org Tue Oct 4 15:09:47 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 79F8CAF34D3 for ; Tue, 4 Oct 2016 15:09:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3B0D5E17 for ; Tue, 4 Oct 2016 15:09:46 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-151-121.dynamic.qsc.de [92.195.151.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id AACEA3CEE2; Tue, 4 Oct 2016 17:09:43 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u94F9gXP002332; Tue, 4 Oct 2016 17:09:42 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 4 Oct 2016 17:09:42 +0200 From: Polytropon To: Ernie Luzar Cc: JD , FreeBSD Questions Subject: Re: Clone a FBSD system to a smaller disk. Message-Id: <20161004170942.8875cd6a.freebsd@edvax.de> In-Reply-To: <57F3B40B.2080804@gmail.com> References: <57EC9527.7020202@rcn.com> <57F3B40B.2080804@gmail.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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 15:09:47 -0000 On Tue, 04 Oct 2016 09:52:11 -0400, Ernie Luzar wrote: > 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? Preparing the target disk with MBR or GPT or Dedicated (use GPT except you have a good reason not to), then use dump + restore. You can find more information here: http://www.wonkity.com/~wblock/docs/html/disksetup.html#_the_new_standard_gpt http://www.wonkity.com/~wblock/docs/html/backup.html#_copying_filesystems The advantage of dump | restore is that only blocks in use will be copied, and it works on file system level (instead of disk block level like dd). Initializing the target disk prior to starting the copy operation will make sure the partition data is being written to the correct places. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...