Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Oct 2016 09:52:11 -0400
From:      Ernie Luzar <luzar722@gmail.com>
To:        JD <jd1008@gmail.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Clone a FBSD system to a smaller disk.
Message-ID:  <57F3B40B.2080804@gmail.com>
In-Reply-To: <CAN2YBg6qUBXd8qy25zT5FNe9LkyY=x3po1H3UoD1Y2fDxrBvQw@mail.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>

next in thread | previous in thread | raw e-mail | index | archive | help
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=</dev/..... i.e. the source disk> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57F3B40B.2080804>