From owner-freebsd-questions Sat Jan 2 09:22:32 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA04769 for freebsd-questions-outgoing; Sat, 2 Jan 1999 09:22:32 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail.HiWAAY.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA04761 for ; Sat, 2 Jan 1999 09:22:31 -0800 (PST) (envelope-from dkelly@nospam.hiwaay.net) Received: from nospam.hiwaay.net (tnt1-49.HiWAAY.net [208.147.147.49]) by mail.HiWAAY.net (8.9.1a/8.9.0) with ESMTP id LAA13578; Sat, 2 Jan 1999 11:22:06 -0600 (CST) Received: from nospam.hiwaay.net (localhost [127.0.0.1]) by nospam.hiwaay.net (8.9.1/8.9.1) with ESMTP id LAA05098; Sat, 2 Jan 1999 11:22:04 -0600 (CST) (envelope-from dkelly@nospam.hiwaay.net) Message-Id: <199901021722.LAA05098@nospam.hiwaay.net> X-Mailer: exmh version 2.0.2 2/24/98 To: "Douglas Evan Cook" cc: questions@FreeBSD.ORG From: David Kelly Subject: Re: Transferring FreeBSD to another HD In-reply-to: Message from "Douglas Evan Cook" of "Sat, 02 Jan 1999 00:14:04 MST." <000001be361f$7b1348a0$0daf8dd0@dougcook> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 02 Jan 1999 11:22:04 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Douglas Evan Cook" writes: > Cool! I got a new hard disk for Christmas, but now everyone is jealous > and would like me to help them out by putting the old one in someone > else's machine. I'm game, but I'm not sure how to approach transferring > my installation of FreeBSD from one hard disk to the next. How is this > done? I started out slicing up the drive to get the new setup: [...] > Slicing was easy. And once I get FreeBSD done, it shouldn't be a big > deal to get Windows over and the boot manager reinstalled. The only > catch is FreeBSD, and I don't want to start the FAT transfer until all > is well on the FreeBSD front. Any standard procedures or non-standard? Am assuming from your discussion you have both drives up and running under FreeBSD, all the new partitions made, and filesystems created and mounted? Then for each filesystem (don't forget /var, I usually forget) on your old HD do (example for /usr): # dump 0af - /usr | ( cd /new/usr; restore -rf - ) Probably best to do the above in single user mode. Could also use "pax -rw /old /new" but I'm not sure if it honors the special flags (see chflags(1)) set on /kernel and some libraries. Hmm, maybe dump/restore doesn't do those flags either? pax may not do /dev but I'm pretty sure dump/restore does. -- David Kelly N4HHE, dkelly@nospam.hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message