Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 2000 09:37:59 -0600 (CST)
From:      James Wyatt <jwyatt@rwsystems.net>
To:        Massimo Fubini <supermax@aexis-telecom.it>
Cc:        danny@i-p-d.nl, freebsd-isp@FreeBSD.ORG
Subject:   Re: Drive Copy
Message-ID:  <Pine.BSF.4.10.10011290844500.13585-100000@bsdie.rwsystems.net>
In-Reply-To: <767440343.20001129142712@aexis-telecom.it>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 29 Nov 2000, Massimo Fubini wrote:
> Use dd. For more information man dd.
> For example if you want to copy a single partition you do:
> dd if=/dev/origin_partiton of=/dev/destination_part
> 
> It is easy and powerful.

And incomplete. I know you can connect the drive, boot, and use the
/stand/sysinstall utility to carve the drive up into partitions for
filesystems and swap areas. If you want, it can newfs partitions so you
can mount the new partitions and user tar/cpio to transfer files. What do
you do to init the swap and set the boot sector/MBR stuff?

While this stuff is fairly "simple" in that it requires just a few steps,
it is pretty arcane to many folks, especially new unix admins. The risk of
toasting your "real" drive is very nonzero as well. Since new drives are
almost always larger, just dd-ing things is wasteful. Using dd requires
that you understand the various disk devices fairly well too.

This stuff is easy for many folks on this list, but not so obvious to the
original poster. I'm sure we can get together and help him (and other
lurkers) more than a "RTFM for dd, and it's easy". I've included a few of
the other steps (sysinstall) above, but don't have all the answers. Can
someone point to more information or reply to the list with more detailed
steps and techniques?

I've usually had to install FreeBSD (usually a newer version) onto the new
drive, hand-build the devs (MAKEDEV or *careful* use of sysinstall), redo
local changes and rebuild ports, and tar/cpio-transfer data files. - Jy@

btw: Even dd is usually somewhat faster with a 'bs=100k' or so.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10011290844500.13585-100000>