From owner-freebsd-isp Wed Nov 29 7:45:45 2000 Delivered-To: freebsd-isp@freebsd.org Received: from lunatic.oneinsane.net (lunatic.oneinsane.net [207.113.133.231]) by hub.freebsd.org (Postfix) with ESMTP id 721D437B400 for ; Wed, 29 Nov 2000 07:45:41 -0800 (PST) Received: by lunatic.oneinsane.net (Postfix, from userid 1000) id C358415551; Wed, 29 Nov 2000 07:45:40 -0800 (PST) Date: Wed, 29 Nov 2000 07:45:40 -0800 From: Ron 'The InSaNe One' Rosson To: freebsd-isp@freebsd.org Subject: Re: Drive Copy Message-ID: <20001129074540.A33079@lunatic.oneinsane.net> Reply-To: Ron Rosson Mail-Followup-To: freebsd-isp@freebsd.org References: <767440343.20001129142712@aexis-telecom.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jwyatt@rwsystems.net on Wed, Nov 29, 2000 at 09:37:59AM -0600 X-Operating-System: FreeBSD lunatic.oneinsane.net 4.1.1-STABLE X-Moon: The Moon is Waxing Crescent (13% of Full) X-Opinion: What you read here is my IMHO X-WWW: http://www.oneinsane.net X-GPG-FINGERPRINT: 3F11 DB43 F080 C037 96F0 F8D3 5BD2 652B 171C 86DB X-Uptime: 7:43AM up 31 days, 9:58, 1 user, load averages: 1.08, 1.10, 1.03 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I hate adding a me too.. but I am lurking and hoping for an answer.. I have 2 identical machines getting ready to be deployed in two different places and I would love to only have to tweak one system and then just copy the drive over to the other systems drive. TIA James Wyatt (jwyatt@rwsystems.net) wrote: > 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 > -- ------------------------------------------------------------------------------ Ron Rosson ... and a UNIX user said ... The InSaNe One rm -rf * insane@oneinsane.net and all was /dev/null and *void() ------------------------------------------------------------------------------ Providing computer solutions for the mentally impaired. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message