From owner-freebsd-isp Wed Nov 29 15:51: 9 2000 Delivered-To: freebsd-isp@freebsd.org Received: from mail.ruhr.de (in-ruhr3.ruhr.de [212.23.134.2]) by hub.freebsd.org (Postfix) with SMTP id 8884637B400 for ; Wed, 29 Nov 2000 15:51:06 -0800 (PST) Received: (qmail 19885 invoked by alias); 29 Nov 2000 23:53:00 -0000 Received: (from ue@localhost) by nathan.ruhr.de (8.11.0/8.11.0) id eATNmu860224 for freebsd-isp@FreeBSD.ORG; Thu, 30 Nov 2000 00:48:56 +0100 (CET) (envelope-from ue) Date: Thu, 30 Nov 2000 00:48:55 +0100 From: Udo Erdelhoff To: freebsd-isp@FreeBSD.ORG Subject: Re: Drive Copy Message-ID: <20001130004855.M30886@nathan.ruhr.de> 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 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, > 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. exactly. > If you want, it can newfs partitions so you can mount the new partitions This is neccessary if you want to transfer your system onto a new disk. > and user tar/cpio to transfer files. These programs are the wrong tools to do it. They can be used to handle regular files and {hard,soft} links but they will fail for device nodes, sparse files and all the other nice features. Use dump, dump or dump: cd / mount /new-root-partition /mnt dump 0af - | (cd /mnt ; restore -rf -) umount /mnt Repeat this for all filesystems. I've used this technique several times to move my system to a newer drive or to rearrange the filesystems. > What do you do to init the swap and set the boot sector/MBR stuff? You don't have to initialize swap space. The boot code can be written by disklabel -B . > The risk of toasting your "real" drive is very nonzero as well. Murphy was an optimist. The first step is to create and verify a backup on a reliable and removable medium. /s/Udo -- I have learned over the years, that if it is the truth you seek, then honesty on your own part, is the best policy. That and torture. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message