Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Oct 2016 17:09:42 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Ernie Luzar <luzar722@gmail.com>
Cc:        JD <jd1008@gmail.com>, FreeBSD Questions <freebsd-questions@freebsd.org>
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:  <CAHieY7TSESodQXBLoZkkBGWZaCbEZessqiMvzp9dR8Y1CoAZtw@mail.gmail.com> <57EC9527.7020202@rcn.com> <alpine.BSF.2.20.1609282305130.7457@wonkity.com> <CAHieY7QV3xYPsNxXdZrYCGO7SA37Mxn_yy2njByR2EBd9DzX9A@mail.gmail.com> <CAN2YBg6qUBXd8qy25zT5FNe9LkyY=x3po1H3UoD1Y2fDxrBvQw@mail.gmail.com> <57F3B40B.2080804@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161004170942.8875cd6a.freebsd>